Hi
What's the best way to save energy at this electronic diagram (A4988 driver/CD4093)
on the datasheet, I can see two inputs able to do this : Enable and sleep
Enable Input (ENABLE). This input turns on or off all of the
FET outputs. When set to a logic high, the outputs are disabled.
When set to a logic low, the internal control enables the outputs
as required. The translator inputs STEP, DIR, and MSx, as well as
the internal sequencing logic, all remain active, independent of the
¯
ENABLE input state.
Sleep Mode SLEEP. To minimize power consumption
when the motor is not in use, this input disables much of the
internal circuitry including the output FETs, current regulator,
and charge pump. A logic low on the SLEEP pin puts the A4988
into Sleep mode. A logic high allows normal operation, as well as
start-up (at which time the A4988 drives the motor to the Home
microstep position). When emerging from Sleep mode, in order
to allow the charge pump to stabilize, provide a delay of 1 ms
before issuing a Step command.
SLEEP (or EnABLE) input will be linked to one of the arduino nano outputs in order to activate the stepper motor during few minutes, and stopping it during few hours, so I must save the battery energy
Arduino code make the connected output to HIGH during the few minutes of motor working, and LOW during the few hours (2h30) of non working
Thanks for all and sorry for my english