The Wonders of Sleep (Pin)

I learned a huge lesson about power: When a stepper motor is powered up but not moving… it draws MORE power than when it’s moving! So, I had a circuit that could run for 4 hours on 4 AA batteries.

Then I discovered THE SLP (or sleep) PIN!

I could turn the SLP pin high just before I move my motor in my code and low just after it’s done moving. The result? my 4 AA batteries are only 15% depleted after the same 4 hrs! Hooray!

IMG_5602