• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

PIR Motion detection sensor

Q&A Forum › PIR Motion detection sensor
0 Vote Up Vote Down
ajocius asked 6 years ago

What is most reliable motion detection sensor for use with ESP32? I tried only HC-SR505 module and even if it works, it is very unpredictable ( Used example from book “Micropython programing with ESP32”) . Often it does not detect movement even if I wave my hand right in front of it. It could be that motion detector is deffective, bought it cheap from aliexpress. Do you have other experience with it? Ordered HC-SR501, but it will be 4-5 weeks before I get it. I see there are also AM312, SR602 perhaps some other ? What is recommended to use?

Question Tags: ESP32, motion detector, PIR, SR505
5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

I’ve been using the HC-SR505 in all my projects and it’s been proven to be very reliable for me. Did you try with different sensors or you only have one?

0 Vote Up Vote Down
ajocius answered 6 years ago

I only had one sensor. Have ordered new one . Also ordered HC-SR501, think that is the one you used in the example in your book.
It would nice to hear your opinion about microwave sensor, those are supposed to be more reliable? I ordered RCWL-0516 sensor as well to test it hope. Hope it can be wired same way as your described HC-SR501 model.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

I’ve never used the RCWL-0516 sensor, but those PIR sensors that I use have been working reliably for me. 
Note: when the HC-SR505 detects motion, it’s HIGH for a couple of seconds. This means that if you try to trigger it multiple times in a row, nothing will happen (first, it needs to go LOW, so it can be triggered again). This is actually a good thing, because it will not send you unnecessary false warning. I’m not sure if this is what’s happening to you and you think it’s not working correctly.

0 Vote Up Vote Down
ajocius answered 6 years ago

Sometimes it reacts to movement, then LED will turn on and stay on for 10 sec. I wait until LED is off, it must be low then.I do movement and nothing happens, LED stays off. Also sometimes it turns on without movement. I have covered it, so that it could not see any movement, but still LED was turning on and off…

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

That’s definitely a weird behavior that shouldn’t happen. I’m not sure if it’s something in your workspace that might be causing interference (triggering the PIR) or it’s simply a bad sensor that is causing those problems.
As I said in my previous comment, when the HC-SR505 detects motion, it’s HIGH for a couple of seconds. So, you can’t trigger it multiple times in a row… But it shouldn’t be triggered without any movement.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.