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. My Project
  3. Strange Situation

Strange Situation

Scheduled Pinned Locked Moved My Project
16 Posts 3 Posters 1.4k Views 2 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.
  • CrankyCoderC CrankyCoder

    im using wireless, nrf24l01.

    Wondering if possibly there is a weird power fluctuation and it's causing the arduino to reset. or if there is something in the light on/off that is messing with the PIR.

    an interesting note, and it just occurred to me. Both the bathroom and kitchen lights, the reason they aren't automated is they are both florescent lights... i wonder if that has anything to do with it.

    dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #6

    @crankycoder I assume you have capacitors on your incoming power on your sensors. If not, adding some may help power fluctuations if that is the problem. It is said that fluorescent lights can cause some interference in the 2.4GHz band. If these are simply screw in fluorescent bulbs, maybe change them for standard incandescent bulbs for a period to see if that makes a difference.

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    CrankyCoderC 1 Reply Last reply
    0
    • dbemowskD dbemowsk

      @crankycoder I assume you have capacitors on your incoming power on your sensors. If not, adding some may help power fluctuations if that is the problem. It is said that fluorescent lights can cause some interference in the 2.4GHz band. If these are simply screw in fluorescent bulbs, maybe change them for standard incandescent bulbs for a period to see if that makes a difference.

      CrankyCoderC Offline
      CrankyCoderC Offline
      CrankyCoder
      wrote on last edited by
      #7

      @dbemowsk no caps, definitely worth a shot, i figured since i was powering it off a usb port off another device it would already be cleaner power. but have been considering moving location anyway and changing out to some other power. I was looking at this post (https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain/9) and considering maybe trying something like that.

      Home Automation Tinkerer
      www.CrankyCoder.net

      Controller: HomeAssistant in Kubernetes
      Gateway: MQTTClientGateway
      MySensors: 2.3

      dbemowskD 1 Reply Last reply
      0
      • CrankyCoderC CrankyCoder

        @dbemowsk no caps, definitely worth a shot, i figured since i was powering it off a usb port off another device it would already be cleaner power. but have been considering moving location anyway and changing out to some other power. I was looking at this post (https://forum.mysensors.org/topic/9550/build-a-reliable-power-supply-chain/9) and considering maybe trying something like that.

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #8

        @crankycoder It's not so much about the power being clean. The caps will give little bursts of power when the attached sensors fire or whatever the sensor does. It prevents the arduino from browning out. I usually put a 10 uf or larger electrolytic and a 0.1 uf ceramic cap on the incoming power regardless of the source. In case you didn't know, always use caps with a voltage rating higher than your supply voltage. If you are pushing 12 volts to the raw pin of your arduino, I would use either 16v or 25v caps.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        zboblamontZ CrankyCoderC 2 Replies Last reply
        0
        • dbemowskD dbemowsk

          @crankycoder It's not so much about the power being clean. The caps will give little bursts of power when the attached sensors fire or whatever the sensor does. It prevents the arduino from browning out. I usually put a 10 uf or larger electrolytic and a 0.1 uf ceramic cap on the incoming power regardless of the source. In case you didn't know, always use caps with a voltage rating higher than your supply voltage. If you are pushing 12 volts to the raw pin of your arduino, I would use either 16v or 25v caps.

          zboblamontZ Offline
          zboblamontZ Offline
          zboblamont
          wrote on last edited by
          #9

          @dbemowsk @CrankyCoder Having re-read the thread, starting/firing of the fluorescent is the likely culprit, ballast initiation emitting RF reacting with some component combo of the Node and accessories, but identifying which and solving it could prove a nightmare compared to removing the emitting interference.
          Fluorescents were famed for running efficiently, but often overlooked is their considerable power demand at startup which made them more power hungry for on/off locations.

          For CFC bulbs, substitute for incandescent (as suggested), you can swap to LED later.
          For tubes LED versions are available but require some rewiring in the case to bypass the ballast.
          I switched out 90% of cfc and tubes to LED for energy savings, and have reduced bills to verify it was worth it. ;)

          CrankyCoderC 1 Reply Last reply
          1
          • dbemowskD dbemowsk

            @crankycoder It's not so much about the power being clean. The caps will give little bursts of power when the attached sensors fire or whatever the sensor does. It prevents the arduino from browning out. I usually put a 10 uf or larger electrolytic and a 0.1 uf ceramic cap on the incoming power regardless of the source. In case you didn't know, always use caps with a voltage rating higher than your supply voltage. If you are pushing 12 volts to the raw pin of your arduino, I would use either 16v or 25v caps.

            CrankyCoderC Offline
            CrankyCoderC Offline
            CrankyCoder
            wrote on last edited by
            #10

            @dbemowsk oh yeah, for the radio i have a capacitor. Just not for the main power coming in to the board. I have bags of capacitors so this should be an easy test to see if it helps :)

            Home Automation Tinkerer
            www.CrankyCoder.net

            Controller: HomeAssistant in Kubernetes
            Gateway: MQTTClientGateway
            MySensors: 2.3

            1 Reply Last reply
            0
            • zboblamontZ zboblamont

              @dbemowsk @CrankyCoder Having re-read the thread, starting/firing of the fluorescent is the likely culprit, ballast initiation emitting RF reacting with some component combo of the Node and accessories, but identifying which and solving it could prove a nightmare compared to removing the emitting interference.
              Fluorescents were famed for running efficiently, but often overlooked is their considerable power demand at startup which made them more power hungry for on/off locations.

              For CFC bulbs, substitute for incandescent (as suggested), you can swap to LED later.
              For tubes LED versions are available but require some rewiring in the case to bypass the ballast.
              I switched out 90% of cfc and tubes to LED for energy savings, and have reduced bills to verify it was worth it. ;)

              CrankyCoderC Offline
              CrankyCoderC Offline
              CrankyCoder
              wrote on last edited by
              #11

              @zboblamont good to know! I have 2 florescents in my garage that i swapped for LED. These didn't need to bypass the ballast. Might be worth a test to swap those out for the ones in the bathroom (where i see the most interference)

              Guess i know what im going to try when i get home!

              Home Automation Tinkerer
              www.CrankyCoder.net

              Controller: HomeAssistant in Kubernetes
              Gateway: MQTTClientGateway
              MySensors: 2.3

              zboblamontZ 1 Reply Last reply
              2
              • CrankyCoderC CrankyCoder

                @zboblamont good to know! I have 2 florescents in my garage that i swapped for LED. These didn't need to bypass the ballast. Might be worth a test to swap those out for the ones in the bathroom (where i see the most interference)

                Guess i know what im going to try when i get home!

                zboblamontZ Offline
                zboblamontZ Offline
                zboblamont
                wrote on last edited by
                #12

                @crankycoder
                No idea how the ballast behaves in that circuit configuration, the type used here were single ended power requiring a rewire including bypass of the ballast itself.
                Worth a try, the suspect spike should at least reduce in intensity.
                The common practice of not earthing the fittings might also reduce the shielding effect of the ballast case, even if it used to be mandatory for bathrooms.

                1 Reply Last reply
                0
                • CrankyCoderC Offline
                  CrankyCoderC Offline
                  CrankyCoder
                  wrote on last edited by
                  #13

                  So a little new info. Last night i had the lights turn off with the door closed, and no one turned on/off the kitchen/bathroom lights. But what did happen, I turned off a little space heater in my room. When i turned it off, the lights off. Finding this very interesting, i grabbed my phone (in the dark) and check the HA status. The motion detection was triggered... ok... so maybe it's not the PIR/repeater that's the issue...

                  It's the LIGHT MODULE!! There is a good chance that the power fluctuations aren't messing with the repeater itself, but actually resetting the arduino with my lamp relays. I think this weekend i need to pull that out, check the code to see if i am saving state to eeprom and also throw some capacitors on the incoming power to see if that helps.

                  Home Automation Tinkerer
                  www.CrankyCoder.net

                  Controller: HomeAssistant in Kubernetes
                  Gateway: MQTTClientGateway
                  MySensors: 2.3

                  zboblamontZ 1 Reply Last reply
                  2
                  • CrankyCoderC CrankyCoder

                    So a little new info. Last night i had the lights turn off with the door closed, and no one turned on/off the kitchen/bathroom lights. But what did happen, I turned off a little space heater in my room. When i turned it off, the lights off. Finding this very interesting, i grabbed my phone (in the dark) and check the HA status. The motion detection was triggered... ok... so maybe it's not the PIR/repeater that's the issue...

                    It's the LIGHT MODULE!! There is a good chance that the power fluctuations aren't messing with the repeater itself, but actually resetting the arduino with my lamp relays. I think this weekend i need to pull that out, check the code to see if i am saving state to eeprom and also throw some capacitors on the incoming power to see if that helps.

                    zboblamontZ Offline
                    zboblamontZ Offline
                    zboblamont
                    wrote on last edited by zboblamont
                    #14

                    @crankycoder A cause you didn't notice previously?
                    Mains borne issues should raise questions why other appliances did not cause effects unless in close proximity. Perhaps they did but you didn't observe it unless there? The mains interference just doesn't make sense...
                    At least you seem to have narrowed down the suspect device, progress...

                    1 Reply Last reply
                    1
                    • CrankyCoderC Offline
                      CrankyCoderC Offline
                      CrankyCoder
                      wrote on last edited by
                      #15

                      The space heater was pretty close in proximity and never noticed it cause... well i live in florida, i only use it like 3 times a year lol.

                      But, i also know this house (built in the 70s), had someone do the electrical that i have to question many a decision. Some outlets not grounded. There is an outlet in my kitchen that only turns on when the switch for the garbage disposal is running.... i haven't found exactly what device would only be needed when the disposal is running... but it's a mission i am on...

                      So i think throwing some caps on the input side of things is still worth a shot.

                      Home Automation Tinkerer
                      www.CrankyCoder.net

                      Controller: HomeAssistant in Kubernetes
                      Gateway: MQTTClientGateway
                      MySensors: 2.3

                      zboblamontZ 1 Reply Last reply
                      1
                      • CrankyCoderC CrankyCoder

                        The space heater was pretty close in proximity and never noticed it cause... well i live in florida, i only use it like 3 times a year lol.

                        But, i also know this house (built in the 70s), had someone do the electrical that i have to question many a decision. Some outlets not grounded. There is an outlet in my kitchen that only turns on when the switch for the garbage disposal is running.... i haven't found exactly what device would only be needed when the disposal is running... but it's a mission i am on...

                        So i think throwing some caps on the input side of things is still worth a shot.

                        zboblamontZ Offline
                        zboblamontZ Offline
                        zboblamont
                        wrote on last edited by
                        #16

                        @crankycoder Ok on the heater, but what I was getting at was if it is mains borne interference, appliances elsewhere might also trigger the phenomenon but you hadn't noticed as you were not in THAT room....
                        Sounds like you have some rogue amateur wiring there, for kitchens and bathrooms a ground wire is mandatory for safety I always understood, on a metal ballast case it provides RF shielding.
                        Perhaps you could shield the board for your Light Module if the caps don't sort it out?

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


                        20

                        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