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. Anyone help with 4 relays please?

Anyone help with 4 relays please?

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 6 Posters 5.1k Views 9 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.
  • gohanG gohan

    I was referring to the internal Arduino watchdog

    Petr NosekP Offline
    Petr NosekP Offline
    Petr Nosek
    wrote on last edited by
    #25

    @gohan OK, then this one I never saw in logs doing anything, or it perhaps actually never worked for me :)

    1 Reply Last reply
    0
    • P Offline
      P Offline
      palmerfarmer
      wrote on last edited by
      #26

      I Know this is quite an old topic now but mine is working quite stable (for at least one day)
      I noticed the sketch has
      #define MY_RF24_PA_LEVEL RF24_PA_HIGH
      If you are too close to the gateway or using a capacitor across the 3v rail on the NRF24L01 and switching quickly you really have no chance of it being stable. (or any of one these 3 things)
      I have mine set to:-
      #define MY_RF24_PA_LEVEL (RF24_PA_MIN)
      and using a 5v to 3v NRF plugin module, search ebay for 'NRF24L01 Wireless RF Transceiver Socket Adapter Board 3.3v'

      1 Reply Last reply
      0
      • parachutesjP Offline
        parachutesjP Offline
        parachutesj
        wrote on last edited by
        #27

        come back in a year and let us know :-)

        Well, I have only two single relay nodes left in my setup (lamps). They work good without issues, but need to mention that those are solid state.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          palmerfarmer
          wrote on last edited by
          #28

          Ah ok, good to know. I also spoke too soon....
          Today they were unstable, I noticed that some of the on /off commands were not being recieved (small LED flash on the arduino) looked at the logs on domoricz they were fine, however the serial monitor on the arduino node confirmed they weren't always being seen.
          Have changed the mysensors libraries on the node to be the same as the usb gateway and its all stable again.
          next action will be to monitor the logs on the gateway, node and domoticz at the same time

          I have one of those blue 4 relay units from ebay, the jumper has been removed so only the LED lights when i activate the channel.

          1 Reply Last reply
          0
          • parachutesjP Offline
            parachutesjP Offline
            parachutesj
            wrote on last edited by
            #29

            I tried so much and never reproduced it. had a test setup with a 4 and 8–way relay switching every couple of seconds something. Guess what: after 10 days I gave up because it worked flawless. But then again under load it failed.
            But everything except relays work very reliable.

            1 Reply Last reply
            0
            • Petr NosekP Offline
              Petr NosekP Offline
              Petr Nosek
              wrote on last edited by
              #30

              I tell you guys, I have about 10 nodes at home with relays, some switching lights, some doors, some 12 motors. All I had to do was to provide separate source to the relay from the source to the arduino. Since then, last 2 years I get 98% reliability.

              parachutesjP 1 Reply Last reply
              1
              • skywatchS Offline
                skywatchS Offline
                skywatch
                wrote on last edited by skywatch
                #31

                With relays involved that usually means switching of higher current devices so I suggest that whether or not you use separate power supplies that you add capacitors everywhere.
                Capacitors on the pro-mini or whatever device, the 5V/3.3V power supply and across the power input to the relay board.

                You will need to add more than one capacitor at each point. I suggest a good ceramic or electrolytic of 100uF or more for a little reserve and 10n or 100n (better both) to remove 'glitches' from the power lines. (All capacitors should be in parallel across the +/- DC terminals).

                If you have access to an oscilliscope then it will be a great help in tracking this down. But switching of high powered loads or inductive loads can send emf pulses that get picked up by the wiring in your project, hence the need to add caps on all boards.

                As soon as (or if) my gateway/controller combo becomes stable enough I will proceed with this sort of work and will share any findings with you all. But the above should help and is good practice to follow as the boards from China will only have the bare minimum components they need to work.

                Petr NosekP 1 Reply Last reply
                0
                • skywatchS skywatch

                  With relays involved that usually means switching of higher current devices so I suggest that whether or not you use separate power supplies that you add capacitors everywhere.
                  Capacitors on the pro-mini or whatever device, the 5V/3.3V power supply and across the power input to the relay board.

                  You will need to add more than one capacitor at each point. I suggest a good ceramic or electrolytic of 100uF or more for a little reserve and 10n or 100n (better both) to remove 'glitches' from the power lines. (All capacitors should be in parallel across the +/- DC terminals).

                  If you have access to an oscilliscope then it will be a great help in tracking this down. But switching of high powered loads or inductive loads can send emf pulses that get picked up by the wiring in your project, hence the need to add caps on all boards.

                  As soon as (or if) my gateway/controller combo becomes stable enough I will proceed with this sort of work and will share any findings with you all. But the above should help and is good practice to follow as the boards from China will only have the bare minimum components they need to work.

                  Petr NosekP Offline
                  Petr NosekP Offline
                  Petr Nosek
                  wrote on last edited by
                  #32

                  @skywatch, thanks for the reply. I read about using capacitaators, but never in such a complex and straightforward way. I can surely try it as well and switch back to one power supply and see "the difference".
                  I look forward your tests and findings, if you can post them here. Is there any "formula" to calculate the capacitor values - when you say 100 uF or more - what can you propose as more and what is already too much?
                  Also when you say "good ceramic or electrolytic" - what do you refer to as "good"?
                  Basically if I read you well, it is the same as having the capacitors on NRF24 radio on + and GND to avoid issues with signal glitches?
                  Thanks again to take time to reply here. Really appreciate this kind of feedback!

                  skywatchS 1 Reply Last reply
                  0
                  • Petr NosekP Petr Nosek

                    @skywatch, thanks for the reply. I read about using capacitaators, but never in such a complex and straightforward way. I can surely try it as well and switch back to one power supply and see "the difference".
                    I look forward your tests and findings, if you can post them here. Is there any "formula" to calculate the capacitor values - when you say 100 uF or more - what can you propose as more and what is already too much?
                    Also when you say "good ceramic or electrolytic" - what do you refer to as "good"?
                    Basically if I read you well, it is the same as having the capacitors on NRF24 radio on + and GND to avoid issues with signal glitches?
                    Thanks again to take time to reply here. Really appreciate this kind of feedback!

                    skywatchS Offline
                    skywatchS Offline
                    skywatch
                    wrote on last edited by skywatch
                    #33

                    @petr-nosek said in Anyone help with 4 relays please?:

                    Is there any "formula" to calculate the capacitor values - when you say 100 uF or more - what can you propose as more and what is already too much?

                    This can be trial and error as there is no critical value to calculate. Just make sure that you use the next available voltage above what you are using for power (i.e. 6.3V capacitor for 5V power supply ).... I think that once you get above 1000uF it will be dimishing returns and increasing cost/size as well.

                    Also when you say "good ceramic or electrolytic" - what do you refer to as "good"?

                    From a reputable electronics supplier like digikey, mouser, rs components, element14 etc - but preferably NOT from ebay, aliexpress etc.

                    Basically if I read you well, it is the same as having the capacitors on NRF24 radio on + and GND to avoid issues with signal glitches?
                    Thanks again to take time to reply here. Really appreciate this kind of feedback!

                    Yes. The smaller capacitors will reduce any spike or impluse noise in the cables and the larger capacitor will act like a resevoir to give a little boost when needed as well as smoothing out any ripple from the DC power supply.

                    And speaking of which, get a really good power supply (again from a reputable seller). It may cost 2-3 times of the online junk, but you will have a good quality certified power supply that is safe to use.

                    1 Reply Last reply
                    0
                    • Petr NosekP Petr Nosek

                      I tell you guys, I have about 10 nodes at home with relays, some switching lights, some doors, some 12 motors. All I had to do was to provide separate source to the relay from the source to the arduino. Since then, last 2 years I get 98% reliability.

                      parachutesjP Offline
                      parachutesjP Offline
                      parachutesj
                      wrote on last edited by
                      #34

                      @petr-nosek
                      sure with the 2nd power supply it looks different. However mine were all in-wall and there is just not enough space for this.

                      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