Other Parts Discussed in Thread: DRV8824, DRV8881EEVM
I am using DRV8842 to control movement in a stepper motor. The step angle in my stepper motor is 1.8 degrees. How do I use microstepping to rotate the stepper motor by 1 step angle 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.
I am using DRV8842 to control movement in a stepper motor. The step angle in my stepper motor is 1.8 degrees. How do I use microstepping to rotate the stepper motor by 1 step angle only?
Hello Rick,
Thank you for the suggestion. I had a query though. Its mentioned in Table 2 of DRV8824 datasheet that, during a 1/32 step mode, changing from 2 to 3, gives an increment from 3 to 6 in electric angle. So how I obtain an increment from say (3 to 4) or (3 to 5) ?
Thank you,
Regards,
Hi th133,
Each electrical angle corresponding to a percentage of current based on a sine function. So electrical angle 3 = 5% of full current, and electrical angle 6 = 10% of full current. If you want to change from 3 to 4, build your sine table to adjust the current to the desired percentage.
Hi th133,
To achieve current levels not available using I4:0, set the I4:0 to 11111 (1000%) and change the AVREF and BVREF input voltage.
This can be controlled by a DAC or a PWM.
Hi th133,
The DRV8842 has as many levels of current regulation as you desire.
This level of microstepping can be accomplished by setting the I4:0 pins to 11111 (100%) and changing the ref input. Typically a DAC is used to control the reference voltage.
An example of this type of code can be found in the DRV8881EEVM.