Page 1 of 1

HC-SR04 distance sensor in Mega firmwares: possible bug

Posted: 21 Jul 2018, 18:55
by bartieman
Hi,

I would like to share my experience:
I tried to make an HC-SR04 ultrasonic distance sensor work on a NodeMCU V3 in both firmwares "ESPEasy_mega-20180625" and "ESPEasy_mega-20180720" but I couldn't get it to work.

My wiring is done as shown on the Wiki: trigger to GPIO-13 and echo to GPIO-12 with a voltage divider using a 1K2 and 2K2 resistor.
VCC of the sensor is connected to 5V.

This setup didn't work in both firmwares.
I downgraded the firmware to R120, still with the same wiring, and it worked!

Best regards,
Bart

Re: HC-SR04 distance sensor in Mega firmwares: possible bug

Posted: 21 Jul 2018, 23:53
by Shardan

Re: HC-SR04 distance sensor in Mega firmwares: possible bug

Posted: 24 Jul 2018, 23:41
by jayrisko
I have the same issue - HC-SR04 has not worked in mega release since 20180606...

Edit: Have been trying subsequent mega releases since then, but the last version that worked was 20180606. Also, the 20180611 release has this note, which appears to have broken the ultrasonic distance sensors: " [#1484] Multiple instances of ultrasonic sensors"

-Jay