Summary
Highlights
The video introduces a simple yet effective auto-off power circuit, which, despite appearing complex, is straightforward. This circuit powers the Space Drop soldering kit, where a single button serves both to turn the device on and as an input during operation.
Pressing the button momentarily activates a transistor, which completes the power path and allows the microcontroller to boot up. This design enables control of the entire device with just one transistor.
Once the microcontroller boots, its firmware sets pin D3 high. This signal passes through a resistor to an opto-isolator, which in turn drives the transistor, keeping it turned on even after the button is released. The microcontroller effectively holds the circuit powered.
With the system fully running, the button transitions from a power switch to a functional input. The video demonstrates this by showing a blue LED responding to each button press. Meanwhile, a timer runs in the background.
The system remains on as long as there is activity. However, after about 5 seconds of inactivity, the firmware pulls D3 low. This causes the opto-isolator to turn off, which in turn shuts down the transistor, leading to the entire circuit powering itself off automatically.
This circuit design allows the button to perform two key functions: booting the system and acting as a normal input. This provides a clean and efficient way to build battery-powered projects that can automatically turn on and off, conserving energy.