Push button control over Stepper motor TB6600

Hi,

Which do you want;

  1. The stepper to stop when you release the button?
    OR
  2. The stepper to continue to the required position after you have released the button?
    OR
  3. The stepper to move to the required position and stop even if the button is still pressed?
    OR
  4. Cases 2) and 3)?

What are you using to drive the stepper motor?
Your code at the moment will make the stepper rotate continuously.

Have you tried it on your hardware?

Thanks... Tom... :grinning: :+1: :coffee: :australia: