08-22-2016, 09:21 PM
DO NOT try to drive the relay with a GPIO pin (not even with a resistor).
... always drive the relay with some other driver like a simple 2N2222 or PN3904 transistor, or more preferably (as stated earlier) drive the relay with a ULN2803 (it has six channels, and you just use two of them). (its an inexpensive IC).
And, do not forget about the protection diode on the relay coil. Again, I strongly recommend purchasing relay driver boards that have the diodes and ULN2803 built-in. But you may do it all yourself too.
... always drive the relay with some other driver like a simple 2N2222 or PN3904 transistor, or more preferably (as stated earlier) drive the relay with a ULN2803 (it has six channels, and you just use two of them). (its an inexpensive IC).
And, do not forget about the protection diode on the relay coil. Again, I strongly recommend purchasing relay driver boards that have the diodes and ULN2803 built-in. But you may do it all yourself too.
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )