Robotics day 6-obstacle avoidance and obstacle following robot.
- sreeramchittayil
- Oct 16, 2022
- 1 min read
Over the past few days, I have been working on a robot that follows and avoids any object. This project uses IR sensors (3), a buzzer, and other essential components like the breadboard. The robot uses 3 variables, one for each sensor. This is so that the robot responds to the correct variable when there is an object in front of the sensor.
The conditions for obstacle-avoiding robots are:
right sensor: the robot moves to the left and this is the same but opposite to the left sensor.
The robot waits/stops for 1 second, then moves back, turns to the right, and continues.
The robot's LED light turns on and the buzzer goes off. The robot also stops once something is in front of the back sensor.
Those are the conditions for the obstacle-avoiding robot and they are the same for the following robot but with the opposite codes. This robot is very helpful in real life, making it a practical project.

Comments