Robot car
A mobile robot drives itself: two motors turn the wheels, sensors 'see' its surroundings and Arduino makes the decisions. Robot vacuum cleaners work the same way.
Set direction with the motor driver and speed with PWM, and steer by running the wheels at different speeds. Follow a black line with two sensors and dodge obstacles with ultrasound.
In this lab
- motor driver
- line following
- obstacle avoidance
- robot vacuum and maze
What you learn
A mobile robot moves on its own: two motors turn the wheels, sensors "see" the surroundings and the Arduino decides. Robot vacuums, warehouse robots and driver-assist systems work this way. The aim is to control direction and speed through a motor driver and to program line following and obstacle avoidance.
Tasks
- Control direction through the motor driver
- Turn using the difference in wheel speeds
- Change speed with PWM
- Follow a line with two sensors
- Avoid obstacles with ultrasound
What you can build
- Robot vacuum — Turns away when it nears an obstacle.
- Warehouse robot — Follows a line and stops at a marked spot.
- Remote car — Remote keys drive forward, back, left and right.
- Light-seeking robot — Turns towards the light with two photoresistors.
- Maze solver — Follows the right-hand wall out of a maze.
- Robot football — A joystick-driven car pushes a ball into the goal.