PWM input control loop frequency

Hello,

I’m working on a project to control the motor by sending a command to Odrive via PWM. According to the pulse width mapping on the website, the fastest control loop I can do for a 1-2ms mapping would be 500Hz, I’m wondering if there is a way that I can speed up the control loop to 5kHz, i.e. configure the pulse width remap to 0.1 - 0.2ms.

Hi! I would strongly recommend against doing this. Sounds like you want to control over CAN if possible – this should handle 5kHz no problem at 1 Mbit/s data rate.

May I ask what requirements you have that lead you to need to use (A) PWM and (B) 5kHz control rates?