Try GOLD - Free
Soft Power Switch Circuit for Battery-Powered Devices
Circuit Cellar
|April 2025
Alternative to Toggle Switch Uses an ATtiny10 MCU

The battery in a battery-powered CPU system typically is activated with a toggle switch. In this article, Michael explains how he overcame the limitations of toggle switches by creating a solution that allows a device to be turned on and off using a simple, momentary push button. Additionally, the CPU system, itself, can control the power, making the solution compact, efficient, and inexpensive to construct.
I frequently design devices such as laser tag guns and lightsabers, which typically include a CPU board with a USB socket, a lithium-ion battery, and a built-in charger. This setup allows the CPU system to be updated via the USB interface, but also serves as the charging connection for the battery. However, using a toggle switch to control the battery introduces some limitations:
- The CPU system cannot turn off the power when the battery is running low.
- The CPU system cannot automatically turn on the battery during charging.
- The toggle switch occupies space and cannot be repurposed by the system CPU.
For years, I searched for a solution to address these issues. While some commercial products include this functionality, I was unable to find a readily available, comprehensive solution. Partial solutions exist for individual problems, but none resolved all the challenges.
In this article, I describe the custom solution I developed. It effectively addresses the issues mentioned above, while remaining small, efficient, and inexpensive to implement.

This story is from the April 2025 edition of Circuit Cellar.
Subscribe to Magzter GOLD to access thousands of curated premium stories, and 9,500+ magazines and newspapers.
Already a subscriber? Sign In
MORE STORIES FROM Circuit Cellar

Circuit Cellar
Bourns Announces New Micro Encoders Offering High Reliability in a Compact Design
Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced its PEC04 Series 4mm Incremental Micro Encoder, its PEC05 Series 5mm Incremental Micro Encoder and its Model PEC06, a 6mm Incremental Micro Encoder. Bourns new micro encoders provide position and speed information essential for control functions in a broad variety of electronic applications.
1 min
September 2025

Circuit Cellar
Harwin Brings Through-Hole Retention to Industrial Kontrol Range of Connectors
Harwin has extended its Kontrol lineup of connectors for industrial and embedded applications, adding through-hole retention to further enhance resilience and board-level reliability in harsh operational environments. Harwin has added 72 new products to the industrial connector family, extending the range by 48%.
1 min
September 2025

Circuit Cellar
Renesas Introduces 64-bit RZ/G3E MPU for High-Performance HMI Systems Requiring AI Acceleration and Edge Computing
Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, announced the launch of its new 64-bit RZ/G3E microprocessor (MPU), a general-purpose device optimized for high-performance Human Machine Interface (HMI) applications.
1 mins
September 2025

Circuit Cellar
Build a Follower Counter for Social Media
See Real-Time Metrics Using an Arduino Yún
20 mins
September 2025

Circuit Cellar
Nordic Semiconductor Announces Highly Integrated nPM3104 Power Management IC With Support For Small-Size Battery Products
Nordic Semiconductor announced the new nPM1304 Power Management IC (PMIC). Building on the success formula of the well-established nPM1300, the nPM1304 offers the ideal solution for space-constrained applications that require small batteries.
2 mins
September 2025

Circuit Cellar
Chaos on Your Desktop
Build a Color-Pulsing Light Sphere Using a PIC or Raspberry Pi Pico MCU
9 mins
September 2025

Circuit Cellar
NXP’s New Battery Cell Control IC Family Advances New Energy Solutions
NXP Semiconductors announced its new 18-channel Li-ion battery cell controller, the BMx7318/7518 IC family, designed for electric vehicle (EV) high-voltage battery management systems (HVBMS), industrial energy storage systems (ESS) and 48V battery management systems.
1 mins
September 2025

Circuit Cellar
Autonomous Mobile Robots
Robots Moving to Their Own Beat
12 mins
September 2025

Circuit Cellar
The DVM on Your Wrist
A Wireless Link Between A DVM and a Smart Watch
18 mins
September 2025

Circuit Cellar
Control Your Local IoT Network from the Cloud
Secrets of “Cloud Relaying” Revealed
5 mins
September 2025
Listen
Translate
Change font size