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. PIR sensor firing every 20 seconds

PIR sensor firing every 20 seconds

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 3 Posters 437 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.
  • J Offline
    J Offline
    Jan Aerts
    wrote on last edited by
    #1

    Hi all,

    For some reason my PIR sensor (HC-SR501) fires exactly every 20 seconds. These false triggers happen even if the sensor is put inside a closed cupboard (so definitely no movement or temperature changes), and turning the knobs on the sensor itself does not have an effect.

    Does anyone have a clue what might cause this?

    Thank you!

    mfalkviddM 1 Reply Last reply
    0
    • J Jan Aerts

      Hi all,

      For some reason my PIR sensor (HC-SR501) fires exactly every 20 seconds. These false triggers happen even if the sensor is put inside a closed cupboard (so definitely no movement or temperature changes), and turning the knobs on the sensor itself does not have an effect.

      Does anyone have a clue what might cause this?

      Thank you!

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      Hi @jan-aerts, welcome to the forum!

      Does it trigger even if not connected to an Arduino? (power the PIR from battery or stable bench power supply and measure the output with a multimeter to eliminate the Arduino and the power supply as possible source of the problem)
      esp8266 is known to cause false triggers.

      Broken sensor och short circuit somewhere on the board could cause problems as well.

      1 Reply Last reply
      0
      • bgunnarbB Offline
        bgunnarbB Offline
        bgunnarb
        wrote on last edited by
        #3

        In my experience PIR sensor are very sensitive to spikes in the power supply, especially if you run them on voltages close to the lower limit. I feed mine with a separate +8 volt supply. If you run it on the same 5 volt supply as the ESP8266 you are almost guaranteed to get false triggers. The 20 seconds is probably the time after which the PIR resets. This causes a spike on the supply which triggers the PIR again. This happened to me.

        I have never been so busy since I retired!

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


        21

        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