For this Lab we learned how to control a high-current DC load such as a DC motor or an incandescent light from a microcontroller… in this instance I used a cell phone motor.
The key in this lab is the NPN TIP120 transistor that “allows you to control a circuit that’s carrying higher current and voltage from the microcontroller. It acts as an electronic switch… designed for switching high-current loads… has three connections, the base, the collector, and the emitter. The base is connected to the microcontroller’s output. The high-current load (i.e. the motor or light) is attached to its power source, and then to the collector of the transistor. The emitter of the transistor is connected to ground.
I’ve always thought a Mac mouse would make a great mobile phone… here’s the first iteration in action.