Robotics day 7- edge avoiding robot
- sreeramchittayil
- Oct 22, 2022
- 1 min read
I expanded on the previous design on the 7th day of the course. This new design changed the direction of the sensors. The edge-avoiding robot uses both sensors to detect the surface underneath it. The conditions of the variables are:
1: forward = if both sensors are active, then the robot will move forward.
2:right or left: if the sensor is not detecting the surface, then the robot should wait for 1 second, then move to the opposite side (left). This is the same for the left sensor.
3: backwards = if the boht sensors are not detecting the surface, then the robot should stop, move back, turn 90 degrees to the right and continue forward.
These are very important parts of our daily vehicles and are a simple demonstration of their uses. This means the code will not allow this robot to fall from any height.

Comments