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. Troubleshooting
  3. Relay sensors stop communicating with gateway after a few minutes

Relay sensors stop communicating with gateway after a few minutes

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 10 Posters 14.5k Views 4 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.
  • BulldogLowellB Offline
    BulldogLowellB Offline
    BulldogLowell
    Contest Winner
    wrote on last edited by
    #4

    you may also wish to consider controlling both relays from the same Arduino and same radio.

    I've never placed two nodes so close to each other, but I imagine that all the EMF activity in that compact space... there is a potential for a lot to go wrong.

    R 1 Reply Last reply
    0
    • BulldogLowellB BulldogLowell

      you may also wish to consider controlling both relays from the same Arduino and same radio.

      I've never placed two nodes so close to each other, but I imagine that all the EMF activity in that compact space... there is a potential for a lot to go wrong.

      R Offline
      R Offline
      rafael.brasilia
      wrote on last edited by
      #5

      @BulldogLowell
      That is a good idea. But if I do so, can I choose which relay I want to turn on/off from the UI? The water pressure here is not very strong, so I need to turn on only one irrigation channel at a time. But I will give that a try anyways!

      Thanks!

      1 Reply Last reply
      0
      • BulldogLowellB Offline
        BulldogLowellB Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #6

        Most definitely!!!

        1 Reply Last reply
        0
        • hekH hek

          Also try feeding the realys directly from the 5V input from the charger.

          R Offline
          R Offline
          rafael.brasilia
          wrote on last edited by
          #7

          @hek said:

          Also try feeding the realys directly from the 5V input from the charger.

          I tried doing that, but when I feed the relay with the external 5v supply they wont work. The power light turns on and looks good, but when I click on/off in the UI the relay wont switch. Do I need to do anything special to power the relays directly from the charger?

          Thanks!

          1 Reply Last reply
          0
          • BulldogLowellB Offline
            BulldogLowellB Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #8

            @rafael.brasilia said:

            Do I need to do anything special to power the relays directly from the charger?

            Yes, a larger power supply.

            typical iPhone charger is 5Watt or about 1A @5V

            you may need to look at 10-15Watt power supplies, or 1500-2000mA @5V

            try iPad charger... if you have access to one.

            R 1 Reply Last reply
            0
            • BulldogLowellB BulldogLowell

              @rafael.brasilia said:

              Do I need to do anything special to power the relays directly from the charger?

              Yes, a larger power supply.

              typical iPhone charger is 5Watt or about 1A @5V

              you may need to look at 10-15Watt power supplies, or 1500-2000mA @5V

              try iPad charger... if you have access to one.

              R Offline
              R Offline
              rafael.brasilia
              wrote on last edited by
              #9

              @BulldogLowell

              I tried the ipad charger and still no luck. I also tried another power supply with output 2.5A @5V and it didnt work. Now I'm just curious, if I need a bigger power supply to power the relay, how come the Arduino is able to power it from it's 5V output?

              Thanks for the help!

              1 Reply Last reply
              0
              • msamy.earthM Offline
                msamy.earthM Offline
                msamy.earth
                wrote on last edited by
                #10

                Try to move your AC cables a little bit away from the nodes. Just to avoid any possible EMF activity.

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

                  It should be fine and click/on off with that power supply.
                  Are you using a 5v relay? I ordered 5v relays but got 12v relays instead... same symptoms, all leds worked but no click.
                  It should say SRD-05VCS on top on the blue relay.

                  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

                  R 1 Reply Last reply
                  0
                  • sundberg84S sundberg84

                    It should be fine and click/on off with that power supply.
                    Are you using a 5v relay? I ordered 5v relays but got 12v relays instead... same symptoms, all leds worked but no click.
                    It should say SRD-05VCS on top on the blue relay.

                    R Offline
                    R Offline
                    rafael.brasilia
                    wrote on last edited by
                    #12

                    @sundberg84
                    Mine says SRD-05VDC-SL-C on top. Im pretty sure this is a 5v because it works fine when powered from the Arduino 5v output. I just wanted to connect it to an external power source because I have two relays connected to my Arduino now and that might bee too much for it to handle.

                    1 Reply Last reply
                    0
                    • BulldogLowellB Offline
                      BulldogLowellB Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #13

                      Try separating them, or just one powered at a time so you are sure that they are not bothering each other. As mentioned above have you added capacitors to the power to the radios?

                      See if you can get only one (or each separately) working, that rules out interference.

                      If that solves your problem, then just use one arduino to control both relays, which is the way most of us would do it in your use case. The extra radio an arduino are a bit superfluous.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rafael.brasilia
                        wrote on last edited by
                        #14

                        So my problem is definitely that the Arduino is not strong enough to power the relays. When the relays are not powered by the Arduino, my sensor communicates with the gateway just fine. It's been on for more than 24 hours now and still communicating fine.

                        I found this somewhere else, and I think it's exactly what was happening:
                        "if you draw too much power from the +5V, the thermal protection circuit on the voltage regulator will trip and the whole Arduino will shut down"

                        So I just need to find a way to power the relays from an external power source. Has anyone done that?
                        I've tried several different power sources, and with all of them the relay LEDs turn on but it won't click when turn it on/off. I even tried powering the relay from another Arduino just to make sure the voltage was right, but still no luck.

                        Thanks!

                        BulldogLowellB 1 Reply Last reply
                        0
                        • R rafael.brasilia

                          So my problem is definitely that the Arduino is not strong enough to power the relays. When the relays are not powered by the Arduino, my sensor communicates with the gateway just fine. It's been on for more than 24 hours now and still communicating fine.

                          I found this somewhere else, and I think it's exactly what was happening:
                          "if you draw too much power from the +5V, the thermal protection circuit on the voltage regulator will trip and the whole Arduino will shut down"

                          So I just need to find a way to power the relays from an external power source. Has anyone done that?
                          I've tried several different power sources, and with all of them the relay LEDs turn on but it won't click when turn it on/off. I even tried powering the relay from another Arduino just to make sure the voltage was right, but still no luck.

                          Thanks!

                          BulldogLowellB Offline
                          BulldogLowellB Offline
                          BulldogLowell
                          Contest Winner
                          wrote on last edited by BulldogLowell
                          #15

                          @rafael.brasilia

                          Reference this you should be powering the relays from Vin which is directly powered (5V) from your USB cable and is not regulated by the Arduino. in other words, the power at Vin is regulated by your power adaptor.

                          The 5V (AKA Vcc) pin is using the Arduino's on-board regulator, and indeed the current is limited by that device. If you power your arduino with the Raw pin, using a 9V battery for example, the Arduino's on-board regulator will drop that voltage to 5V, thus its marking.

                          I hope that's clear.

                          1 Reply Last reply
                          0
                          • TD22057T Offline
                            TD22057T Offline
                            TD22057
                            Hardware Contributor
                            wrote on last edited by
                            #16

                            Perhaps someone w/ more electronics knowledge can comment more but in my limited research, you can reduce power consumption to the relay by getting one w/ an optocoupler. There is a good write up here: https://arduino-info.wikispaces.com/RelayIsolation

                            Most x2, x4, and x8 relays on aliexpress that I have seen have optocouplers. Here are some single relay boards with them: http://www.aliexpress.com/item/Free-shipping-5Pcs-Lot-Level-Triger-Optocoupler-Relay-1-Channel-H-LModule-for-Arduino-5V-New/32390536994.html

                            SparkmanS 1 Reply Last reply
                            0
                            • TD22057T TD22057

                              Perhaps someone w/ more electronics knowledge can comment more but in my limited research, you can reduce power consumption to the relay by getting one w/ an optocoupler. There is a good write up here: https://arduino-info.wikispaces.com/RelayIsolation

                              Most x2, x4, and x8 relays on aliexpress that I have seen have optocouplers. Here are some single relay boards with them: http://www.aliexpress.com/item/Free-shipping-5Pcs-Lot-Level-Triger-Optocoupler-Relay-1-Channel-H-LModule-for-Arduino-5V-New/32390536994.html

                              SparkmanS Offline
                              SparkmanS Offline
                              Sparkman
                              Hero Member
                              wrote on last edited by
                              #17

                              @TD22057 The relay coil will draw a certain amount of current at 5 VDC. Using opto-couplers does not change the amount of current the relay draws. However, some of the relay modules will use transistors, etc. to ensure that the current for the coil is not supplied by the digital output pin of the Arduino as the output pins can't typically source enough current for that.

                              Cheers
                              Al

                              1 Reply Last reply
                              0
                              • RJ_MakeR Offline
                                RJ_MakeR Offline
                                RJ_Make
                                Hero Member
                                wrote on last edited by
                                #18

                                It's a strange problem. In most of my "projects" I power the relays directly from the power supply, home built or mfg and other than adding some capacitors have not seen these problems. Now I aways use Opto-controled relays so I don't have to use any diodes...

                                RJ_Make

                                R 1 Reply Last reply
                                0
                                • RJ_MakeR RJ_Make

                                  It's a strange problem. In most of my "projects" I power the relays directly from the power supply, home built or mfg and other than adding some capacitors have not seen these problems. Now I aways use Opto-controled relays so I don't have to use any diodes...

                                  R Offline
                                  R Offline
                                  rafael.brasilia
                                  wrote on last edited by rafael.brasilia
                                  #19

                                  @ServiceXp
                                  What kind of power supply do you use to power the relays? I've tried several different options (iPhone charger, iPad charger, and various other 5v power supplies) but no luck. The LEDs on the relay turn on, but it doesn't click. Would you have a picture of one of your relays so I can see your setup?

                                  I also tried following the advice from @BulldogLowell and powered the relays from the VIN pin instead of the Arduino 5v output, but I had the same problem. The relay worked for a few hours, then stopped working.

                                  FYI: I am using a relay with optocoupler just like the one posted in the link above. Maybe I just got a batch of bad Arduinos from China?

                                  Thanks!

                                  SparkmanS 1 Reply Last reply
                                  0
                                  • R rafael.brasilia

                                    @ServiceXp
                                    What kind of power supply do you use to power the relays? I've tried several different options (iPhone charger, iPad charger, and various other 5v power supplies) but no luck. The LEDs on the relay turn on, but it doesn't click. Would you have a picture of one of your relays so I can see your setup?

                                    I also tried following the advice from @BulldogLowell and powered the relays from the VIN pin instead of the Arduino 5v output, but I had the same problem. The relay worked for a few hours, then stopped working.

                                    FYI: I am using a relay with optocoupler just like the one posted in the link above. Maybe I just got a batch of bad Arduinos from China?

                                    Thanks!

                                    SparkmanS Offline
                                    SparkmanS Offline
                                    Sparkman
                                    Hero Member
                                    wrote on last edited by Sparkman
                                    #20

                                    @rafael.brasilia I'm wondering if the relays are actually 9VDC or 12VDC relays that are misprinted as 5VDC. What happens if you power them with a 9V battery as a quick test? I use old phone chargers with similar 5V relays and never had an issue with powering them that way. Do you have any other relays you can test with?

                                    Cheers
                                    Al

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

                                      I thought the same, it was how i detected i had 12v relays instead of 5v. I just quickly powered with 9v bat and then the relay clicked.

                                      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
                                      • R Offline
                                        R Offline
                                        rafael.brasilia
                                        wrote on last edited by
                                        #22

                                        Thanks for the heads up. But I tried 9v and 12v and no luck! They only click when powered directly from the Arduino and they stop working after a few hours.

                                        1 Reply Last reply
                                        0
                                        • NuubiN Offline
                                          NuubiN Offline
                                          Nuubi
                                          wrote on last edited by
                                          #23

                                          You should probably draw a circuit diagram about your connections?

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


                                          15

                                          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