anduril firmware B35AM throttle.

i have a dm11with a smokey b35am and i would like to throttle it within the firmware to get acces the the code as when using tactical strobe it smokes and there is no option to throttle it
here is the method im using to eddit the code

Install WSL.

In terminal, type ‘wsl’ (enter), then once linux is loaded install bzr with ‘apt-get install bzr’.

run ‘bzr branch lp:~toykeeper/flashlight-firmware/anduril2’

Make your code changes. Probably to anduril.c in the dir below

run ‘cd anduril2/ToyKeeper/spaghetti-monster/anduril/’

run ‘./buildall.sh nofet’ replacing nofet for your search term (whatever filename matches your desired build, eg d4sv2-tintramp-fet)

Done! Your hex will be generated in the same anduril folder.

what anduril file and how will i be able to impliment the led throttle so it will never go above my preset level even if i reset it?

You need to modify the ramp table in cfg-noctigon-dm11-12v.h with the help of level_calc.py. It’s not very simple though, IMO there should be a way to limit the max output (without having to disable turbo), with a function that clips the ramp at a desired level.

Oh !@#$
That’s more complex than I thought it would be

@ToyKeeper could you help connect the dots for me? I’m still a little bit confused

I think it will be good to have an ability to select a level in which the light will not go above under any circumstances, unless reflashed I don’t really like led overdriving so much and I think with the recent issue of the B35AM I think this highlights why this feature would be good.

And on dual channel lights allow the max level set by you as turbo and to not have a ram ceiling like a 200% at the limit you set. And to select the max level for each channel so if you had something like a W2 and a amber W1 you could throttle the W1 want channel a bit but still have a 200% turbo at your limits

Even if it was just a small menu on the light, that would not reset unless reflagged I think emitter-swapping people would like this to.

Without recalculating the ramp you can flaten the end with the desired max level, for example if you want 80% of max current, 255x0.8=204

#define PWM1_LEVELS 0,1,1,1,2,3,3,4,5,6,7,8,9,10,11,13,14,16,17,19,21,23,25,27,29,31,34,36,39,42,44,47,50,53,57,60,63,67,70,74,77,81,85,88,92,96,99,103,107,110,113,117,120,123,126,128,130,133,134,136,137,137,137,137,136,135,133,130,126,122,117,111,104,96,87,76,65,52,38,22,23,25,26,27,28,29,30,32,33,34,36,37,39,40,42,43,45,47,49,51,53,55,57,59,61,63,66,68,70,73,76,78,81,84,87,90,93,96,99,103,106,110,113,117,121,125,129,133,137,142,146,151,155,160,165,170,175,181,186,192,197,203,204,204,204,204,204,204,204,204

And it wont go above 204/255, I think the original B35A driver was 3.6A, so now it would be 80% of that : 2.88A

As long as the ceiling is set at a level lower than the flatened part this wont affect ramping.

1 Thank

Thanks!

Hello sorry about this again. I’m running into this issue please could you tell me what I’m doing wrong?

The command is ”make”, see : Anduril ... 2? - #328 by ToyKeeper

Sorry now I get this
But thank you so much for helping me

Did you do step 3 from the link to install all the prerequisites ?

im an idiot but i now got it working im 17 first time doing this

Hi what does PWM_TOPS do?

And another thing if I wanted to enable a throttle on a tint ramping light how to do it? The PWM range looks so much different. And I was expecting to see two of them not just one.