HC-05 Telemetry Interface
PID STEERING LAB
1. What is it?
Proportional-Integral-Derivative (PID) algorithm calculates the steering corrections.
2. Why do we need it?
The robot sways as it tracks the line. If it steers too slowly, it runs off the track; if it steers too quickly, it shakes violently and crashes. Proportional (Kp) snaps the bot back to the line, while Derivative (Kd) acts as a damper to smooth out the oscillations.
3. The Challenge
Adjust the Kp, Kd, and Speed sliders to establish a stable trajectory. Keep the path deviation low to complete the 10-second stabilization lock sequence.
Module Specifications
| Module ID | HC-05 Core Bluetooth V2 |
| Baud Rate | 9600 bps (standard configuration) |
| PID Sample rate | 120 Hz (8.3ms update loop) |
| Bluetooth RX/TX | Pins D3 / D4 (SoftwareSerial) |
PID Line Follower Simulator
Level Challenge 4
LOCK TIME: 10.0s
Kp (Proportional Gain) - Steering snap
0.030
Kd (Derivative Gain) - Course damping
1.60
Base speed (PWM) - Inertia momentum
100
Control loop stability
INIT
Tune Kp and Kd. If the robot sways too far off the center line, the stabilization lock timer will reset.