-->
Page 1 of 1

GPIO (HC-SR04) working with 1.4.0 but not 1.5.1

PostPosted: Sun Apr 03, 2016 1:32 pm
by lepido
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...

Re: GPIO (HC-SR04) working with 1.4.0 but not 1.5.1

PostPosted: Sun Apr 03, 2016 11:51 pm
by lepido
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.