Hi All,
I'm designing a motor controller for a DC brush motor. I decided on the DRV8801 H-Bridge and the MCU is CC25xx. The hardware design is straight-forward. What I'm looking for is info on how to design the code for a PID loop controller using the PWM output of the CC25xx . The motor has a RPM sensor input on another PWM/ timer of the MCU. The RPM is the commanded input to the motor. I understand the approach but could use some help on the code.
Any suggestions and hints are helpful.
Thanks,
spincraft