Flashlight Firmware Repository

Thank you.
Interesting LED but the description says it needs voltage between 3.5V and 5.5V. Too much for D4Sv2.

Tried to compile rampingUI (the original from D4) and I have two errors:

The program has not been modified.
What to do with this?

there are different pin outs from one supplier to another for those RGB LEDs, also footprints are not always the same
so you better know exactly which one is identical to the original ones

I must say I originally speculated the optical programming of the 371D to be a bit gimmicky but after using it a dozen or so times it’s actually pretty cool.

Being able to configure Anduril’s dozen options all at once would be very cool. You could even supply a link to newbs with an entire config they cant figure out. From a MFG side they also used it to throttle a few features back that would potentially lead to customer dissatisfaction but could still be overriden by the user by special means.

I’ve probably done it 15-20 times and as far as I could tell it accepted the settings every time. I would probably not want this to be the only way to configure it but if it was an additional way to configure and maybe a few select settings reserved as the “only” way to get to them that would be fine.

Just my .02

Is it possible to copy the branch into into my own repo in GIT? Im more familiar with Git and make it publicly accessible?

Yes, via fast-export. I did it some time ago, but haven’t updates for a while: GitHub - SammysHP/flashlight-firmware: Git mirror of ToyKeeper's flashlight-firmware repository with additional changes

As for my previous question. Commenting on a few lines of code helped, the program compiles normally, but I don’t know if it will work properly.

AS says the error is in this line:
#define delay_4ms _delay_4ms
How to remove this error?

Hello!
Yesterday I got my MF01 mini and it got Anduril. I did not find a specific version of Andutil for this one. Maybe Astrolux used the MF01S Anduril?
The thermal stepdown acts like it is freightening of getting warm. Stock factory setting is around 2200 lumens at ramp max. I lowered it to around 1400. Even at 1400 lumens it ramps down fast after a few seconds of turn on to around 700 lumens and then slowly creeping up to 1300-ish and it can keep that. But default temp set to 45C. I sometimes measured 40C at head and it starting to lower output again and again but sometimes it heating up to 55-60C I tried various settings of thermal calibration and used IR thermometer to calibrate when it is settled a while cooled down but at a cold start it is always making that drop first. I can’t figure it out. Even if I set step down temp to 65C it making that drop first when it is only 36-37C

I think it’s just the rate of temp change. I think it was made worse in a build around 2 months ago or something. This has been documented in all the newer FW3A builds too.

why would anduril.c have harcoded RGB when not all anduril lights support RGB? Is it possible to move this functionality to cfg-* files where flashlights support it?

afaik it wont even compile unless it is enabled in the config so it basically works like you say already. this is why you can comment out one line to disable muggle and get enough free space for more development.

On this thread HERE it seems that Hank has put a new driver in the D1.

User cuberS seems to have a D1 with an ATtiny1634 (he has flashing pads and the MCU signature matches the ATtiny1634), but I haven’t find any firmware in the repository for such a light. He flashed the ATtiny85 firmware and it does not work. Is there a firmware he can flash to rescue his light?

Probably asked before, but I cant find answer. I am pretty sure I even saw that TK said that this will be included as an option soon… I am trying to figure out how to disable FET mode on FW3A completely. Will writing zeroes to PWM3_LEVELS help? Or its more complicated?
Another useful option would be PWMx_LEVELS settings and steps settings for faster (someone will prefer slower also) ramping. I know its done with levels_calc.py but testing on FW3A is not so easy (soldering every time).
Last question is about battcheck mode option. I see

in source but this probably dont work yet, right?
Thanks.

EDIT:
Ok, I tried this:

It seems that its working. Ramping is faster. Ramping stops after Nx7135 blip. Double click while on works. Only thing that bothers me is slight variation in brightness at the moment when starting ramping down from Nx7135. Maybe its because I had to put 255 instead of 0 at the end of PWM1_LEVELS?

Hi guys, I have a question regarding flashing firmware. I am a total noob when it comes to flashing and I reached dead end when I decided to flash my Astrolux MF01 mini to correct some voltage reading problems (There is a large voltage difference between the actual battery voltage and the blinked out voltage). I managed to find some instruction and I did this:

I downloaded the branch “lp:~toykeeper/flashlight-firmware/fsm” from: Flashlight Firmware Repository in Launchpad because it had the code for Astrolux/Mateminco MF01 MINI. I Unzipped the tarball and found the file I needed to adjust to correct the Voltage measurement:

File: hwdef-Mateminco_MF01-Mini
Lines:
#ifndef VOLTAGE_FUDGE_FACTOR
#define VOLTAGE_FUDGE_FACTOR 5 // add 0.25V
#endif

I changed the VOLTAGE_FUDGE_FACTOR to 10 to add another 0.25V.
Now that I have it, how do I run the make command in the fsm\ToyKeeper\spaghetti-monster\anduril folder?

Do I need a special compiler (I am using windows)? The instructions I found said: “the code can then be built by going into the anduril directory and running “make”. This compiles one .hex file for each cfg-*.h file it finds.”

Could anyone please recommend me the best and the easiest way to do this?

The short answer is you need to download Atmel Studio and load your edited files in there then choose “compile for size” in the properties. It will create a hex file that you can flash with a SOIC clip and some shady USB drivers.

I recently got my hands on a used Sofirn SP36 Anduril and found that the temperature limit is exceeded by more than 10 K, although the measured temperature is relatively accurate. This made me curious, especially since I recently ordered some Emisar D4V2s. So I wrote a little simulation to test the thermal regulation code.

Thermography:

https://abload.de/img/heatup_sp36_16x_60fpsgbkwn.gif

Measurement result:

Simulation result (revision 388):

Simulation result (revision 454):

Simulation result (mockup of how it could look like):

https://abload.de/img/anduril_temp_regulatikzk6h.png

What I found so far:

PS: On an aside, the project name (sphagetti-monster) hits the nail on the head. :D

I just purchased a Haikelite MT09 and ordered a new driver from Lexel.

He wants to know what firmware i want.

I have no clue, any suggestions

Anduril

Anduril

Do we have some soft for red bicycle back light?