O'Reilly logo

Learning LEGO MINDSTORMS EV3 by Gary Garber

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required