I configured ESPEasy with HC-SR04 sensor.
I configured it using this https://www.letscontrolit.com/wiki/index.php/HC-SR04. I used the option with two resistors. The only difference is that I have NodeMCU and it does not have pin with 5V, and I had to connect VCC pin on HC-SR04 to 3.3V pin on NodeMCU.
The problem that I have is that the output is always 0.10 and does not change. Is it possible that the problem is 3.3V instead of the 5V? Do I have to buy 5V power supply for the HC-SR04 sensor? Or is there anything else that I should check?
Thank you.
Distance with HC-SR04
Moderators: grovkillen, Stuntteam, TD-er
-
- Core team member
- Posts: 9905
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: Distance with HC-SR04
The wiki page you linked does state something about the voltage:
Or are there newer/other versions I don't know yet?
Also take into account you really need something to lower the 5V signal from the sensor.
But the NodeMCU does have 5V, when powered via USB?The HC-SR04 must be run on 5V. Running it with 3,3V will show very weak results or nothing at all.
Or are there newer/other versions I don't know yet?
Also take into account you really need something to lower the 5V signal from the sensor.
-
- Normal user
- Posts: 44
- Joined: 12 Aug 2017, 03:44
Re: Distance with HC-SR04
As far as I can see, it does not have 5v pin:

I guess, I have try to get 5V power supply.
Thank you.

I guess, I have try to get 5V power supply.
Thank you.
-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: Distance with HC-SR04
Vin is 5V
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- Normal user
- Posts: 44
- Joined: 12 Aug 2017, 03:44
Re: Distance with HC-SR04
It worked, thank you for your help.
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 14 guests