Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Relay connection to NodeMCU V3

Relay connection to NodeMCU V3

Scheduled Pinned Locked Moved Hardware
6 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gbuicoG Offline
    gbuicoG Offline
    gbuico
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      If you get the opto isolated relay boards, you can power the trough a separate 5v vcc pin ,but I was able to use them on raspberry pi at 3.3v

      1 Reply Last reply
      0
      • gbuicoG Offline
        gbuicoG Offline
        gbuico
        wrote on last edited by
        #3

        @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...

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          I don't see the picture, but keep in mind that to toggle a relay you need to put the pin to Low

          1 Reply Last reply
          0
          • gbuicoG Offline
            gbuicoG Offline
            gbuico
            wrote on last edited by
            #5

            alt text
            Sorry... my fault.
            Yes, the need to pull the pin low is the only sure info I found around.. :(

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              As you said before, you should be good to go

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              26

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular