View on GitHub

Blf-firmware

Firmware for ATtiny13A based flashlight drivers

Download this project as a .zip file Download this project as a tar.gz file

These are programs that I have developed in my spare time to get my flashlights working the way I want them to, and to provide an easy way for other flashlight enthusiasts to customize their UI's. While a lot of it is original, 99% of the credit for the code goes to Tido and DrJones, and a ton of credit goes out to many great members of BLF for implementation ideas (especially off-time memory). Feel free to use the programs however you wish.

Here's a link to the discussion about the firmware, with more detail about what it does provided by RMM - http://budgetlightforum.com/node/29150

If you're new to flashing your own drivers, check out this amazing page http://flashlightwiki.com/AVR_Drivers

How to download

To download the latest versions ("master") of all of the different firmware programs, just click the "tar.gz" or ".zip" images above. If you wish to download just one program, click "View on GitHub", select the folder you want, and download the appropriate file(s).

As for downloading previous versions, if for some reason you don't want the latest, well, that's a little more difficult as I didn't do any "releases" or tagging. You can click on the "Browse commits for this branch" and see what changes were made, and select a commit to view the source at that point in time.

What do these programs do?

STAR

Used for: NANJG driver in forward or reverse clicky lights without a secondary momentary switch

Features: Ability to solder stars to change modes:
1. DUMMY STAR
2. Enable moonlight mode if connected and alternate PWM output not used
3. Specify mode order - H to L if connected, L to H if not
4. Disable mode memory if connected

STAR_off_time

Used for: NANJG driver in forward or reverse clicky lights without a secondary momentary switch. REQUIRES additional capacitor.

Features: Ability to solder stars to change modes:
1. DUMMY STAR
2. Enable moonlight mode if connected and alternate PWM output not used
3. Specify mode order - H to L if connected, L to H if not
4. Capacitor for off-time determination (I use Digikey.com part number 1276-1029-1-ND, which is a ceramic 1uF 0805 X7R)

STAR_momentary

Used for: NANJG driver in always-on lights with a single momentary switch, like the SRK

Features: Ability to solder stars to change modes:
1. DUMMY STAR
2. Not used
3. Specify mode order - H to L if connected, L to H if not
4. Switch input

STAR_dual_switch

Used for: NANJG driver in lights with a power switch (usually a rear clicky) and secondary momentary switch

Features: Ability to solder stars to change modes:
1. DUMMY STAR
2. Specify mode order - H to L if connected, L to H if not
3. Disable mode memory if connected
4. Switch input

This program has not been updated with the latest features (PWM mode selection, dual-PWM outputs, turbo ramp down) of the other programs, as I haven't even used this program in any of my lights yet. If you want these features added and I can try and get it done.

Questions?

Visit this BudgetLightForum thread and post them up, or message me (JonnyC)! http://budgetlightforum.com/node/29150