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 node hangs sometimes when toggling a fan

Relay node hangs sometimes when toggling a fan

Scheduled Pinned Locked Moved Troubleshooting
10 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.
  • C Offline
    C Offline
    chris021
    wrote on last edited by
    #1

    Hi,

    I have a sensor node driving a fan and sometimes when toggling the relay the node locks up. I am using a nano board and when it locks up the TX led stays solid.

    The relay board is opto isolated. I have done some research about the interference that can be caused by a relay switching a motor, but I don't understand the solutions and given its 240v I don't want to make changes to the 240 side unless I fully understand them.

    I have tried swapping out the radio, the nano and the relay.

    I have not been able to reproduce the fault when the fan is disconnected.

    My skills are quite basic so any simple advice would be very much appreciated!

    Chris021

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      Do you feed the relay from your arduino?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chris021
        wrote on last edited by
        #3

        I have D3 signal low to trigger the relay. The same 5V source powers the relay, but this works fine if no load is connected.

        BulldogLowellB 1 Reply Last reply
        0
        • C chris021

          I have D3 signal low to trigger the relay. The same 5V source powers the relay, but this works fine if no load is connected.

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

          @chris021 said:

          The same 5V source powers the relay

          what kind of power source are you using?

          C 1 Reply Last reply
          0
          • T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #5

            I've the same problem with a 4 relay board. After a few times switching on and off, the Atmega hangs.
            Especially if more than one relay on the board is switched.

            I'm currently swithing the power source.

            1 Reply Last reply
            0
            • BulldogLowellB BulldogLowell

              @chris021 said:

              The same 5V source powers the relay

              what kind of power source are you using?

              C Offline
              C Offline
              chris021
              wrote on last edited by
              #6

              @BulldogLowell im using one of these onto the 5v pin of the board:

              http://www.aliexpress.com/item/5-pcs-AC-DC-85V-265V-700mA-Isolated-Switching-Power-Board-Module-Industrial-Power-Supply-Built/1260239970.html

              I have also tried feeding it via USB of a 2.1 amp supply with the same results.

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

                So you are powering both the relays and the arduino in parallel from the transformer?

                have you tried isolating the arduino's power from the transformer with a capacitor?

                the power surge of the relays (even though you have an opto-isolator from arduino to relays) may cause issues for the arduino.

                perhaps start with a regular 4.7µF across the Vin and ground of the arduino

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  chris021
                  wrote on last edited by
                  #8

                  its worth a try, however this works 100% fine when there is not a fan connected :) I might try a different AC device to see if that is just as reliable as no AC device connected.

                  BulldogLowellB 1 Reply Last reply
                  0
                  • C chris021

                    its worth a try, however this works 100% fine when there is not a fan connected :) I might try a different AC device to see if that is just as reliable as no AC device connected.

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

                    @chris021 said:

                    however this works 100% fine when there is not a fan connected

                    motors draw a tremendous amount of current when they start... Try isolating the arduino's power from the transformer, or using the capacitor.

                    C 1 Reply Last reply
                    0
                    • BulldogLowellB BulldogLowell

                      @chris021 said:

                      however this works 100% fine when there is not a fan connected

                      motors draw a tremendous amount of current when they start... Try isolating the arduino's power from the transformer, or using the capacitor.

                      C Offline
                      C Offline
                      chris021
                      wrote on last edited by
                      #10

                      @BulldogLowell I have powered it off an external battery pack. Same story!

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


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      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