arduinostepper

Arduino Step Motor LED remains on


So I am using a Step Motor 28BYJ-48 and while turning the LEDS will light up. Now the problem that I'm having is, that the LED labeled D won't turn off. My ESP is going into deepsleep to save battery and to improve that, it would be really nice if the LED would be off too.

I am using the CheapStepper library. When I manually restart the ESP, all LED's are off.

Maybe I have to end the Cheapstepper class or something?

Thanks in advance!


Solution

  • The leds indicate the polarity of the stepper phases. The only way to turn off all leds is to turn off the motor.

    CheapStepper library provides a function for this. void CheapStepper::off()