This project simulates a cart–pole system (inverted pendulum) controlled by a PID feedback loop. The goal is to keep the pendulum balanced in an upright position (θ = 0°) by applying a horizontal ...