connecting new ping to arduino.

Hi, I got ping from amazon but it has 4 leads and I do not know how to connect it to the arduino. The leads say vcc, trig, echo, and gnd. Will I be able to use the examples with ping on my arduino?

innersky5 years ago
Try this;

or just search google for: hc-sr04 arduino connect
you'll find numerous examples.
teckel5 years ago
Simple, use the best, fastest, smallest, and most feature laden ultrasonic library out there, NewPing

Get it here: