โฑ 18:25
๐ 7,260
๐ฃ๏ธ Wally Line-Follower โ PID for Precise Tracking
โถ๏ธ Video Playback Area
PID Line-Follow Algorithm
๐ฏ Line-Follow Principle
- Black tape โ absorbs IR โ low reflectance
- White floor โ reflects IR โ high reflectance
- Judge deviation direction by the left/right sensor reading difference
๐งฎ PID Three Terms
| Term | Meaning | Role |
|---|---|---|
| P Proportional | Current error ร Kp | Fast error response |
| I Integral | Historical error sum ร Ki | Eliminate steady-state error |
| D Derivative | Error change rate ร Kd | Suppress overshoot & oscillation |
๐ง Parameter Tuning
- Tune P first: increase until the robot oscillates on the line
- Add D: reduce oscillation amplitude for smooth motion
- Add I last: eliminate fixed deviation
- The three parameters interact โ test repeatedly
Share to:
โ Back to News