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. Strange problem with relay board

Strange problem with relay board

Scheduled Pinned Locked Moved Hardware
15 Posts 7 Posters 8.3k 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.
  • SparkmanS Offline
    SparkmanS Offline
    Sparkman
    Hero Member
    wrote on last edited by
    #2

    Hi Simon, are all the grounds connected together, or are the power supplies all completely separate? I would make sure you have a common ground? Also, do you have a capacitor on the radio power pins?

    Cheers
    Al

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xefil
      wrote on last edited by
      #3

      Hello!

      The ground is separate. Relay Board takes the ground from the 12V adapter, also Arduino and the Relay Board have their own ground not connected together.
      Yes, I have a 4 uF capacitor on the radio. Do you think I need to increase the capacitor? Seems like powering on/off the relays (only the led connected to the IN[1-4], the relays itself are powered via AC 12V) are creating a kind of disturb....
      If I can make some tests to give more informations, let me know ;)

      Thanks!
      Simon

      SparkmanS 1 Reply Last reply
      0
      • G Offline
        G Offline
        Gefkuz
        wrote on last edited by
        #4

        Hi,

        I saw the same problem in the past.
        what is "The radio is powered via 662K voltage regulator."
        What do you mean by 662K?

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xefil
          wrote on last edited by
          #5

          Hello @Gefkuz,

          I mean I'm powering the radio via 5V from the Arduino Pro Mini but using the Voltage Regulator 662K to have the 3.3V needed power.
          Could be that the radio looses power when the relays are turned ON/OFF?

          Simon

          1 Reply Last reply
          0
          • X xefil

            Hello!

            The ground is separate. Relay Board takes the ground from the 12V adapter, also Arduino and the Relay Board have their own ground not connected together.
            Yes, I have a 4 uF capacitor on the radio. Do you think I need to increase the capacitor? Seems like powering on/off the relays (only the led connected to the IN[1-4], the relays itself are powered via AC 12V) are creating a kind of disturb....
            If I can make some tests to give more informations, let me know ;)

            Thanks!
            Simon

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

            @xefil Hi Simon, I would make sure that you have one common ground. You could try a larger capacitor as well. Also, maybe post which specific relay board you are using. Which power supply is connected to the Raw and Gnd pins on the Arduino?

            Cheers
            Al

            1 Reply Last reply
            0
            • X Offline
              X Offline
              xefil
              wrote on last edited by
              #7

              Hello @Sparkman,
              This is EXACTLY the board I'm using:

              http://www.aliexpress.com/item/Brand-New-5V-4-Channel-Relay-Module-for-Arduino-PIC-ARM-DSP-AVR-Raspberry-Pi/1899443885.html

              I've seen it has only one ground pin which is connected to the external power supply.
              So, the wires are connected as follow:

              Relay Board:
              [IN1-4] -> Arduino digital PINS
              [VCC] -> Arduino 5V
              [JD-VCC] -> External power supply 12V (via 7805 to obtain 5V)
              [GROUND] -> External power supply 12V ground

              The Arduino is actually powered on via the FT232 adapter then via USB on a 1A power supply.

              I've seen that, if I remove the JD-VCC the relays are not working as expected, but the leds on the relay board, that are showing if the relay is on/off are working correctly. I mean, if I dont give power to the JD-VCC the board is working well without issues. I can send then on/off via Openhab to the relays without problems. As soon I connect the JD-VCC and I use the same relay, it stops to work after one or two tries. Seems really that the relay, powering on, creates a disturb to the antenna that brings it to stop to work. I need to reset all and then it works again for one or two times.

              Any suggestion?

              Thanks, Simon

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gefkuz
                wrote on last edited by
                #8

                On my system, I replace the main alimentation by a litle biggest one. Since that, all worked well.
                Sorry for my English.

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vampircik
                  wrote on last edited by
                  #9

                  @xefil said:

                  [IN1-4] -> Arduino digital PINS
                  [VCC] -> Arduino 5V

                  Hi. relay board need not be powered by Arduino, but from a separate power supply is 5 volts. if you eat more than 1 relay from Arduino he lacks the power to instruct the other relays, it affects his work.

                  1 Reply Last reply
                  0
                  • AWIA Offline
                    AWIA Offline
                    AWI
                    Hero Member
                    wrote on last edited by AWI
                    #10

                    As I understand it is the radio which stops working. I had similar issues which in the end made me to move to solid state relays. A few possible causes : ESD caused by the coil in the relay (you can try to change the orientation of the relay with respect to the radio) ; powerline spikes (careful layout of ground wires: no loops, solid wire, isolated vcc's ; bad components ie : fake optoisolators on the relay board ; sensitive radio.

                    Happy debugging ;)

                    1 Reply Last reply
                    0
                    • X Offline
                      X Offline
                      xefil
                      wrote on last edited by
                      #11

                      Hello @vampircik and @AWI
                      Thanks for the replies!
                      I've ended adding a 220uF to the radio. This helps definetly to send the commands well. Then I've added this little hack to gain the range, posted somewhere in this forum as well:
                      https://www.youtube.com/watch?v=NpMnauHeR7Y

                      Now seems MORE stable. Well, it happens that turning on the first relay, the arduino reboots (takes 3 secs) and then all the other relays are working well, the first relay too. Maybe some spikes in power?

                      Simon

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

                        Adding some cap to the arduino itself could help, i.e. between 5V and gnd. I've been able to get rid of some reboots by doing that. Power supplies can output rather noisy outputs.

                        1 Reply Last reply
                        0
                        • X Offline
                          X Offline
                          xefil
                          wrote on last edited by
                          #13

                          Hello @Nuubi
                          Sorry, as written I'm not so proof with electronic but, on the other hand, as soon I get something to work, I'm happy like a kid with his new gift :)
                          BTW, what do you mean exactly? I should solder some capacitor between 5V and GND? Directly on the Arduino? Which size in case?

                          Thanks a lot!

                          Simon

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

                            Oh well, it can be actually extremely complicated. But, basically, add a larger cap + a small one together. Larger one acts as a power reservoir and smaller one filters high voltage spikes. Basically like that, as I understand the situation. Large ones are in the range of micro Fs, smaller ones nano Fs.

                            1 Reply Last reply
                            0
                            • ferpandoF Offline
                              ferpandoF Offline
                              ferpando
                              Hero Member
                              wrote on last edited by
                              #15

                              I had the same problem a few months ago.
                              The problem solved powering the arduino from a different power supply.
                              You can read a bout it here

                              Node freezing up

                              No more problems since

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


                              11

                              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