Distance Sensor and NewPing
-
Hi,
I am using the HC-SR04 distance sensor that is in the mysensor store along with NewPing version 1.5. My sketch works fine when the distance sensor is connected to a short wire (less than 50cm) to the arduino, but when I connect it to wire that is about 1 meter I get random distances being returned from the sensor when there is nothing in front of it. Does anyone know what the maximum distance of the wire connecting the distance sensor to the arduino can be? If this is noise can I add a cap between ground and vcc to filter it.
Thank you,
Mike
1 out of 1
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 18 days ago • bocalexandru 17 days ago -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 10 days ago -
NODs stop responding, but ping works.
Troubleshooting • 29 days ago • Marcin 29 days ago -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47