If you need some kind of simple “eye” for a robotics project this ultrasonic sensor could do well for finding and avoiding obstacles!
Use an HC-SR04 ultrasonic sensor to give your robot the perception of distance.
Application:
For collision avoidance projects, obstacle sensing Arduino tracked robot projects, autonomous vehicles and boats, and physics lab classes
Features:
-Ultrasound modules/Ranging sensor works, both with Leonardo and mega.Great sensor for simple Arduino-based distance measurements, measuring distances Up to 30′ and down to 3 inches
– A lot of fun using these ultrasonic detectors for sonar on your Arduino-powered obstacle avoidance robot.
–Objects as thin as cellophane or aluminum foil can be detected
How to Use: There are 4 pins out of the module: VCC, Trig, Echo, GND. (Make the following connections from the HC-SR04 to the Arduino, respectively: VCC to 5V; GND to GND; Trig to any digital output; Echo to any digital input.)
The all process is: pull the Trig pin to high level for more than a 10us impulse, and the module start ranging; finish ranging, If you find an object in front, Echo pin will be high level, and based on the different distances, it will take the different duration of high level. So we can calculate the distance easily
Distance = ((Duration of high level)*(Sonic :340m/s))/2
Specification
1. Working Voltage: 5V(DC)
2. Static current: Less than 2mA.
3 . Output signal: Electric frequency signal, high level 5V, low level 0V4. Sensor angle: Not more than 15 degrees
5. Detection distance: 2cm-450cm
6. High precision: Up to 0.3cm
7. Input trigger signal: 10us TTL impulse
8 . Echo signal: output TTL PWL signal
9.Accuracy:+/-0.1cm(vary depending on the clock resolution real-time latency of the OS you use.)
Mode of connection:
1. VCC
2.trig(T)
3.echo(R)
4. GND


MAECENAS IACULIS
Vestibulum curae torquent diam diam commodo parturient penatibus nunc dui adipiscing convallis bulum parturient suspendisse parturient a.Parturient in parturient scelerisque nibh lectus quam a natoque adipiscing a vestibulum hendrerit et pharetra fames nunc natoque dui.
ADIPISCING CONVALLIS BULUM
- Vestibulum penatibus nunc dui adipiscing convallis bulum parturient suspendisse.
- Abitur parturient praesent lectus quam a natoque adipiscing a vestibulum hendre.
- Diam parturient dictumst parturient scelerisque nibh lectus.
Scelerisque adipiscing bibendum sem vestibulum et in a a a purus lectus faucibus lobortis tincidunt purus lectus nisl class eros.Condimentum a et ullamcorper dictumst mus et tristique elementum nam inceptos hac parturient scelerisque vestibulum amet elit ut volutpat.