Flashlight Firmware Repository

2370 posts / 0 new
Last post
Skylight
Skylight's picture
Offline
Last seen: 1 day 15 hours ago
Joined: 10/01/2018 - 04:49
Posts: 1221
Location: Europe

Thanks for your reply, Tom E. It would be a 30mm Texas Avenger driver that I bought on Oshpark.

It would not be a problem if the low end ramping is a bit rough and not too low.

Tom E
Tom E's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/19/2012 - 08:23
Posts: 15065
Location: LI NY

Does it have to be Anduril, and not Anduril 2 (A2)?

I know I did this: built a FET only version, possibly even on a TA driver, but not sure if it was Narsil or Anduril - definitely pre-A2.

I'm really only active with A2 now.

SammysHP
SammysHP's picture
Offline
Last seen: 28 min 30 sec ago
Joined: 06/25/2019 - 14:35
Posts: 1704
Location: Germany

Just use the no-FET version and switch the output pins?

Tom E
Tom E's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/19/2012 - 08:23
Posts: 15065
Location: LI NY

SammysHP wrote:
Just use the no-FET version and switch the output pins?

Not sure what the no-FET version is. Is that done for a straight 7135 bank? If so, probably works with the I/O pin re-config, just not as smooth ramping as high amp/output FET, then the thermal reg. might not work too well.

SammysHP
SammysHP's picture
Offline
Last seen: 28 min 30 sec ago
Joined: 06/25/2019 - 14:35
Posts: 1704
Location: Germany

Tom E wrote:
Not sure what the no-FET version is. Is that done for a straight 7135 bank? If so, probably works with the I/O pin re-config, just not as smooth ramping as high amp/output FET, then the thermal reg. might not work too well.

Yes, no-FET versions are for single channel lights, like 7135 bank or single constant current regulator. Instead of modifying the driver you can change the hw-config file, of course. Then use a single channel config as a template.

The resolution depends on the MCU (is it 8 bit or 12 bit PWM?) and the curve might need some tweaking to make it look linear. Not sure how thermal regulation behaves on a FET-only light as lower levels are expected to not need thermal regulation AFAIK, but I might be wrong. There are some parameters you can tweak in the config file, but I’d wait for ToyKeeper, who has tested so many different lights and might have a better insight of how to change these parameters.

Tom E
Tom E's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/19/2012 - 08:23
Posts: 15065
Location: LI NY

Agree, TK would be best. I've generated my own ramping tables using the Python script she wrote - works well.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 01/12/2013 - 14:40
Posts: 10895
Location: (469219) 2016 HO3 // I get way more privmsgs than I can respond to, so please ask in a public thread if possible, for a faster answer.

Getting it to run on a FET-only light probably isn’t difficult, but it’ll depend on the exact hardware, and in particular, there are difficulties at the low end as already noted.

With a tiny1634-based driver, the low end can be improved (lower and smoother), but on a tiny85 there’s little to nothing which can be done, depending on the exact hardware and pinouts.

If it’s this driver, and if I read the diagram correctly, it looks like it uses an attiny85 and the pin mapping is something like…

  • pin 5: 1×7135
  • pin 6: 8×7135
  • pin 3: FET

The easiest way to run this FET-only would be tell FSM it’s a 3-channel driver, and put zeroes in the ramp tables for channels 1 and 2. I haven’t made the tiny85’s pins reassignable yet, so the FET would be treated as a third channel.

The t85 has a maximum resolution of 8 bits, so the lowest level will be fairly high. It also has the ability to change the “TOPPWM value, so dynamic PWM is probably possible… but I haven’t done it that way before so it’d need some extra work and experimentation. Or it could potentially be improved by implementing delta-sigma modulation in FSM, but that’s a fairly deep change… and pin 3’s PWM circuit isn’t buffered, so the DSM output would be a little glitchy. It only works cleanly on pins 5 and 6.

Alternately, it could just have coarse resolution for low modes. That’s the easiest solution.

If possible, I’d recommend using the 7135 channels for low modes. It goes lower, is more precise, and is more stable. But if it’s a higher-voltage light, like 2 or 3 or 4 cells in series, the 7135 chips won’t work.

Skylight
Skylight's picture
Offline
Last seen: 1 day 15 hours ago
Joined: 10/01/2018 - 04:49
Posts: 1221
Location: Europe

Thanks for your replies, Tom E, SammysHP and Toykeeper. Beer

Anduril or Anduril 2 are both fine. It is the 30mm TA driver that you linked, Toykeeper. I’m planning to use it on a 4 cells in series flashlight. It did work fine with a single 6V XHP70 but it failed with a few XHP70. That is why I’m asking for a FET only version so that I can remove the 7135s from the driver.

A coarse resolution for low modes would not be a problem, it doesn’t need to be too complicated.

Tom E
Tom E's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/19/2012 - 08:23
Posts: 15065
Location: LI NY

Yeah, same problem here, same reason for me. The 7135's can't take high amps at 6V.

HiTiT
Offline
Last seen: 3 weeks 5 days ago
Joined: 06/30/2012 - 18:12
Posts: 117
Location: Israel

Can somebody please help me to find a momentary (e-switch) firmware that works with BLF A6 driver?

I need something really simple, 1 click on, 1 click off (and maybe a long click to change mode)

If it doesn’t exist I would really like to pay someone to help me with that.

Forsythe P. Jones
Offline
Last seen: 1 year 1 month ago
Joined: 08/15/2021 - 00:40
Posts: 413
Location: California

Try looking at the sticky threads like STAR at the top of the modder forum,

https://budgetlightforum.com/forum/otherled/mods

for attiny13a firmware. Without having looked at the code I don’t know whether the UI you want is there already, and/or whether it would be difficult to do. Either way, you will need some special hardware to reflash the chip on the driver board.

Overload
Overload's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 01/15/2018 - 16:43
Posts: 254
Location: Belguim

May I use “anduril.2021-08-31.ff-pl47g2.hex” to upgrade my pl47 MU nichia?

EasyB
Offline
Last seen: 1 month 2 weeks ago
Joined: 03/09/2016 - 15:24
Posts: 2250
Location: Ohio

HiTiT wrote:
Can somebody please help me to find a momentary (e-switch) firmware that works with BLF A6 driver?

I need something really simple, 1 click on, 1 click off (and maybe a long click to change mode)

If it doesn’t exist I would really like to pay someone to help me with that.

Check out toykeeper’s baton FW in the ferrero rocher folder. Not sure if it is 2-channel, but it is for the attiny13a.

https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/trunk/files/...

Microa
Offline
Last seen: 11 hours 20 min ago
Joined: 06/29/2011 - 21:20
Posts: 252

Toykeeper’s baton FW is a single channel FW.
Attiny13A Diagram

Not Used – |1 Flat StareVCC
E-switch – |2 7| – Voltage ADC
Red LED – |3 6| – PWM
GND – |4 5| – Green LED

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 01/12/2013 - 14:40
Posts: 10895
Location: (469219) 2016 HO3 // I get way more privmsgs than I can respond to, so please ask in a public thread if possible, for a faster answer.
Overload wrote:
May I use “anduril.2021-08-31.ff-pl47g2.hex” to upgrade my pl47 MU nichia?

I’m not sure if that still uses the same firmware or if it’s a newer light with one of LoneOceans’ drivers. If the firmware is recent, you should be able to find out by using the version check function as described here. If it blinks out a product ID, use that. Otherwise, if it doesn’t list a product ID, it’s probably old enough that it uses the firmware you linked.

i42dk
i42dk's picture
Offline
Last seen: 8 months 2 weeks ago
Joined: 08/30/2017 - 05:35
Posts: 201
Location: Denmark

Gen1 Emisar D4S Driver issue:

Hi all.

I have an older D4S that’s using this driver, with this type of flashing pads:

For some reason i can’t update it beyond “anduril.2019-12-17.emisar-d4s-219c.hex”

New’er builds beyond that, or Anduril2 doesn’t work on this driver.
My best guess is that some pinouts changed ?

Tom E
Tom E's picture
Offline
Last seen: 3 months 1 week ago
Joined: 08/19/2012 - 08:23
Posts: 15065
Location: LI NY

Just got this in an email from Microchip/Atmel, EOL notification on our old gem Atmel Tinys:

https://www.microchip.com/product-change-notifications/#/16686/GBNG-14CATI014

 

Ouch!!!

Ooops! False alarm...

Fescron
Offline
Last seen: 1 week 6 days ago
Joined: 10/17/2020 - 10:16
Posts: 255
Location: Belgium

Hello,

I recently upgraded the firmware of a Sofirn SP36 BLF LH351D 4000k (old version without powerbank-functionality) to Anduril 2 (and added two 5.1kohm pulldown resistors to the USB-C CC1 and CC2 pins to “ask” USB-PD compliant chargers for 5V using C-C cables). I also changed the button LED colors to red and yellow instead of red and green. The yellow LED’s seem to have a higher Vf than the green LED’s though, so the button LED is now unfortunately only visible on “high”. I tried decreasing the on-board current-limiting LED from 1k to 500ohm but that didn’t really do much… Is is possible to change something in the firmware to increase the lower button-brightness? Thanks!

(I flashed the “anduril.2021-12-13.sofirn-sp36.hex” file btw, and so far I noticed that SOS is missing from the Sofirn SP36 (Pro) & Q8 (Pro) diagram, but I won’t miss that haha)

SammysHP
SammysHP's picture
Offline
Last seen: 28 min 30 sec ago
Joined: 06/25/2019 - 14:35
Posts: 1704
Location: Germany

Fescron wrote:
Is is possible to change something in the firmware to increase the lower button-brightness? Thanks!
No, that’s not possible. The low brightness is determined by the internal pull-up resistor of the microcontroller.

Fescron wrote:
(I flashed the “anduril.2021-12-13.sofirn-sp36.hex” file btw, and so far I noticed that SOS is missing from the Sofirn SP36 (Pro) & Q8 (Pro) diagram, but I won’t miss that haha)
SOS was not enabled for most targets until recently: https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/rev...
Fescron
Offline
Last seen: 1 week 6 days ago
Joined: 10/17/2020 - 10:16
Posts: 255
Location: Belgium
SammysHP wrote:
Fescron wrote:
Is is possible to change something in the firmware to increase the lower button-brightness? Thanks!
No, that’s not possible. The low brightness is determined by the internal pull-up resistor of the microcontroller.

I see, thanks for the quick response! Could I change the 1k resistor to maybe 100ohm to get a higher “low” brigness? The lowest I went to was 400ohm I think… Although when changing resistors the “output” voltage didn’t seem to change all that much so I doubt that’s going to give the desired effect, I suppose I just need to find yellow/amber LED’s with a lower Vf…


SammysHP wrote:
Fescron wrote:
(I flashed the “anduril.2021-12-13.sofirn-sp36.hex” file btw, and so far I noticed that SOS is missing from the Sofirn SP36 (Pro) & Q8 (Pro) diagram, but I won’t miss that haha)
SOS was not enabled for most targets until recently: https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/rev...

I see, thank you!

Chatika vas Paus
Chatika vas Paus's picture
Offline
Last seen: 1 hour 44 min ago
Joined: 09/03/2017 - 13:46
Posts: 1243
Location: PL

Which anduril 2 file should I use to refresh the FWAA? This is fet+1 with tiny85. Emisar D4 makes the most sense for me.

kiriba-ru S2+ and S21a spacers are available in EU. PM me. A few details here

quahog
Offline
Last seen: 20 min 37 sec ago
Joined: 02/11/2021 - 17:10
Posts: 72
Location: Canada
Chatika vas Paus wrote:
Which anduril 2 file should I use to refresh the FWAA? This is fet+1 with tiny85. Emisar D4 makes the most sense for me.

I’m fairly certain Lumintop has used the fw3a-219 config (based on the firmware version that blinks out, last 4 digits 0312)

https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/vie...

Chatika vas Paus
Chatika vas Paus's picture
Offline
Last seen: 1 hour 44 min ago
Joined: 09/03/2017 - 13:46
Posts: 1243
Location: PL

Thanks. I didn’t thought about checking it out before disassembly. A bit strange because the original fw3a has fet+7+1. I know that the new ones have fet+1, but I didnt know that the soft has changed too.

kiriba-ru S2+ and S21a spacers are available in EU. PM me. A few details here

Chatika vas Paus
Chatika vas Paus's picture
Offline
Last seen: 1 hour 44 min ago
Joined: 09/03/2017 - 13:46
Posts: 1243
Location: PL

kiriba-ru S2+ and S21a spacers are available in EU. PM me. A few details here

Quadrupel
Quadrupel's picture
Offline
Last seen: 41 min 1 sec ago
Joined: 12/03/2017 - 10:40
Posts: 1143
Location: Lithuania

Back trace T85 pin config to make sure, but its probably D4 config.

thefreeman
thefreeman's picture
Online
Last seen: 6 min 14 sec ago
Joined: 01/06/2020 - 09:56
Posts: 1722
Location: France

Yes it’s the same pin configuration as D4.

Chatika vas Paus
Chatika vas Paus's picture
Offline
Last seen: 1 hour 44 min ago
Joined: 09/03/2017 - 13:46
Posts: 1243
Location: PL

Nice if TK could confirm if 0312 is for dual or triple channel. I just checked my FWAA and it shows 0312 (fw3a 219) too.

kiriba-ru S2+ and S21a spacers are available in EU. PM me. A few details here

quahog
Offline
Last seen: 20 min 37 sec ago
Joined: 02/11/2021 - 17:10
Posts: 72
Location: Canada

Correct, fw3a-219 config is for 3 channels and FWAA only has two. It just means that the 3rd channel does nothing and that likely ramp levels 130-150 are all the same (see PWM2_LEVELS): https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/vie...

b3d0un
Offline
Last seen: 9 months 3 weeks ago
Joined: 07/22/2020 - 13:58
Posts: 2

Ive been able to download the tarball code in the past.

For quite some time now, I’m unable to download the tarball at all. Anybody else experiencing this?

Thanks!

Quadrupel
Quadrupel's picture
Offline
Last seen: 41 min 1 sec ago
Joined: 12/03/2017 - 10:40
Posts: 1143
Location: Lithuania

Impossible to download for half year or longer.

Pages