The PID controller is keeping the motor at ~60RPM regardless of load on the motor, by regulating the PWM pulse train. I'm putting pressure on the rubber tire (which unfortunately is not perfectly round so it's jumpy) to slow down the motor, forcing the PID controller to take action.
First view is looking at the motor/wheel/encoder itself.
Second view is looking at the oscilloscope showing the PWM outputs (wider pulse = more power).
Third view is looking at the debugging output coming from the microcontroller, showing the two channels and various control metrics.
Excellent.. I'm looking to do the same with a heating element instead of a motor. any more details or advice?
Thanks
digitalPimple 1 month ago