I need to put a circuit into a pen to turn on and off an LED using 3 AG3 or LR41 batteries connected in series. The LED will be on the tip of the pen and the switch will be on the side surface of the pen. The smallest switch I can found is DPDT Micro Push-On Push-Off Switch but it's too protruding.
There are momentary switches which are small enough but the LED need to be toggled on and off, not just momentarily on and off. So I need a way to convert momentary switch into 2-state toggle switch (once I press it, the output is continuously on, and then if I press it again, the output is continuously off).
Many circuits I found need mcu, transistor, and capacitor. Those circuits still take up too much space for this tiny application. Some use a 555 timer chip, but apart from taking too much space, it also consumes some power when the LED is turned off, so it's not good for this battery-powered application.
Then I bought several pens which uses a momentary switch to toggle LED on and off. They have laser diodes too actually but it's not a problem.
One pen works like this: once I momentarily push the switch, the LED turns on. After that, if I momentarily push the switch again, the LED blinks about 10 times per second. After that, if I momentarily push the switch again, the LED turns off.
Another pen that I bought has a white LED and a UV LED. It uses only one momentary switch and it works like this: once I momentarily push the switch, the white LED turns on. After that, if I momentarily push the switch again, the white LED turns off and the UV LED turns on. After that, if I momentarily push the switch again, the UV LED turns off.
Then I tore those pens' case to see the circuits they use. What I found are these circuits: There's a lump in each circuit. One pen's circuit has a white lump (which I have corroded it using a cutter so it looks rough), and another pen's circuit has a black lump. I haven't done anything to the black lump. Those lumps are at the back of those momentary switches toggling LED on and off. The other switches are just there to momentarily turn the laser diodes on.
After I corroded the white lump, I found no discrete component in it (no discrete capacitor, transistor, nor mcu).
By the way, the switches of the circuit which has a white lump that I have corroded works by connecting inner circular copper to the other circular copper. The small spring will be connected to the negative pole of the battery, and the uninsulated anode of LED is connected to the positive pole of the battery via the metallic case.
The circuit which has a white lump that I have corroded is the one that has UV LED and a white LED. The one shown in the picture is the UV LED. Its white LED cathode is connected to that terminal directly above 1,5 cm in the ruler in the upper picture, and it's anode is connected to the metallic case.
The golden cylinder is the laser diode's case. The black chip under the laser diode is a surface mounted resistor.
Do you recognize those lumps?