Hi I'm kind of confused about the features of SPI with DRV8308. Besides being able to write to the registers permanently, is it possible to control the speed of motor over SPI only? or do I also need the PWM and other inputs?
Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi I'm kind of confused about the features of SPI with DRV8308. Besides being able to write to the registers permanently, is it possible to control the speed of motor over SPI only? or do I also need the PWM and other inputs?
Thank you
Hi Edwin,
You can control using just SPI, if you use the Internal Register PWM Mode. You just write the duty cycle to SPEED, use ENPOL to toggle Enable, and use BRKPOL to toggle Brake. Note that this mode is open-loop motor control. Closed-loop speed control requires a reference clock given to the DRV8308.
If you want closed-loop speed control at one predetermined RPM, you can do that by using a fixed clock frequency (from an oscillator or MCU), and control ENPOL over SPI.
Best regards,
RE