Difference in GPIO module between 1.4.0 and 1.5.1?
Posted: Sun Apr 03, 2016 3:30 pm
Hello,
I hope this is the correct sub-forum.
I interfaced my nodeMCU v2 with an HC-SR04 ultrasonic distance measure sensor (using a 1k resistor between the 5V echo pin and the nodeMCU's GPIO pin). As software I am using the well known node_hcsr04.lua script from Tamas Szabo (github link).
Here is the thing, though. When flashing a firmware from the MASTER branch (1.4.0) onto the ESP8266, everything works as expected and I can get the distance readings. As soon as I am flashing a firmware from the DEV branch (1.5.1) onto the nodeMCU, the node_hcrs04.lua script is unable to get any measurements from the sensor, i.e., measure the delay between trigger and echo signal ("-1" is returned which means, the echo signal hasn't been detected). Back on firmware 1.4.0, everything works again. Both firmwares were build via nodemcu-build.com with the same modules selected.
Is there a change between the MASTER an DEV branch in the GPIO module (or another one) which could render the node_hcrs04.lua script dis-functional? It basically only uses gpio.trig and gpio.write.
Thanks for any hints!
I hope this is the correct sub-forum.
I interfaced my nodeMCU v2 with an HC-SR04 ultrasonic distance measure sensor (using a 1k resistor between the 5V echo pin and the nodeMCU's GPIO pin). As software I am using the well known node_hcsr04.lua script from Tamas Szabo (github link).
Here is the thing, though. When flashing a firmware from the MASTER branch (1.4.0) onto the ESP8266, everything works as expected and I can get the distance readings. As soon as I am flashing a firmware from the DEV branch (1.5.1) onto the nodeMCU, the node_hcrs04.lua script is unable to get any measurements from the sensor, i.e., measure the delay between trigger and echo signal ("-1" is returned which means, the echo signal hasn't been detected). Back on firmware 1.4.0, everything works again. Both firmwares were build via nodemcu-build.com with the same modules selected.
Is there a change between the MASTER an DEV branch in the GPIO module (or another one) which could render the node_hcrs04.lua script dis-functional? It basically only uses gpio.trig and gpio.write.
Thanks for any hints!