Simulink

The Simulink model for the Tunneling Ball Device is the most detailed with respect to nonlinear dynamics. Nonlinear operations such as power supply saturation, controller sampling, quantization, PWM duty cycle delay, and encoder / interrupt latency delays are all incorporated. This model is the most useful for tuning PID parameters.

The controller is assumed to have a fixed sample rate.