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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login