Use an NPN transistor. (2N3904, 2N2222, etc)
Connect the emitter to ground. Connect the collector to one side of the coil. Connect +5V to the other side of the coil. Connect a 10K resistor between the I/O pin and the base of the transistor. That’s it J "No one could make a greater mistake than he who did nothing because he could do only a little." "All that is necessary for the triumph of evil is that good men do nothing" Edmond Burke (1729 - 1797) http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book From: [email protected] [mailto:[email protected]] On Behalf Of Carlos Cesario Sent: Wednesday, December 24, 2014 7:14 PM To: [email protected] Subject: [beagleboard] Gpio Relay Hello guys, Someone please could help/explain me how isthe best and security way to connect 5v relays on BBB ? I 'm planning usage this relay http://www.dx.com/en/p/arduino-5v-relay-module-blue-black-121354 or this relay board http://www.dx.com/en/p/8-channel-5v-relay-module-board-for-arduino-red-156424 Thank you Best regards, Carlos -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. _____ No virus found in this message. Checked by AVG - www.avg.com Version: 2015.0.5577 / Virus Database: 4257/8789 - Release Date: 12/22/14 -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
