Flashlight Firmware Repository

2327 posts / 0 new
Last post
Skylight
Skylight's picture
Offline
Last seen: 18 hours 36 min ago
Joined: 10/01/2018 - 04:49
Posts: 1093
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: 1 hour 18 min ago
Joined: 08/19/2012 - 08:23
Posts: 14731
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: 31 min 6 sec ago
Joined: 06/25/2019 - 14:35
Posts: 988
Location: Germany

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

Tom E
Tom E's picture
Offline
Last seen: 1 hour 18 min ago
Joined: 08/19/2012 - 08:23
Posts: 14731
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: 31 min 6 sec ago
Joined: 06/25/2019 - 14:35
Posts: 988
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: 1 hour 18 min ago
Joined: 08/19/2012 - 08:23
Posts: 14731
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 hours 9 min ago
Joined: 01/12/2013 - 14:40
Posts: 10761
Location: (469219) 2016 HO3

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: 18 hours 36 min ago
Joined: 10/01/2018 - 04:49
Posts: 1093
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: 1 hour 18 min ago
Joined: 08/19/2012 - 08:23
Posts: 14731
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: 1 month 2 days ago
Joined: 06/30/2012 - 18:12
Posts: 107
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: 2 weeks 1 hour 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: 23 hours 55 min ago
Joined: 01/15/2018 - 16:43
Posts: 202
Location: Belguim

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

EasyB
Offline
Last seen: 4 hours 19 min ago
Joined: 03/09/2016 - 15:24
Posts: 2189
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: 45 min 4 sec ago
Joined: 06/29/2011 - 21:20
Posts: 246

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 hours 9 min ago
Joined: 01/12/2013 - 14:40
Posts: 10761
Location: (469219) 2016 HO3
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: 2 days 20 hours 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 ?

Pages