I told myself this morning if I did not have this solved by tonight myself I would post it on element14 :-) as a Holiday puzzle. It seems simple enough....
The school my grandson goes to gives out little awards from time to time and he recently selected a "spy kit" as his reward. Inside was a little flashlight / torch that wasn't working. Since all spies need a miniature flashlight he asked me to see if I could fix it. It turned out that it wasn't getting good contact on the positive terminal and was fairly easily fixed. This is what it looks like working:
While I had it apart I couldn't help examining it closer. This is the (very cheap and poorly assembled) PCB.
A single AAA battery powers it. Negative is the red wire and positive is the bare wire coming up between the legs of the LED. The datasheets for the two SOT-23 transistors (J3Y and 2TY) are online and the two resistors and inductor are marked. I removed the capacitor and measured 0.5 nF. Using a multimeter and following the traces in the photo above I came up with this for the schematic.
This is what the output to the LED looks like on the oscilloscope:
Voltage is doubled from 1.5V input to ~3V peak to peak output and is a rough square wave with duty of 24% on and 76% off. Frequency is 215 kHZ. I powered it with the bench supply to see how it behaved as the voltage was lowered and it continued to put out reduced light down to 0.7V input without problem.
I tried simulating the schematic above but only get 1.5V DC output. I may have missed something when tracing the circuit but if so I missed it again when rechecking. Or I may not be simulating it correctly / have wrong values somehow.
Having failed to convince myself I understand how it works I have decided to post it here and see what the experts say...