Other Parts Discussed in Thread: , DRV8846
My customer asked the following question:
Can the driver chip support switching back and forth between full step mode and quarter step mode in one running sequence?
For example, set USM to 10 and send clock to step input pin for the first 3 steps in quarter step mode, and change USM to 00 for the next 100 steps in full step mode; and then change USM back to 10 for the last 2 steps in quarter step mode.
The reason is to use quarter step mode to achieve resolution and full step to run fast. Any special setting is needed in order to do so?
Is there any concern of loss step induced between mode switching? The absolute accuracy is crucial to our application.
I explained to them that they could change the step size at any time as I saw no restriction in the data sheet. I asked them to set up a run profile to verify this. I received the following from the customer:
I set up an experiment to play with the DRV8811EVM board with our stepper motor AM1020V (made by micromo). I directed a fine laser beam to a mirror glued to a disk mounted to the motor shaft and looked at the reflection on the wall to exam the step by step motor movement.
When used "pulse step" to run the motor in signal step mode, I found that motor seemed to rotate consistently in full step mode. However, it was quite obvious that motor skipped every two steps in quarter step mode. The symptom is that when clicked on "pulse step" button motor responded to two clicks and stayed un-move for the next two clicks, and then responded to the next two clicks, and then stayed un-move for the next two clicks, it went on and on like this very consistently.
The jumper configuration stayed the same as default; the PPS (clock rate?) was set to about 250HZ; the Accel Rate was set to 100 out of 255, the Decay control was set to Mixed mode, time base was set to 10, 100... (the above settings were changed but symptom seemed to be the same).
They sent further comments and a pdf that I have attached:
We address all positions in terms of quarter steps from home.
A typical move (excluding backlash compensation) consists of three phases, depending on the number of quarter steps to move.
Phase 1: After a 4ms pause, while direction and quarter step modes are selected, 0-3 quarter steps will taken (as needed) at 250Hz rate, to bring motor to a full step position (a multiple of 4 quarter steps)
Phase 2: Following another 4ms pause, during which time full step mode is selected, 0-n full steps (as appropriate), are taken at 250Hz rate.
Phase 3: Following another 4ms pause, during which time quart step mode is reselected, 0-3 quarter steps (as appropriate), are taken at 250Hz rate, to bring motor to final position.
Optimizations:
1. The Phase 2 and 3 pauses will only occur if the number of steps taken is > 0.
2. If the entire move does not require any full steps, the phase 1 and 3 quarter step counts will be combined into a signal move that will occur in phase 1.
We have found that 1 or 2 of the Phase 3 quarter steps are usually skipped by both our existing Allegro and TI DRV8811 driver chips.
The attached would be the test report of the stepper motor performance with DRV8811EVM board. It describes why the stepper motor went 2 steps and skipped 2 steps in quarter step mode.
This pattern does not seem to be correct in looking at the Microstepping Indexer in Table 2. Do you know what might be happening from looking at the information that the customer sent.
Thanks for your help with this!
Richard Elmquist