Introduction: Obstacle Avoiding Robot Using Arduino
Hey guys in this instructable we will see how to make an autonomous obstacle avoiding Robot.This robot is designed and programmed in such a way that it avoids collision.The robot basically moves in a forward direction and whenever it detects a object/obstacle in its path it takes an diversion and avoids the collision.
Step 1: Components Needed:
- Arduino UNOHC
- SR-04(Ultrasonic sensor)
- ultrasonic sensor clamp(optional)
- L293D motor driver
- metal chassis
- 2x BO motors
- 1x caster whee
- l2x wheels
- 2x 9v battery
- 2x dc battery connectors
- connecting wires
Step 2: Working Principle
The obstacle avoidance robotic vehicle uses ultrasonic sensors for its movements. A UNO of Arduino family is used to achieve the desired operation. The motors are connected through motor driver IC to Arduino uno. The ultrasonic sensor is attached in front of the robot.Whenever the robot is going on the desired path the ultrasonic sensor transmits the ultrasonic waves continuously from its sensor head. Whenever an obstacle comes ahead of it the ultrasonic waves are reflected back from an object and that information is passed to the arduino. The arduino controls the motors based on ultrasonic signals.
Step 3: LETS MAKE THE ROBOT:
Fix the wheels on the metal chassis and mount the Dc BO motors on the back wheels and fix a caster wheel in the front.
connect the L293D motor driver with the arduino and dc motors.
3,6(l293d) to left motor(output)
11,14(l293d) to right motor(output)
2,7,10,15(l293d) to pins 2,3,4,5 of Arduino(inputs)
NOTE: you can use an l293d ic or an readymade module,each module differs so check L293D IC pin diagram to make correct connections.
Step 4: CONNETING WITH PING SENSOR:
connect the ultra sonic sensor with your arduino,
pin 8 of arduino to echo pin
pin 9 of arduino to trigger pin
Step 5: UPLOADING PROGRAM:
1 Person Made This Project!
- turbofrog made it!