Page 1 of 1

ESP8266 + HC-SR04

Posted: 09 Sep 2015, 15:27
by maluko
hi

its any change to put the hc-sr04 work with espeasy support?

i put this example to see.

https://github.com/loiphin/ESP8266

thanks

Re: ESP8266 + HC-SR04

Posted: 09 Sep 2015, 16:01
by Martinus
We had support for this device on the Nodo Project and the plugin has already been ported to the new ESP plugin type. But only in theory, because it has never been tested. (too busy with other ESP related stuff :oops: )

So the plugin has been build but needs to be tested. If it's ok, it will be released with the next ESP Easy update.

Re: ESP8266 + HC-SR04

Posted: 09 Sep 2015, 18:45
by Martinus
maluko wrote:its any change to put the hc-sr04 work with espeasy support?
Just hooked up a HC-SR04 sensor and added the plugin to the source folder. It works and Domoticz receives the distance in cm...

What purpose did you have in mind for this device? Create your own wireless car parking distance sensor? :geek:

Re: ESP8266 + HC-SR04

Posted: 09 Sep 2015, 20:20
by chrille
Martinus wrote:What purpose did you have in mind for this device? Create your own wireless car parking distance sensor? :geek:
I have plans with the HC-SR04 as well. The idea is to use it to detect if my garage port is open or not. The sensor will sit on the ceiling and measure distance. The reason I want to use this, instead of the classic reed door sensor, is that I often leave the port 10-20 cm open (for better ventilation). The sensor will be placed in a distance from the wall, so when the port is open more than 20 cm, it will pass the sensor and be considered open.

- Jan

Re: ESP8266 + HC-SR04

Posted: 09 Sep 2015, 23:31
by maluko
I havê plan on security like when distance are minus than 2m will tell me an alarm or notification.

Re: ESP8266 + HC-SR04

Posted: 13 Sep 2015, 18:06
by Martinus
The HC-SR04 is supported in R20 which has just been released on sourceforge.

Re: ESP8266 + HC-SR04

Posted: 13 Sep 2015, 22:20
by maluko
Martinus wrote:The HC-SR04 is supported in R20 which has just been released on sourceforge.
Thanks martinus, i ll test