Introduction: How to Make Arduino Based Edge Avoiding Robot
Let's make a fully autonomous robot using Arduino and IR sensors. It explore the surface of table without falling. Watch video for more.
Step 1: Components Used
Piece of Cardboard
Flexible wire https://www.amazon.in/gp/product/B07N63R54G/ref=as...
330R resistor https://www.amazon.in/gp/product/B071DJ6M3P/ref=as...
Connecters male, female https://www.amazon.in/gp/product/B01N3666RH/ref=as...
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.
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
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.