6. Batch "TA" 1S or 2S Bistro HD OTSM/NarsilM drivers 15-47.5mm size fit, S2+, C8, H03, MF01, MT03, Q8 Clicky or E-switch

Ok thanks! The ramping table, as in the code that tells the driver exactly how to combine the fet and 7135 to get the correct current for each step in the ramp? I assume that changes depending on hardware config?

Sorry, this is the wrong place for this. BLF is hard to navigate through all the information.

Lowest step is 1/255 for FET, AMCs usually 2-3

If you can wait until tomorrow, I can send you my Anduril config for the H03.

In general, the ramping levels are from the FW3A while the button light things are from the D4S.

Sorry, what does this mean?

Oh man that would be great! That makes sense. I can definitely wait, tracking says they should be here in a day or two. Can you send me the hex too? Atmel studio has been giving me fits, and I haven’t gotten around to setting up an ubuntu environment, so just dropping the hex in there is ideal until I get around to customizing things.

Thank you!

I don’t know much about anything, but the AMC is probably the 7135 current regulator.

It is.

I think Lexel is saying that if you use a 1/255 on the AMC 7135 channel the current will be too low and the led will not light up. So lowest he uses for the AMC is either 2 or 3.

As promised:

Hex with stock Anduril

https://zeroflow.at/flashlight/anduril.latest.H03_TA.hex

  • Stock Anduril
  • Ramping config from FW3A
  • Aux-LED is disabled as there was not enough space with the 3rd PWM channel

Hex with slightly modified Anduril

https://zeroflow.at/flashlight/anduril.zeroflow.H03_TA.hex

  • Anduril, but disabled stepped ramping
  • Lowest moonlight may flicker, in that case, set ramping floor to level 2 to fix it
  • AUX-LED works like in the D4S

Anduril-Source with Atmel Studio project

https://zeroflow.at/flashlight/flashlight-firmware-original.zip

  • Stock Anduril
  • Added files / defines for H03 Texas Avenger driver
  • Added Atmel Studio Project
  • I only tested if it builds
  • Structure is the same as stock Anduril, so if you want to get newer code from ToyKeepers repository,you can merge it.

Anduril-Source with my changes

https://zeroflow.at/flashlight/flashlight-firmware-zeroflow-inofficial.zip

  • Add defines for all blinky / flashy modes
  • Add define for stepped ramping
  • Add define for level 1 = reduced moonlight
  • Add H03_TA config with FW3A ramps and D4S AUX-LED

Guide how to import Anduril into Atmel Studio

https://imgur.com/a/NxB0xuY

  • No grantee for correctness, it just creates a hex file.

So now, if you want a lighted button and stepped ramping, you would need to search what else to disable to save the missing 52 bytes of flash.

Looks like the time has come to tweak your 4S Q8 buck driver now that Sofirn has made this Q8 battery carrier extension. XHP35’s here we come?

Thank you very much! Everyone is so helpful here.

I can’t wait for them stinking drivers to get here!

I did not realize that the numerical levels come off the AMCs, other than one/all7135. Is that so?

I really dont know, I’m just translating for Lexel.

I think he’s saying that on a FET only driver (1 channel) you have a huge range of brightness levels from many amps down to milliamps and you can use that step 1 of 255 and the led will light up just fine. In fact it may not get dim enough for a true moonlight.

On a 2 channel driver which is using a single AMC 7135 chip the range of amperage is much smaller. Max is only 350 miliamps and if you use 1 of 255 the output is so low the led might not light up.

Does that make sense?

We use 8 Bit dimming per channel from the MCU so 256 levels
of course 0 does not count, so we got 255 steps left

FETs are pretty fast in switching so with 20kHz PWM we have 50us for a full PWM cycle
50us/256 we get about 200ns

the AMC is a current regulator and on the lower end the very short PWM cycles do barely switch current through its like a low pass filter, the shorter the on cycle in the PWM is the higher is its frequency change from low to low

Now I need someone to translate for me. Lol

Okay, I think I understand some of it.

So 8 bits is like: 00100010
There are a total of 255 different combinations of ones and zeros. Each of these “steps” represents an amperage and brightness level for that channel.

This is for each channel? I wasn’t sure about that. I thought maybe it was 255 steps for all channels. Anyway…

So the MOFFET’S you use typically cycle on and off 20,000 times per second.

So 20,000 units into 1 second = 50 microseconds.

50 microseconds divided by 255 steps gives you an even smaller 200 nanoseconds.

I don’t understand beyond this. I’ll have to think about it and PWM later.

So I think my earlier translation was right. With only one AMC 7135 and 350mA if we divide this up into 255 sections, the lowest (a 1 out of 255) is not likely to light up the led. Lexel seems to usually only go down to 2 or 3 out of 255 to get that very dim moonlight.

@Level: For the Q8 4P linear driver: Is it possible to buy the driver with a soldered brass ring or does that need to be harvested off an existing driver?

Your asking about a linear driver?

He is probably asking about the FET+7135+16x7135 driver, not for a pure linear driver.

Or maybe he has 219Bs and wants to driver them in a regular manner.

I was going to say you could buy the factory driver for like 10 bucks that’s ready to go, but I’m not sure if Lexel is making some kind of special linear driver.

Any of Lexels aftermarket drivers do require swapping the brass ring over.

16x AMC driver is up to 5.6A regulated, above that the FET comed into play

Lexel, please work your magic when you have time.

C8F 21700 dimensions:

driver cavity = 21.26mm

retaining ring ID = 15.96mm