Changes

Jump to: navigation, search

Week 4 Lab

6 bytes removed, 14:49, 21 April 2009
Serial Basics
Serial.println()
* You can use this to verify values and behavior inside of a program, for debugging, for example:* Displaying values of sensors: <code>
val=analogRead(input_pin);
Serial.print(val);
</code> (assuming you've done the necessary setup).
** 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.

Navigation menu