There are two codes at work here, one for the Arduino and one with Processing.
ARDUINO:
(The image and most of my code for the Arduino side were from the WEBSITE that Katerie posted on the class page, as it was a clean, well-written code)

The uploaded code takes the analog value of the thermistor and runs it through an algorithm that outputs the temperature in Fahrenheit. This value is sent in via serial communication to Processing.
PROCESSING
For the Processing script, I ended up writing most of it myself with some bits and pieces from the Arduino WEBSITE. Essentially what the program does is take the temperature reading and outputs an image of a thermometer that changes appropriately based on the value. I also included text that outputs the actual number as well. I have thoroughly commented the CODE, so even those who don't know Processing should be able to understand what each piece of code is doing.

If anyone has questions on how any of the components work, please let me know and I will be happy to assist you.
If you didn't catch the previous links to the code, here they are again:
Arduino Code
Processing Code
No comments:
Post a Comment