My stepper draws 200mA when moving and 370mA when the move has completed.
It would be useful to have an idle call which sets the stepper control lines to zero:
This works:
void idle(); // drp CheapStepper.h
void CheapStepper::idle(){
seq(8); // drp CheapStepper.cpp
}
This utilises the default case in switch(seqNum) of void CheapStepper::seq (int seqNum)
If the function is called on the completion of a move, the current drops to 30mA !
The next move appears un-affected.
stepper.run();
if (stepper.getStepsLeft() == 0){
// if the current move is done...
stepper.idle(); // low current
David
My stepper draws 200mA when moving and 370mA when the move has completed.
It would be useful to have an idle call which sets the stepper control lines to zero:
This works:
void idle(); // drp CheapStepper.h
This utilises the default case in switch(seqNum) of void CheapStepper::seq (int seqNum)
If the function is called on the completion of a move, the current drops to 30mA !
The next move appears un-affected.
David