Skip to content

After any move the stepper remains in a high current state #19

@drp0

Description

@drp0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions