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.