I bought a Ping Ultrasonic Range Finder. It has four pins that you connect to the Arduino. I see in Internet that they have three pins. What does represent each pin and where to connect it to? I have an Arduino Uno Starter Kit.
You have 4 pins.
- Vcc: +5V supply voltage (it stands for Collector Voltage)
- GND: Ground.
- Trig: Causes an ultrasound pulse to be generated (it stands for Trigger)
- Echo: Tells you when an echo has been received.
You can see how to wire and use it here: http://www.instructables.com/id/Easy-ultrasonic-4-pin-sensor-monitoring-hc-sr04/