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.
  • 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
              • NuubiN Nuubi

                You should probably draw a circuit diagram about your connections?

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

                @Nuubi
                This is how I have my connections:
                Relay Diagram.png

                Is there anything wrong with it?
                Thanks!

                1 Reply Last reply
                0
                • korttomaK Offline
                  korttomaK Offline
                  korttoma
                  Hero Member
                  wrote on last edited by
                  #25

                  Try adding a wire between the GND on your relay board and GND on your arduino. Even if they have seperate power source you stil need to connect GND between them.

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

                    Exactly that is the reason. Yep.

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

                      YES!!! That was it! I got both relays powered from the external power supply now and everything seems to be working fine.
                      Thank you all very much!

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


                      14

                      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