Flashing a new attiny85v for a lexel driver

I’ve got a lexel 21mm driver in my skilhunt h03, and it currently has anduril on it, I think 1.x.

I have recently discovered that it’s got an attiny85 non-v version, and it shuts off at like 4.0v on the cell. I’ve got an attiny85v I want to flash and install on the board. What firmwares can I use? Do I need to stick with anduril? can I use anduril 2.x? where can I get the right image for this board?

is there a voltage calibration I need to do as well, so the voltage reading is accurate? lexel mentioned something about a 2 flash cycle to do that.

I got the attiny replaced and flashed. I dumped the old firmware, which had a build date of 2019-12-03. it had no model info though.

I tried the newest fw3a-nofet firmware, and that mostly works. now the problem I’m having is the AUX led. that works with the older firmware, but not with the new one. do I need a different fw3a, a custom build, or something else?

You need a different configuration, but I don’t know what Lexel used in his build.

ah thanks. Does that mean I’ll need to build the firmware myself?

looks like the AUX led is connected to pin 7 on the attiny

Probably yes.

You can find the hw-def files here:

https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/files/head:/ToyKeeper

They contain the pin layout. Look what matches your driver best (but not based on the pin layout but more based on the circuit design). Then check which cfg file matches best:

https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/anduril2/files/head:/ToyKeeper/spaghetti-monster/anduril

This is all pretty complicated if you don’t know how your driver is designed to work. Without the driver in my hands I also don’t want to make any assumptions. Maybe Lexel even has shared his code somewhere™.

I’ve give that a shot, thanks!

this is the driver I’ve got: http://www.metronixlaser.de/bilder/flashlight/21mm_driver_LX_v3.0.png

it’s a modified texas avenger, though I’m not sure what all changed. The physical driver I have has a white silkscreen, so it’s a lot easier to follow traces on the picture unfortunately.

There’s the mosfet, and there’s 7 other drive transistors. Mine doesn’t have the LDO, R2, or R7-R10.

Looks like with 1S config its just Fet+1 driver and if in 2S mode 1+6 driver. Probably its possible to retrace it to FET+1+6.