Motion detector with ESP8266 and HC-SR501

Everything about esp8266 and more.

Moderator: leecollings

Post Reply
MeneerKlaas
Posts: 11
Joined: Monday 25 September 2017 17:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Motion detector with ESP8266 and HC-SR501

Post 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
Klaas

Raspberry Pi 3: Domoticz, RFXtrx433, Zigbee2MQTT, MQTT, P1 meter, SMA Solar Inverter (modbus TCP/IP)
My Hobby Page about Domoticz & ESP8266
SweetPants

Re: Motion detector with ESP8266 and HC-SR501

Post 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
MarcoRietveld
Posts: 3
Joined: Thursday 24 January 2019 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10343
Location: Netherlands
Contact:

Re: Motion detector with ESP8266 and HC-SR501

Post 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
MarcoRietveld
Posts: 3
Joined: Thursday 24 January 2019 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10343
Location: Netherlands
Contact:

Re: Motion detector with ESP8266 and HC-SR501

Post by MarcoRietveld »

All,

I managed to get it working with ESP easy!

Best regards,
Marco
rick8245
Posts: 75
Joined: Wednesday 22 April 2020 15:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Motion detector with ESP8266 and HC-SR501

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest