Projects / Ideas / PID line follower with encoders

PID line follower with encoders

AdvancedRoboticsIdeaReviewed
In short

How do you build a PID line follower with encoders?

A line follower that uses PID steering and wheel encoders to hold speed on curves. You need Arduino Uno R3, TCRT5000 IR reflective sensor module × 5, N20 gear motor with encoder × 2, TB6612FNG Motor Driver, Li-Po 2S 7.4 V 2200 mAh 25C (RC) and Breadboard 830 Tie Points.

Level
Advanced
Time
About 420 min
Parts
6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Tune a PID loop.

How to build it

  1. Calibrate each reflective sensor
  2. Compute a weighted line position
  3. Run a PID on steering
  4. Add speed control from encoders
  5. Tune P, I and D one at a time

Related projects

Common questions

What parts do I need for the PID line follower with encoders?

Arduino Uno R3, TCRT5000 IR reflective sensor module × 5, N20 gear motor with encoder × 2, TB6612FNG Motor Driver, Li-Po 2S 7.4 V 2200 mAh 25C (RC) and Breadboard 830 Tie Points.

How long does the PID line follower with encoders take to build?

About 420 minutes for a advanced maker.