Friday, 23 December 2011

USB Temperature Logger

Click the icons below:
                        








Serial Monitor Before

Purpose:
There really was no purpose for this project. I did this project on my own time because it interested me and I thought that it could serve a very useful purpose later in the year. 

Procedure:
I used the sketch provided by the book 30 Arduino Projects for the Evil Genius. Then I ran the sketch to see what I would get. With little surprise the readings were off. I tweaked the code for changing the serial reading to a temperature and the code worked fine.

Parts List:


Basic Parts list:

Arduino
NTC Thermistor
Serial Monitor After
10k ohm resistor





I only used the 30 Arduino Projects for the Evil Genius book for this project. Click the books title page to arduinoevilgenius.com.

Tuesday, 20 December 2011

Multiple Sensors: Multiplexing

Click the icons below:

                        




Click here for an animated GIF of what the output should look like.
Click here for the data sheet on the CD4067B multiplexor. 


Purpose:
The purpose was to accomplish the task of reading more than six analog sensors.Even though we still only used six, it gave us the opportunity to use more. It was also to get us comportable with the multiplexing structure and will allow us to use multiplexing strategies for future projects.

Procedure:
First we breadboarded our circuit using the multiplexer. We kept the Processing code exactly the same but we changed the Arduino code a considerable amount to allow for multiplexing. After we did a few touch-ups on our processing code for a bette aesthetic appearance. 

Parts List:


Full Parts list

Basic Parts list: 
Arduino Uno
CD4067B multiplexor
6 LM35DZ's




References were minimal other than the information given from our teacher. However the project is still loosely based off of Serial Communications Using Processing 2 post. Click here to view those references.

Click the image on the left for a link to my teacher's assignment page.

Thursday, 15 December 2011

Multiple Sensors: Polling

Click the icons below:

                       

Click here for an animated GIF of what the output should look like.

Click here for my Fritzing Demo.


Purpose:
The purpose of the project was to continue using Processing. The difference from last week was using multiple sensors and returning multiple pieces of data on the graph. Also because of the design of the project we were forced to use a large amount of constants at the top of the project which will help us develop our skills for making more advanced code in the future.


Procedure:
Our Arduino code changed slightly because we needed to add an array in order to accommodate the six sensors we are using, however the processing sketch changed dramatically.The first thing that was done was deciding what and how many ints, floats, colors, and arrays were needed. Then we took the basic idea from last weeks project but added many for loops so that the same code could be adapted for multiple sensors. Finally when we could plot all the data for each sensor we constructed the black average line. For the average line we used two other for loops, one for the row where it should be placed as well as the other for the column where is should be placed.




Parts list:


Full Parts list


Basic Parts list:
1 Arduino Uno
6 LM35DZ's




References were minimal other than the information given from our teacher. However the project is still loosely based off of Serial Communications Using Processing 2 post. Click here to view those references.

Click the image on the left for a link to my teacher's assignment page.

Sunday, 27 November 2011

LM35DZ

Click the icons below:


                     




Purpose:
The purpose of this project was to get us experimenting more with Processing. It was to have us create more of the code rather than change existing code. It also forced us to consult our Getting Started with Processing book, to help us with coding different shapes and text.

Procedure:
The procedure for hardware was very simple. We took out the NTC Thermistor and replaced it with the LM35DZ. The Arduino sketch stayed the same as last week but the Processing sketch was changed drastically. We took our processing code from last week and deleted as well as added code to it, to form our scaled graph.

Parts list:


Basic parts list 

Arduino 
LM35DZ


References were listed on last weeks blog post. Click here to go there now.

Friday, 25 November 2011

Today In Class 11/21/11

Hello,

Today in class we talked about our project for the weekend. Our assignment is to change the NTC Thermistor to an  LM35DZ sensor. This sensor only requires 3 wires to bread-board so it is easier to wire than the NTC Thermistor. Our assignment is to change our processing code. We are eliminating the thermometer on the side and only using one graph. However we are scaling the graph and will eventually add more sensors so we can compare them. 


Our goal for next week is to add two LM35DZ sensors and have output like this 
   




However this Sunday we will have the same output as the image to your left, but with only one LM35DZ (one line)

Saturday, 19 November 2011

Serial Communications Using Processing (Thermistor Part 2)

Click the icons below


                     





Purpose of the Project:
The purpose of this weeks project was to start applying Processing to our class. We had made a thermometer last week and Processing allowed us to do so much more with the same project. It got the ball rolling for projects in the future, like the green house and is getting us accustomed to visual programming.

Procedure:
We used the Arduino sketch to convert the raw input data to Celsius. The Processing sketch changes that data reading so that it is no longer numbers in the Arduino serial monitor but a fully functional graph. The Fritzing image helps us organize our breadboard setup so we fully understand what is going on with the hardware side of the project.


Parts List:


Basic list:
Arduino
Thermistor
10k ohm Potentiometer 



Click the different browser icons to go to different reference sites

 
       Helpful  Processing Book
            
                     Location of origional sketch
 
Useful Processing site

Tuesday, 15 November 2011

Today In Class 11/15/11

Hello,
Today in class we talked about adding a graphic to go along with our thermistor project. The graph is made to support the readings of the thermistor and display a thermometer and a line graph. We are still using Arduino programming but are integrating it into Processing. Processing has its own code to display the graphics but relies on the Arduino code to take the readings from the Arduino and also convert the raw data to Celsius. The two programs work together very well seeing as they both use c++ code and Arduino was somewhat based off of Processing. My teacher pointed our class to pscmpf's blog which has both the Arduino and Processing code needed to achieve this output, however in the blog he uses a TO-92 instead of a thermistor but we are keeping the thermistor. The code on his site is mostly correct but some changes will need to be made. I am in the process of changing the code. A video explaining everything along with a blog post consisting of helpful links and the code I used will be posted on Sunday November 20th.

The output we are trying to achieve:














A site that is very helpful for setting up Processing is:
http://itp.nyu.edu/physcomp/Labs/SerialOut

Anything that I post and requires a download (ie. Word Document, HTML and others) will be here:
http://mail.rsgc.on.ca/~kmacmillan/

*Note, I will try and post something like this on the days where I have computers class. You can expect a post about every other day and a detailed video with helpful links and code every Sunday.