node_hcsr04
node_hcsr04 copied to clipboard
Distance measurement example for ESP8266/NodeMCU using HC-SR04 ultrasonic sensor
I am able to make the module/setup work perfectly with the Arduino code and can confirm hardware is in proper order. With this library unfortunately i get only -1 as...
after ~10 successful readings I will get an error - PANIC: unprotected error in call to Lua API (hcsr04.lua:42: attempt to index global 'tmr' (a nil value)) line 42 is...
Hi, With my srf05 sensor I get readings jumping by ~1 meter - every 10seconds I get a drastically different reading. Do you have any similar experiences? Or perhaps is...
I used your code but I only get incorrect readings from the HC-SR04 sensor. I did some debug modifications in the function self.measure() see below: function self.measure() gpio.trig(self.echo, "up", self.echo_cb)...