
If you are interested in DIY electric mosquito swatters, you might want to take a look at this article.
If you happen to have an electric mosquito swatter, but it has two drawbacks: one is that the battery indicator light stays on all the time, and the other is that the small flashlight glows faintly.
The control of the battery indicator is officially implemented using a toggle switch, so once it is powered on, it stays on continuously, which consumes a lot of power. At this point, you may want to modify the electric mosquito swatter.
What you need now is for it to light up only when in use, and stay off when not in use, so that even if it is left powered on, it will not consume power.

Use the working indicator signal to control it

Cut off a piece to use as a solder pad

Solder on a MOSFET

Continue adding a capacitor and a resistor

Completed

Use a diode to process the working indicator signal

This way, the always-on battery indicator problem is solved
Press the micro switch and the battery indicator lights up
As for the faint flashlight glow issue, you only need to replace the 1N5819 shown in the diagram with a diode that has lower leakage current
