… From Simulation to Real Hardware Never drive real signal lamps from the Pi: street signals run from mains power; they need relays or solid-state switches and a proper controller. Real controllers check themselves: a road controller watches the lamp currents …
… drawn from the logged positions. Disturb the ball with a second servo or a fan and compare the PD with a PID. Tune by a relay test instead of the model, and compare the two sets of gains. From Simulation to Real Hardware Calibrate the sensor: the GP2Y0A21's …
… who walk away after a CLOSEr without being screened. Drive a turnstile or a door lock instead of the servo arm through a relay. From Simulation to Real Hardware Give the servo its own supply: an MG996R draws up to 2.5 A when it stalls, far more than the Pi's 5 …