Changes

Jump to: navigation, search

Week 4 Lab

597 bytes added, 04:40, 21 April 2009
Serial Interface, for debugging
*Download and install processing http://processing.org/download
== Basic Serial Interface, for debugging ==*Open the Sketchbook->Examples->Communication->ASCIITable, and run it on your processor. *There are two different
Basic text output from the microcontroller,
Serial.println()
Use * You can use this to verify values and behavior inside of a program, for debugging.Examples, for example:** Displaying values of sensors <code>Serial.print(val)</code>** Checking program flow.* Assuming you have a sensor which produces an analog output, hook it up to one of the Analog Inputs on your arduino. If you do not have a sensor, use the light sensor from last week. If you are not sure how your sensor works, come over and talk to me and we can try to figure it out. * Run a short program to read data from that sensor and send it to the Serial port.* Click on the Serial Monitor in the Arduino software, and see what the output from your Sensor is. How does it change as you manipulate your sensor?
== Dimmer ==

Navigation menu