Chapter 19. a PID-controlled LineFollower program
Programming your robot to follow a line is an interesting challenge because there are so many possible solutions, ranging from quite simple to highly complex. You’ve seen a simple three-state controller that works well at slow speeds on a line with gentle curves, and a more complex proportional controller that allows the robot to go faster and make tighter turns. In this chapter, we improve the program further by implementing a full proportional-integral-derivative (PID) control algorithm. Besides adjusting the TriBot’s steering according to its current distance from the line (like our proportional controller), this program also calculates a derivative value, which detects whether the robot is ...
Get The Art of LEGO MINDSTORMS EV3 Programming (Full Color) 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.