REP-103M 177 177→ R4 · 20 Hz
1 · Kinematicsv_L = v − ω·W/2
v_R = v + ω·W/2

v_L 0.30 · v_R 0.30 m/s
2 · Saturations = max(|v_L|,|v_R|)/v_max
if s > 1: both ÷ s (same curve)

s ≤ 1 · unchanged
3 · Deadband → PWM|v| < 0.005 → 0, else sign·round(pwm_min
+ (255−pwm_min)·|v|/v_max), ≤ 255

L 177 · R 177
USB serial → UNO R4 → TB6612 (left pair / right pair) · re-sent at 20 HzM 177 177
Example values, not measured: W = 0.16 m · v_max = 0.5 m/s · pwm_min = 60
ICR pin and the arc the centre drivesSide-speed sliders, left (+y) and right (−y), ± v_max stopsThe Scout bridge (DD-SCOUT-BRIDGE §5) turns cmd_vel into one serial line. Kinematics splits (v, ω) into side speeds v_L = v − ω·W/2 and v_R = v + ω·W/2, so the ICR sits at v/ω on the axle line and a left turn (ω > 0) makes the right side faster. If a side exceeds v_max, both are divided by the same s, so the arc keeps its curvature (a faint tick shows the raw value). Each side then maps to PWM with a deadband and goes out as M <left> <right>, PWM −255…255, to the UNO R4 and the shield's TB6612. Safety: the line is re-sent at 20 Hz; no cmd_vel for 0.25 s → S; the R4 stops the motors if no M arrives for 300 ms. W, v_max and pwm_min are example values until Lab 1 measures them.