Chunky but cheap LED torch with intriguing chip (Patreon)
Published:
2025-11-19 20:16:28
Imported:
2026-11
Content
The circuitry in this cheap but useful torch/flashlight is mostly what I was expecting, but with a twist.
It uses a strange charge control chip that needs a little external help to drive the LEDs. I think it just needs an inverter, but can also use spare pins on a microcontroller and very simple inverting software.
I'd guess something like this on a PIC microcontroller in the PWM loop.
btfsc gpio,1
bcf gpio,2
btfss gpio,1
bsf gpio,2