HC-SR04 distance sensor in Mega firmwares: possible bug

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
bartieman
New user
Posts: 1
Joined: 21 Jul 2018, 18:37

HC-SR04 distance sensor in Mega firmwares: possible bug

#1 Post by bartieman » 21 Jul 2018, 18:55

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

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

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

#2 Post by Shardan » 21 Jul 2018, 23:53

Regards
Shardan

jayrisko
New user
Posts: 1
Joined: 24 Jul 2018, 03:08
Location: Folsom, California

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

#3 Post by jayrisko » 24 Jul 2018, 23:41

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
Thanks, and regards,

-Jay

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests