Other Parts Discussed in Thread: DRV8704,
How to turn "holding torque" on and off? When I stop the motor, I can not force holding current. Is it possible in PWM mode only?
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.
Hello Wang Li, thank you for the response.
The chip does not response as you describe, and it does strange things like: when sending single step command via the SPI, it start the motor continuously, even when the SPI communication stopped.
I think that I should replace the chip and check again. It might be defective.
Benny
Benny,
BTW, what motor do you test? Stepper motor or brushed DC motor. If you work on a brushed DC motor, you can check the DRV8704.
"when sending single step command via the SPI, it start the motor continuously" What SPI command (register address and value) do you send to DRV8711?
Wang5577 said:Benny,
BTW, what motor do you test? Stepper motor or brushed DC motor. If you work on a brushed DC motor, you can check the DRV8704.
"when sending single step command via the SPI, it start the motor continuously" What SPI command (register address and value) do you send to DRV8711?
I am using stepper motor. SPI command: CTRL register (0x00) data (incl. address) = 0x0C015 (MSB first)
Benny
Benny,
C015H= 1100 0000 0001 1001 b
"when sending single step command via the SPI, it start the motor continuously"
So, after you enable the motor drive output. And the motor continuously runs. This is normal, right?
According to the datasheet, setting the RSTEP bit shoulde advance the motor 1 STEP, and the RASTEP bit cleared automatically - that means that the motor should increment 1 step and DO NOT run continuously.
Anyhow, I am replacing the chip right now, as I want to see if it is a chip problem. Will send an update after testing.
Thank you
Benny
Thank you for the support.
It took me time, but I found the reasons for the strsnge functionality:
1) I have to setup the SPI sump on falling edge and NOT rising edge, as written in the manual. SPI communication started working good with the falling edge sttings.
2) Internal PWM has poor performance. Consequently, I had to lower the supply voltage, as I could not get to the torque I need with high input voltage. I can do it only with external PWM mode.
Same problem while working with small microstep.
It's a pity that I can't control the PWM frequency, I assume that it will solve the problem.
At least I have something working :-) thanks again.