Changes

Week 4 Lab

60 bytes added, 04:17, 21 April 2009
modifying for rudimentary keyboard control
Controlling a physical LED with the computer.
=== modifying for rudimentary keyboard control ===
* Click on the "Serial Monitor" button to the right of the the experimenting
void loop()
{
* Connect up the TIP120 driver circuit and motor from last week. Voila! You have a simple motor speed control, through the computer.
* Typing 0-9 on the computer will set the motor speed from (0-98.8%) of full speed) (the <code>(28*val-'0'))</code> in <code>analogWrite(ledPin, 28*(val-'0'))</code> above)
=== controlling from a Processing app ===