OK, so I took the plunge and ordered some HQ10D boards from OSH Park.
I built a test board with the following
MCU: Attiny13a
C1: 10uF
OTC: 1uF
2x 7135 Regulators (350mA versions), just for testing, one connected to pin 5, the other to pin 6 of the Attiny.
R1: 19.1k
R2: 4.7k
D1: BAT54JFILM Schottky Diode
What I’ve learnt today:
You can’t program the Attiny on the board. On the USBAVR there should be a link for slow MCU, which the Attiny13 needed (had to solder one to my USBAVR). There is more than one driver for the USBAVR. Eventually, after much Googling, downloading Zadig and selecting libusbK worked. The wiring of my programming clip WAS correct the first time, but I measured it end to end several times and rewired it twice. I need glasses.
The Attiny13a appeared to program fine, with no errors in AVRDude. I downloaded the blf-a6.hex from https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/trunk/files/head:/ToyKeeper/blf-a6/. However, it isn’t working as expected. The LED does not light every time I connect power, sometimes I get different brightnesses or strobe. Wondering now if I downloaded the correct hex file. I’ve tested every connection on the PCB and there are no shorts or breaks.