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?
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?
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.
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.
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…
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.