A relay can be used to switch higher power devices such as motors and solenoids. If desired, the relay can be powered by a separate power supply, so, for instance, 12V solenoids can be controlled by the microcontroller.
Bill of Materials
|Miniature 6V Relay SPDT ||REL001 ||1 ||Buy Now |
|BCX38C Darlington driver transistor ||TRT002 ||1 ||Buy Now |
|1k resistor (pack 100) ||RES1K ||1 ||Buy Now |
|1N4001 diode ||RES041 ||1 ||Buy Now |
Submit Your Own Code!
You must be logged in to submit code examples. Login now.