5,710
edits
Changes
→modifying for rudimentary keyboard control
if((val>='0')&&(val<='9'))
analogWrite(ledPin, 2528*(val-'0'));
}
}
* Connect up the TIP120 driver circuit and motor from last week. Voila! You have a simple motor speed control, through the computer.
=== controlling from a Processing app ===
See the commented out Processing code at the end of Dimmer example.