Close

Implementing power saving

A project log for Toddler's Cyberdeck

I'm built a cyberdeck for my son. He was 2 when I built it. He's still using it today.

joshJosh 08/19/2024 at 00:030 Comments

One of the issues with the v0.1 code was that the LEDs never shut off. Even thought the 18650s are pretty high capacity, they would die in a few days. The power supply will turn off if the power draw is below a threshold for a time delay, so I'm going to take advantage of this and the fact that I don't have a means of directly controlling the power supply from the arduino by putting the arduino into a low power state after a period of inactivity.

I added 3 different features:

The auto dimming doesn't work very well, probably because I don't have a good dim level set, but maybe I'm also not handling it right in the code. I don't really care for the moment because it shuts off and I'll save time between charging. I'll leave the dimming issue for "future me".

Code V0.2 can be found on the simulator at WOKWI.com:

https://wokwi.com/projects/370628580593956865

Discussions