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
Motion detector with ESP8266 and HC-SR501
Moderator: leecollings
-
- 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
Klaas
Raspberry Pi 3: Domoticz, RFXtrx433, Zigbee2MQTT, MQTT, P1 meter, SMA Solar Inverter (modbus TCP/IP)
My Hobby Page about Domoticz & ESP8266
Raspberry Pi 3: Domoticz, RFXtrx433, Zigbee2MQTT, MQTT, P1 meter, SMA Solar Inverter (modbus TCP/IP)
My Hobby Page about Domoticz & ESP8266
Re: Motion detector with ESP8266 and HC-SR501
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
-
- 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
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
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
-
- 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
All,
I managed to get it working with ESP easy!
Best regards,
Marco
I managed to get it working with ESP easy!
Best regards,
Marco
-
- 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
Hi Marco,
Can you tell me how you got this working ??
I am stuck on the ESP_8266 EASY gui.
Thanks in advance,
Rick
Can you tell me how you got this working ??
I am stuck on the ESP_8266 EASY gui.
Thanks in advance,
Rick
Who is online
Users browsing this forum: No registered users and 1 guest