Controls IOS Application

Published on April 10, 2025

The PID Controls Simulator is a personal project created to experiment with Apple's Swift language, PID control implementation, and functional UI design.

The iOS application features a simulator with a desired setpoint of 50 along with six critical variables: Kp, Ki, Kd, Current Value, Signal, and Noise. The current value is graphically plotted on a custom bitmap that automatically scales without going out of bounds.

The control signal is computed with:

  • Proportional: Kp * current error
  • Integral: Ki * cumulative error
  • Derivative: Kd * (difference in error over time)

The app also features noise and nudge controls to simulate disturbances and adjust the value in real time.

Home