Relay connection to NodeMCU V3
-
Good afternoon everyone. I'm here to get suggestions from those of you who are more experienced than me in electronics.
The problem is simple. I have an ESP8266 (NodeMCU V3 Lolin) and I'd like it to drive a 5Vdc relay.
Searching in internet I can find many samples like this... BUT.... some of them are connecting the positive wire of the relay to Vcc (3,3V), some others to VU (5V) and all say it's perfectly working.
If I find two solution to the same problem I get worried :)
Specifically, should I connect Vcc, I'm not sure that the relay would switch in a secure way.
At the same, if I connect it to VU, I'm asking myself if this would not create a problem since the pin triggering the relay is coming from a GPIO pin and should be 3.3V
Please forgive me if this is a stupid question but I have to experience in this area.
Thanks in advance
Giacomo -
@gohan , if I understand well, in a relay like the one of the attached picture, you removed the jumper, connected +5V to JD and GND, In1, In2, 3,3V on the other connector?
If this is true I'll be happy because this is how I'd have done.... but I couldn't find anybody confirming it...
