Pedal and throttle tuning
A fast, calm throttle and a comfortable pedal response.
With an electronic throttle you tune two different things: the controller (whether the flap does what it should) and the pedal map (what it should do when you press the pedal). Always in that order.
DBW is a safety part. Tune with the engine stopped, and before driving test what happens when the pedal, sensor and motor are disconnected.
1. Calibration
- Pedal: both tracks read 0 % released and 100 % floored.
- Throttle: both tracks and the H-bridge assigned.
- Learn the throttle and save with the engine stopped, without touching the pedal.
- Check that both tracks agree over the whole range.
2. Position controller
The program's starting point: P 4, I 0.8, D 0.05, integral limit 35 %, rest position 7 %, PWM 800 Hz.
- Step the pedal (e.g. 10 → 40 %) and watch target and position in the logger.
- Lazy response – raise P a little at a time.
- Overshoot and shaking – lower P or add a touch of D.
- Steady error – adjust I.
- Repeat at small openings, especially around the rest position.
3. Pedal map
ETB target defines the throttle opening for pedal position and rpm.

| You want | Set |
|---|---|
| gentle pull-away | smaller openings at small pedal and low rpm |
| a sharper throttle | larger openings at small pedal |
| full power | 100 % pedal = fully open at all rpm |
| predictability | the opening always rises with the pedal, without shelves and jumps |
Done when: the throttle follows the target without shaking, there are no faults after several minutes and the car pulls away and accelerates predictably.