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. General Discussion
  3. Connecting the relay

Connecting the relay

Scheduled Pinned Locked Moved General Discussion
11 Posts 4 Posters 5.5k Views 3 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.
  • sundberg84S Offline
    sundberg84S Offline
    sundberg84
    Hardware Contributor
    wrote on last edited by
    #2

    Hi!

    There are many threads about power and relays in the forum - I have had relays you need to connect ground through the arduino before it works. Try that (ie take your not workig schematics but move ground to arduino and see what happens).

    Controller: Proxmox VM - Home Assistant
    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

    M 1 Reply Last reply
    0
    • V Offline
      V Offline
      vil1driver
      wrote on last edited by vil1driver
      #3
      This post is deleted!
      1 Reply Last reply
      0
      • sundberg84S sundberg84

        Hi!

        There are many threads about power and relays in the forum - I have had relays you need to connect ground through the arduino before it works. Try that (ie take your not workig schematics but move ground to arduino and see what happens).

        M Offline
        M Offline
        moskovskiy82
        wrote on last edited by
        #4

        @sundberg84

        Nope. Connected GND to arduino leaveing external VCC. Same result

        1 Reply Last reply
        0
        • sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #5

          @moskovskiy82 Ok, next i would try to change power supply and se what happens.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          0
          • M Offline
            M Offline
            moskovskiy82
            wrote on last edited by
            #6

            Done. Took another powersupply )which can only go 4,5 or 6V but at true 2Amps output. Same thing.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              moskovskiy82
              wrote on last edited by
              #7

              The problem as i can see it doesn't go to off properly. Going to on state is fine.

              1 Reply Last reply
              0
              • M moskovskiy82

                I have a project with 4 relays and several sensors. I was wondering how to connect all this.
                As the picture below shows that connecting the relays to the same power supply as arduino is not working. Relay doesn't get disconnected or connected. Only the led lights up or dims a little bit. And feeding all of them through arduino is above its current limit on 5V pin...

                alt text

                rvendrameR Offline
                rvendrameR Offline
                rvendrame
                Hero Member
                wrote on last edited by
                #8

                @moskovskiy82

                The 5V and VIN pins are not the same thing, per original arduino nano schematics.

                0_1456582784868_Captura de tela 2016-02-27 11.18.28.png

                Usually the relay "click" generates some noise on the power lines, which may disturb ( = freeze, hang) arduino and/or nRF radio.

                Maybe once you connect it through the 5V, the regulator is reducing that noise? You might try to add capacitors between relay's VIN and GND, 47uF could be a starting point.

                Home Assistant / Vera Plus UI7
                ESP8266 GW + mySensors 2.3.2
                Alexa / Google Home

                M 2 Replies Last reply
                0
                • rvendrameR rvendrame

                  @moskovskiy82

                  The 5V and VIN pins are not the same thing, per original arduino nano schematics.

                  0_1456582784868_Captura de tela 2016-02-27 11.18.28.png

                  Usually the relay "click" generates some noise on the power lines, which may disturb ( = freeze, hang) arduino and/or nRF radio.

                  Maybe once you connect it through the 5V, the regulator is reducing that noise? You might try to add capacitors between relay's VIN and GND, 47uF could be a starting point.

                  M Offline
                  M Offline
                  moskovskiy82
                  wrote on last edited by
                  #9

                  @rvendrame

                  Well yes. I understand that Vin passes everything through the voltage regulator. This is why i am surprised that the relay works while being fed throught the 5V pin of the arduino and doesn't work when connected directly to a 5V supply.

                  1 Reply Last reply
                  0
                  • rvendrameR rvendrame

                    @moskovskiy82

                    The 5V and VIN pins are not the same thing, per original arduino nano schematics.

                    0_1456582784868_Captura de tela 2016-02-27 11.18.28.png

                    Usually the relay "click" generates some noise on the power lines, which may disturb ( = freeze, hang) arduino and/or nRF radio.

                    Maybe once you connect it through the 5V, the regulator is reducing that noise? You might try to add capacitors between relay's VIN and GND, 47uF could be a starting point.

                    M Offline
                    M Offline
                    moskovskiy82
                    wrote on last edited by
                    #10

                    @rvendrame

                    Thank you!!!! The scheme solved it all!
                    Connecting 5V t6 Vin resulted on voltage drop. So the D1-D13 pins produced less than 5V which was not enough for the in pin

                    rvendrameR 1 Reply Last reply
                    0
                    • M moskovskiy82

                      @rvendrame

                      Thank you!!!! The scheme solved it all!
                      Connecting 5V t6 Vin resulted on voltage drop. So the D1-D13 pins produced less than 5V which was not enough for the in pin

                      rvendrameR Offline
                      rvendrameR Offline
                      rvendrame
                      Hero Member
                      wrote on last edited by
                      #11

                      @moskovskiy82 , it makes sense. Glad you ruled it out!

                      Home Assistant / Vera Plus UI7
                      ESP8266 GW + mySensors 2.3.2
                      Alexa / Google Home

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


                      23

                      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