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. HC-SR501 3.3V randomly sends tripped when radio is on

HC-SR501 3.3V randomly sends tripped when radio is on

Scheduled Pinned Locked Moved Troubleshooting
39 Posts 8 Posters 15.8k Views 8 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.
  • B
    B
    burningstone
    wrote on last edited by
    #25

    @Yveaux
    That sounds like exactly what I want :)

    Would it be possible to add a dht22 or would this interfere with the pir?

    1 Reply Last reply
    0
    • B burningstone

      @Yveaux
      Thank you very much.
      I'll order a battery pack for 3 batteries, currently I have only a pack for 2 batteries.

      How long does it take approximately till the batteries are empty? I know that it depends on how frequent the sensor gets triggered, but maybe you can tell me some average values.

      mfalkviddM
      mfalkviddM
      mfalkvidd
      Mod
      wrote on last edited by
      #26

      @burningstone if you don't want to wait for the 3xAA holder you can do like this
      0_1490128739892_pir.png

      1 Reply Last reply
      0
      • B
        B
        burningstone
        wrote on last edited by
        #27

        @mfalkvidd
        Awesome! How do i connect the wires to the battery? Solder them or what?

        mfalkviddM 1 Reply Last reply
        0
        • B burningstone

          @mfalkvidd
          Awesome! How do i connect the wires to the battery? Solder them or what?

          mfalkviddM
          mfalkviddM
          mfalkvidd
          Mod
          wrote on last edited by
          #28

          @burningstone the ugly way is to solder :) It works, but becomes a quite permanent solution.
          I prefer using scotch tape. Or, if you have an extra 2xAA holder you can do like this (skip the fourth battery):
          0_1490130384837_pir2.png

          1 Reply Last reply
          0
          • B
            B
            burningstone
            wrote on last edited by
            #29

            @mfalkvidd
            And how can i tape the wire on the side of the battery holder? My battery holder package already has two wires connected like in the fritzing pictures.

            YveauxY 1 Reply Last reply
            0
            • gohanG
              gohanG
              gohan
              Mod
              wrote on last edited by
              #30

              Or put the wire between the battery and spring/contact

              1 Reply Last reply
              0
              • B burningstone

                @mfalkvidd
                And how can i tape the wire on the side of the battery holder? My battery holder package already has two wires connected like in the fritzing pictures.

                YveauxY
                YveauxY
                Yveaux
                Mod
                wrote on last edited by
                #31

                @burningstone tape a wire directly on the battery, or solder to the battery or the holder.
                Look what you have lying around and be creative!
                That's what MySensors is about!

                http://yveaux.blogspot.nl

                B 1 Reply Last reply
                2
                • YveauxY Yveaux

                  @burningstone tape a wire directly on the battery, or solder to the battery or the holder.
                  Look what you have lying around and be creative!
                  That's what MySensors is about!

                  B
                  B
                  burningstone
                  wrote on last edited by
                  #32

                  @Yveaux
                  Sorry I have been a long time away due to exams.
                  Now I finally have time to spend for mysensors :)

                  I tried your approach with the three batteries. My setup looks like this:

                  0_1497178432582_Motion Light.PNG

                  I modified the HC-SR501 as shown below:

                  0_1497178475013_HC-SR501.jpg

                  The sketch is pretty simple, it sends the motion and the light level and then goes to sleep with interrupt for 30 minutes. I still get the false positives whenever the arduino doesn't wake up from intrerrupt.

                  What am I doing wrong?

                  YveauxY m26872M 2 Replies Last reply
                  0
                  • gohanG
                    gohanG
                    gohan
                    Mod
                    wrote on last edited by
                    #33

                    Try adding a cap on the power of the pir sensor, start from 10uf and try to increase up to 100uf and see if it gets better

                    1 Reply Last reply
                    0
                    • B burningstone

                      @Yveaux
                      Sorry I have been a long time away due to exams.
                      Now I finally have time to spend for mysensors :)

                      I tried your approach with the three batteries. My setup looks like this:

                      0_1497178432582_Motion Light.PNG

                      I modified the HC-SR501 as shown below:

                      0_1497178475013_HC-SR501.jpg

                      The sketch is pretty simple, it sends the motion and the light level and then goes to sleep with interrupt for 30 minutes. I still get the false positives whenever the arduino doesn't wake up from intrerrupt.

                      What am I doing wrong?

                      YveauxY
                      YveauxY
                      Yveaux
                      Mod
                      wrote on last edited by
                      #34

                      @burningstone what MySensors version are you running? I did solve an issue with waking from interrupts in 2.2 beta, that's still present in 2.1.x. This might be what's bothering you...

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      0
                      • B burningstone

                        @Yveaux
                        Sorry I have been a long time away due to exams.
                        Now I finally have time to spend for mysensors :)

                        I tried your approach with the three batteries. My setup looks like this:

                        0_1497178432582_Motion Light.PNG

                        I modified the HC-SR501 as shown below:

                        0_1497178475013_HC-SR501.jpg

                        The sketch is pretty simple, it sends the motion and the light level and then goes to sleep with interrupt for 30 minutes. I still get the false positives whenever the arduino doesn't wake up from intrerrupt.

                        What am I doing wrong?

                        m26872M
                        m26872M
                        m26872
                        Hardware Contributor
                        wrote on last edited by
                        #35

                        @burningstone You probably want to find the root cause to this but, as a quick fix, have you tried software-blocking the false trip with an additional sleep before the interrupt-activating sleep? Something like sleep(3000); before the last sleep(...). I do it with success for my mini-pirs.

                        nagelcN 1 Reply Last reply
                        0
                        • B
                          B
                          burningstone
                          wrote on last edited by
                          #36

                          @Yveaux @gohan
                          I updated the library to 2.2 and I put a 47uf cap between ground and vcc of the pir (hope that's what you mean't) and now it works.

                          Thanks for your help!

                          I soldered now everything onto a pcb and now the pir doesn't work. I feel like giving up, didn't think that it would be that hard for me to build one stable node. I spent almost 2 hours soldering and assembling and now it doesn't work :(

                          dbemowskD 1 Reply Last reply
                          0
                          • m26872M m26872

                            @burningstone You probably want to find the root cause to this but, as a quick fix, have you tried software-blocking the false trip with an additional sleep before the interrupt-activating sleep? Something like sleep(3000); before the last sleep(...). I do it with success for my mini-pirs.

                            nagelcN
                            nagelcN
                            nagelc
                            wrote on last edited by
                            #37

                            @m26872 Thanks for this suggestion. I have had some PIR sensors that work normally and others that always trip immediately after going to sleep. It was really frustrating me. Adding the short sleep without interrupts solved this for me.

                            1 Reply Last reply
                            0
                            • gohanG
                              gohanG
                              gohan
                              Mod
                              wrote on last edited by
                              #38

                              the standard cheap PIR sensors are known to trigger false positives because of power fluctuations

                              1 Reply Last reply
                              0
                              • B burningstone

                                @Yveaux @gohan
                                I updated the library to 2.2 and I put a 47uf cap between ground and vcc of the pir (hope that's what you mean't) and now it works.

                                Thanks for your help!

                                I soldered now everything onto a pcb and now the pir doesn't work. I feel like giving up, didn't think that it would be that hard for me to build one stable node. I spent almost 2 hours soldering and assembling and now it doesn't work :(

                                dbemowskD
                                dbemowskD
                                dbemowsk
                                wrote on last edited by
                                #39

                                @burningstone Check connections with a continuity tester and measure your voltages coming to the arduino and PIR. When checking continuity, check directly from the jack on the PIR and/or temp sensor to the pro mini terminals, and also check pins near the connections for any possible shorts.

                                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/

                                1 Reply Last reply
                                0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                21

                                Online

                                12.4k

                                Users

                                11.2k

                                Topics

                                113.5k

                                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