Simple simulation with PID regulation