Chapter 8. Advanced Programming and Control

In this chapter, we will explore advanced controlling algorithms to use for sensor-based navigation and tracking. We will cover:

  • Proportional distance control with the Ultrasonic Sensor
  • Proportional distance control with the Infrared (IR) Sensor
  • Line following with the Color Sensor
  • Two-level control with the Color Sensor
  • Proportional control with the Color Sensor
  • Proportional integral derivative control
  • Precise turning and course correction with the Gyro Sensor
  • Beacon tracking with the IR sensor
  • Triangulation with two IR beacons

Distance controller

In this section, we will program the robot to gradually come to a stop using a proportional algorithm. In Chapter 4, Sensors and Control, we wrote a program where the ...

Get Learning LEGO MINDSTORMS EV3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.