IN THIS LESSON

Main objective:

Understand how robots use sensor feedback to respond to their environment, and learn the basics of proportional (P) control through a practical obstacle-detection and stopping exercise.

Topics covered:

  • Obstacle detection sensors: Overview of sensors used to detect obstacles.

  • Obstacle detection and stopping: Programming the robot to detect an obstacle and stop.

  • Adaptive Cruise Control (ACC): Understanding the principle behind maintaining a safe distance from the vehicle ahead.

  • Feedback: Understanding how sensor information can be used to adjust a robot's behaviour.

  • Proportional control (P-controller): Learning the basic principles of P control and implementing a simple P controller.

  • Controller tuning: Exploring how to select a suitable proportional parameter.

Outcome:

The robot is able to hold distance from a moving obstacle.

Voluntary Homework:

Fine-tune the robot's speed values to improve its line-following behaviour.