5,710
edits
Changes
→Analog Output
* Q: Drive this dimming example with the light sensor from before.
* Q: Make it photophobic, rather than photophilic. How would you change this--in code, and in hardware. You could do either!
=== Lightbulb ===
Same as the LED, but it is a higher current load. Your microprocessor can not source enough current to power the bulb. We need to use a power transistor: TIP120.
[[Image:BULB.JPG|200px]]
=== Motor Speed Control ===
Q: Drive it with the input from the potentiometer.
=== Sound, Tone Generation ===