Comments on: ESP8266 NodeMCU with HC-SR04 Ultrasonic Sensor with Arduino IDE https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 20 Oct 2023 09:20:06 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Ferdinando https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-866754 Fri, 20 Oct 2023 09:20:06 +0000 https://randomnerdtutorials.com/?p=104563#comment-866754 In reply to Ferdinando.

Sorry, I use JSN-HC04.
I forgot to mention this at the beginning of the post.

]]>
By: Ferdinando https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-866753 Fri, 20 Oct 2023 09:18:02 +0000 https://randomnerdtutorials.com/?p=104563#comment-866753 Thank for this tutorial.
This device is like the HC-SR04, but it is waterproof. I noticed that extending the trigger pulse to 15uS is more precise and stable. I also ran the test on the hc-sr04, I must say that it works better.
Bye!

]]>
By: M. Refaie https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-825715 Fri, 17 Mar 2023 20:12:21 +0000 https://randomnerdtutorials.com/?p=104563#comment-825715 Thanks for this tutorial.
after many trials, it didn’t work until I connect the VCC of the ultrasonic sensor to the VU pin, not the Vin pin, without doing that the HC-SR04 always showed the value of 0

]]>
By: alex v https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-804459 Wed, 21 Dec 2022 00:16:56 +0000 https://randomnerdtutorials.com/?p=104563#comment-804459 can i replace with JSN-SR04T?

]]>
By: Luna https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-795577 Wed, 02 Nov 2022 20:42:48 +0000 https://randomnerdtutorials.com/?p=104563#comment-795577 What’s the power supply voltage to drive this whole circuit? Would it be possible to use 4 sonars on one Arduino Uno and using only one ESP8266 for wifi data transmission?

]]>
By: Mohd Shahid https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-672750 Fri, 24 Sep 2021 12:48:39 +0000 https://randomnerdtutorials.com/?p=104563#comment-672750 Hello,
I am doing this project I have some problem with programming please reply me.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-653105 Wed, 28 Jul 2021 09:44:56 +0000 https://randomnerdtutorials.com/?p=104563#comment-653105 In reply to John.

Thanks for sharing.
Other readers have also suggested using a voltage divider with two resistors.
Regards,
Sara

]]>
By: John https://randomnerdtutorials.com/esp8266-nodemcu-hc-sr04-ultrasonic-arduino/#comment-652574 Tue, 27 Jul 2021 17:21:06 +0000 https://randomnerdtutorials.com/?p=104563#comment-652574 While I’ve seen several iterations of folks using 5V to power the HC SR04 and drive the input to the ESP (xx) without conditioning, I am reluctant to do so. Further I have tried operating the sensor at the 3.3V level as well as others have, but find the readings to be somewhat “random”, (no pun intended Rui 🙂 ) . It seems adding a logic level converter would be the answer, but those usually come in a x4 module. If space and current are not issues, no problem there. If you are trying to use battery power and wish the batteries to last a bit longer eliminating as many active components as posible would be paramount. There is a modification of the sensor posted on instructables, that basically places a voltage divider on the sensors using 2 resistors. If you’re not good at soldering, You may want to look into the US 100 sensor offered by several vendors. I might also add that some of the newer HC SR-04 sensors may operate better at 3.3v than my older ones.

]]>