I designed a battery-powered backuppower supply to preserve my wake-up light's settings
when the main power is disconnected.
The UPS provides backup power enough to keep the clock running for several hours,
preventing the need to reconfigure the clock and alarm after power interruptions.
So I don't have to set the time again every time the power goes out.
This is how it looks when it's all boxed up.
Technical Details
This is the bare PCB, designed with KiCad and manufactured by JLCPCB.
The circuit has three main components:
A battery
A boost converter that increases the 3V battery voltage to ~23V DC
A diode that automatically switches between main power and backup power
When main power (24V) is present, the diode blocks the lower backup voltage.
If main power fails, the diode allows the backup power to flow to the light.
This simple design ensures automatic power switching without complex circuitry.
graph TB
MainPower[Main Power 24V DC] --> Switch{Auto Switch}
subgraph Circuit["UPS Circuit"]
Batteries[Battery 3V DC] --> Boost[DC/DC Boost]
Boost --> |24V DC Backup| Switch
end
Switch --> |24V DC Continuous Power| Load[Wake-up Light]
%% Add styling to show mutually exclusive paths
linkStyle 2 stroke-width:2px,fill:none,stroke-dasharray:3
style MainPower fill:#f5f5f5,stroke:#333
style Load fill:#f5f5f5,stroke:#333
style Circuit fill:#f9f9f9,stroke:#666,stroke-dasharray: 5
Current circuit design with battery backup and boost converter
Future Improvements
I would like to add one of the following features:
Low battery indicator, so that I know when I need to change the batteries.
Or automatic battery charging when main power is restored, so that I don't need to change the batteries.