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?  http://www.amazon.com/gp/product/B004U8TOE6/ref=oh_details_o00_s00_i00

innersky4 years ago
Try this;

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

Get it here: http://code.google.com/p/arduino-new-ping/