Simple Motor Controller Speed Update Period

Any way to make the update period < 1ms? I’m using a PID loop and 1Khz update is OK but I’m wondering if speed can be updated every 500us instead if modified code is uploaded to the controller?

Thanks in advance!

Hello, Greg.

Do you have an acceleration or deceleration limit enabled? If not, then the speed will actually be updated as soon as the correct USB/serial command is received, so that’s the limiting factor in updating it. How are you sending commands to the controller? If it’s serial, what baud rate are you using?

–David

I won’t have acc/dec limits enabled and I will be at ~250kbaud. Hopefully that means the update will be faster! Good to know. I will test it out as soon as my 24vdc power supply comes in.