Maker Pro
Maker Pro

How to control 12vdc relay with microcontroller!

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
No, you will need to use the arduino's output to drive a transistor and use that to switch the relay current. You will also need a diode across the relay contacts to protect the transistor.

This lays it out really well.
 

GreenGiant

Feb 9, 2012
842
Joined
Feb 9, 2012
Messages
842
where would we attach the external power supply in your diagram? also would a 3906 transistor suffice.

The external power would connect to Relay Power V+

That transistor would work, but be cautious it is only rated for up to 300mA so without a current limiting resistor you run the risk of burning it out
 
Top