I have attached HC-SR04P module to ESP32 development board with a 22awg wire of about 8 meters.
I'm surprised that I don't get any readings from the device using NewPing library, is the distance too great?
Most definitely
any suggestions to make it work?
Put anArduino pro mini next to the HC-SR04 and send the data back to the ESP using serial
yes, sure but would have been nice not to deal with another micro-controller and an additional point of failure
You have already introduced a major point of failure, by expecting digital communications to work over 8 m of wire. Few do, without using advanced techniques.
Reimagine the project.
there are ultrasonic sensors which have a serial output
if there are still communication problems with TTL use RS232
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.