Tuesday, March 29, 2016

Use Of Ultra Sonic Range Finder

I used the Ultra Sonic Range Finder to help the robot detect the obstacle.
I connected the sensor to my Rpi using the bread board, 2 resistors (1k) and some male to female jumper wires. I also wrote the below code that detects the obstacle and outputs the distance from the sensor to the obstacle.

Circuit design from fritzing:

The below is the circuit design i used:


The above code gives the following output:

No comments:

Post a Comment