How to Make Arduino Based Edge Avoiding Robot

by shubhamsuresh in Circuits > Arduino

4009 Views, 2 Favorites, 0 Comments

How to Make Arduino Based Edge Avoiding Robot

How to Make Arduino Based Edge Avoiding Robot using IR Sensor

Let's make a fully autonomous robot using Arduino and IR sensors. It explore the surface of table without falling. Watch video for more.

Components Used

snapshot3.png
snapshot4.png
snapshot5.png
snapshot6.png
snapshot7.png
snapshot8.png
snapshot9.png

snapshot10.png
snapshot11.png
snapshot12.png
snapshot13.png
snapshot14.png
snapshot16.png
snapshot17.png
snapshot18.png
snapshot19.png
snapshot20.png
snapshot23.png
snapshot21.png
snapshot22.png
snapshot24.png
snapshot27.png
snapshot30.png
BASE AND TOP DESIGN.png

Take a piece of cardboard of dimension 135mm x 120mm. mark all dimensions as per given layout and cut it. Stick all cut part using hot glue. Stick both motors on their place. Fit wheels to both motors. Place IR sensors in front side of the robot body. Also fit two LED’s in front side. This LED’s are just for improving the look of robot you can skip this led if not available. Stick caster wheel in back side on bottom of robot body. Now place battery inside it. Keep max weight in back side of robot. Close the upper side of body by sticking upper pre cut cardboard piece.

0001 sav(2).jpg
snapshot31.png
snapshot32.png
snapshot33.png
snapshot34.png
snapshot35.png
snapshot36.png
snapshot37.png
snapshot38.png
snapshot39.png

Now take PCB some male female connectors and H-Bridge L293D motor driver IC. Solder all components as per given circuit diagram. Connect both motor to motor driver Board which we recently soldered. Connect both sensors to the board. Now all connections are done. Let’s upload the code, you can download code and circuit diagram from the link click here

snapshot40.png

Connect Arduino board to your pc. Select COM port and board type from tool menu. And click upload.

After uploading program to Arduino, we all done, now let’s test it. Connect battery to Arduino. Here I’m using 2 lithium ion cell connected in series and wrap them together by using insulation tape, so the voltage of this battery is 7.4 volt you can use 2s 7.4Volt lipo battery. Use supply voltage in between 6 to 9 volt. If you used higher voltage battery the speed of robot is higher and when it comes to edge it instantly apply break i.e. it revers it’s wheel rotation since it moving in higher speed the chance of falling it increases due to it’s forward inertia.

Hope you find this useful. if yes, like it, share it, comment your doubt. For more such projects, follow me! Support my channel on YouTube.

Thank you!