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


Log in to reply
 

Suggested Topics

  • 3
  • 24
  • 1
  • 2
  • 10
  • 2

18
Online

11.2k
Users

11.1k
Topics

112.5k
Posts