Changes

Jump to: navigation, search

Week 4 Lab

234 bytes added, 14:56, 21 April 2009
Serial Basics
* Click on the "Serial Monitor" button (to the right of the "Upload to Board" button) in the arduino software. verify that your processor is communicating with the PC (do you see the letters streaming by?)
* 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 * You will need a <code>setup()</code> block, which initializes the Serial Monitor communication <code>Serial.begin(9600);</code>** And in the Arduino software main loop of the program (<code>loop()</code>), you will need to do the <code>analogRead()</code> and see <code>Serial.print()</code> commands from above.* See what the output from your Sensor is. How does it change as you manipulate your sensor?
== Controlling the Arduino from a Computer ==

Navigation menu