Changes

Jump to: navigation, search

Week 4 Lab

168 bytes added, 04:36, 21 April 2009
controlling from a Processing app
=== controlling from a Processing app ===
Save your modified Dimmer example, and revert back to the original dimmer code. We are now going to learn how to control the processor from the processing App. See the commented out Processing code hidden at the end of the Dimmer exampleprogram.
* In Processing, open a new sketch, and copy this code into it. Save this sketch as "arduino_test" or something like that.
** Try running this sketch. When you do, it may give you an error about "COM1" or something of that sort. You need to tell the program what serial port your arduino is connected to. On my computer, I see this output in the Processing window:

Navigation menu