Adaptable House wanted a ceiling gantry to carry people. Drive the trolley fast and the load underneath swings.
Anti-sway and tracking mode, demoed at the capstone expo.
Hardware
Pot amplifier — printed PCB, low-pass filtered.Maxon DC motors, 2000-count encoders.Gimbal mount, as designed.
Two-axis gimbal carries the pots that read cable angle.XY control wiring.
Model and control
An inverted pendulum on a driven trolley, linearized with a small-angle approximation. PI velocity loop, proportional sway feedback, K = 2√(l/g) for critical damping.
Free body diagram.Closed loop.
Simulation
Anti-sway on — 1.98° peak, settles clean.Off — 4.85° peak, still ringing at 10 s.
Tuning
Gradient descent on the PID gains against a squared-error loss.
33 epochs. Epoch 33 shipped.
Debugging
Encoders died after a few minutes of running. Noise on the lines was corrupting state transitions.