Line-Follower Robot (Webots & E-puck)
PID-controlled differential-drive line-following robot developed and tuned on the E-puck platform inside Webots simulation.
Closed-loop IR array PID line tracking in Webots E-puck simulation
- Webots
- E-puck
- Python / C
- PID Control
- IR Ground Sensors

Problem
Maintaining stable, high-speed path tracking around sharp track corners using noisy ground infrared reflectance sensors.
Approach
Implemented a closed-loop proportional-derivative-integral (PID) steering controller on the E-puck differential-drive platform in Webots, fusing left, center, and right ground sensor readings into smooth wheel velocity commands.
Results
Achieved consistent lap completion across curved and intersecting track segments without oscillation or line loss.
What Went Wrong
High proportional gain caused high-frequency hunting on straightaways before derivative damping was tuned.
What I Learned
Calibrating sensor thresholds against floor contrast and adding derivative damping significantly improves cornering stability.
Photo Gallery // 2 Assets
Links & Artifacts
Code / artifacts being prepared for release.