Current Lua downloadable firmware will be posted here

User avatar
By lepido
#44740 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...
User avatar
By lepido
#44762 Sorry for double posting. I reposted the question because I didn't know that posts are moderated before going online and thought something went wrong on my end. I reported this post and it will be deleted.

Please read/answer in the other thread: viewtopic.php?f=23&t=9341

Thanks.