GPIO (HC-SR04) working with 1.4.0 but not 1.5.1
Posted: Sun Apr 03, 2016 1:32 pm
Hey,
I hope I am in the right sub-forum for my question.
I interfaced my nodeMCU v2 with the HC-SR04 ultrasonic distance measure sensor. As software I am using the well known lua script from Tamas Szabo (github link). In order to compensate for the 5V -> 3.3V level shift of the ECHO pin, I am using a 1k resistor.
Now to my question/issue: When I am running the nodeMCU with the firmware from the MASTER branch (1.4.0), everything works fine and I am getting the readings from the sensor as expected. As soon as I reflash the nodeMCU with the firmware from the DEV branch (1.5.1), I cannot obtain any valid measurement. Going back to 1.4.0 and everything is fine again...
(both firmwares were build via nodemcu-build.com with the only difference being MASTER vs. DEV branch - module selection is the same).
Did anything change between DEV and MASTER in regard to GPIO, timings, etc. which could break the hcsr04.lua script?
Thanks for any hints...
I hope I am in the right sub-forum for my question.
I interfaced my nodeMCU v2 with the HC-SR04 ultrasonic distance measure sensor. As software I am using the well known lua script from Tamas Szabo (github link). In order to compensate for the 5V -> 3.3V level shift of the ECHO pin, I am using a 1k resistor.
Now to my question/issue: When I am running the nodeMCU with the firmware from the MASTER branch (1.4.0), everything works fine and I am getting the readings from the sensor as expected. As soon as I reflash the nodeMCU with the firmware from the DEV branch (1.5.1), I cannot obtain any valid measurement. Going back to 1.4.0 and everything is fine again...
(both firmwares were build via nodemcu-build.com with the only difference being MASTER vs. DEV branch - module selection is the same).
Did anything change between DEV and MASTER in regard to GPIO, timings, etc. which could break the hcsr04.lua script?
Thanks for any hints...