Page 1 of 1
Motion detector with ESP8266 and HC-SR501
Posted: Monday 25 September 2017 19:06
by MeneerKlaas
Dear all,
I would like to share with you a project on which I have been working for a while. It has reached it's final stage and is ready to be presented.
In this project I have build a motion detector (for alarm purposes) using an ESP8266 and a HC-SR501.
For detailed instructions I have created the following article on my hobby site. See this
link.
This is my first post on this forum. I hope you like the build instructions and find them useful.
Kind regards, Klaas
Re: Motion detector with ESP8266 and HC-SR501
Posted: Monday 25 September 2017 19:24
by SweetPants
Looking nice, working on a similar project but using a radar module instead of PIR combined with WiFi repeater (
https://github.com/martin-ger/esp_wifi_repeater) and Solid State relay
Re: Motion detector with ESP8266 and HC-SR501
Posted: Thursday 24 January 2019 9:44
by MarcoRietveld
Hi MeneerKlaas,
Thank you for this interesting post. I was looking for a Wifi based PIR for a long time.
I managed to get most it working following your link. Initially I had some troubles with a 401 HTTP authentication error, but solved now by adding user/pswd before the IP address of my Domoticz server.
I can read out Voltage and see a state change of the PIR only one time in the beginning, after that the code is activating deep sleep and never triggered by the PIR. So obviously I don't use the right GPIO. You are using the RST, but I don't understand the code you are using and how to implement it.
I use a NODEMCU and AM312 PIR, so different from yours. The AM312 is great because it's one of the only PIR's around with some internal DSP processing and therefore does not give false positives. This seems to be an issue in combination with the ESP8266 closeby the PIR.
In my case I don't really care about the ultra low power consumption, and I would like to use a standard GPIO if possible.
In the code I cannot see where or how to select another GPIO. By any chance you can help me?
Best regards,
Marco Rietveld
Re: Motion detector with ESP8266 and HC-SR501
Posted: Sunday 17 February 2019 15:35
by MarcoRietveld
All,
I managed to get it working with ESP easy!
Best regards,
Marco
Re: Motion detector with ESP8266 and HC-SR501
Posted: Wednesday 22 April 2020 16:11
by rick8245
Hi Marco,
Can you tell me how you got this working ??
I am stuck on the ESP_8266 EASY gui.
Thanks in advance,
Rick