Anduril ... 2?

Not sure I understand the question but initially Anduril was made to be used with FETs or 7135s, the MCU outputs a PWM signal to turn them on/off , usually at 16~20kHz, not visible and personally I don’t feel any discomfort either.

The constant current linear driver is different though, it’s basically a voltage to current circuit and in the case of the KR4 5A driver 50mV=5A, but we only have a PWM signal not an analog voltage so it is smoothed into a voltage first by an RC filter, there is always a ripple this way though, and the voltage/current takes some time to reach the desired value, depending on the PWM frequency and the resistor and capacitor values. This is what the calculator shows you.

FPWM is the PWM frequency, 244Hz for an extreme example (frequency at 14bit as gchart mentionned)
Duty step : output in %
VL= 0, VH = 5 (for 5A, or 100 if you want a percentage of max output)

R and C value : 3.3K and 1u

Which gives this at 10% :

The output oscillates between ~0.3 and ~0.8A at 244Hz, personally I had a monitor with 200Hz PWM, it was terrible. Here it’s not a on/off PWM though, just a very large ripple, still I would expect it would not be confortable for me.

With 10uF the ripple would be significantly reduced :

But it takes about 0.2s to reach the desired output.

> Not sure I understand the question

probably because I dont fully understand PWM and Ripple, but I appreciate your answer, and it does help me

I share your concern that slow pulsed lighting, whether pulsed by PWM or by Ripple, can have biological effects.

> FPWM is the PWM frequency, 244Hz for an extreme example

very helpful, and thanks for the charts too

how fast is the Ripple in a stock D4V2?

Which driver? 4-16 kHz PWM in the classic driver, 4 kHz “not sure how much ripple” in the linear driver.

Thank you for trying to help. Im a bit lost.

I’ve made an Anduril2 firmware (for KR4 constant current driver on D4v2) so that in ramp mode we can dynamically adjust PWM frequency, just for this “ripple effect” experiment. See this branch:

This branch is basically for PWM experiment on top of Anduril2. Momentary and Lockout from ramp mode is disabled.

In ramp mode, use:

  • 4C: increase PWM TOP value by 1-bit (half the PWM frequency). Max=16bit PWM which is 61Hz
  • 5C: decrease PWM TOP value by 1-bit (double the PWM frequency). Min=10bit PWM which is ~4kHz (stock value)

Use 1C to turn the light on (will be in Advanced UI by default), then 4C to see what 11bit looks like, again 4C to see 12bit, and so on.
Note that the level value in Anduril2 is of range 1~1023 (for 10bit PWM) so when you do a 4C the brightness will decrease (because the level range is now 1~2047 for 11bit PWM).

With my 38yo eyes I can barely see any ripple effect (I imagine it would look like what a bad PWM flashlight does) up to 14-bit. I have to look very carefully to be able to perceive any slight wobbling or flashing in 14-bit. However with 16-bit PWM it is very obvious and terrible.
On the other hand, with a phone camera in “pro” mode which allows for manual shutter speed, I can easily see PWM effect in anything > 10 bit. For example, with 12-bit PWM and <=1/500s shutter speed I can see the ripple effect on the screen very easily.

My conclusion is, I will keep using my own Anduril2 fork which uses 12-bit PWM in ramp mode, and 14-bit PWM in candle mode. The better lower levels 12-bit PWM brings to me is more important to me. Also in candle mode the light is already wobbling so the ripple effect is negligible.

Very basic question - sorry I haven’t been tracking thread well but I have a FireFlies e12r and was wondering-

With light on - 2c to top of ramp
To get to turbo from here, I currently ramp down sligjtly, then ramp back up to ceiling, then 2c to turbo.

Is there a more straightforward way? After 2c to Max ramp? Because when i 2c for turbo it brings me back to ramp location I came from.

I have been using Lux-Perpetua diagram (Very helpful for me), but I can’t determine if there is a command for turbo from top of ramp, after using 2c to get to top of ramp.

Thanks!

Only momentary turbo via 3H.

I understand. Thank you. And I know the workaround with turbo only after top of ramp. I just didn’t know if there was a way to click to ceiling then click to turbo easily.

On Lux’s diagram for A2, it looks like there is a “2H” involved somewhere for turbo? Is that true?

2H from OFF for momentary turbo. If you want turbo with 2C you have to reflash unfortunately.

Ok cool, thanks thefreeman and Sammy

I don”t know if this was asked before, but…

Is there a way to set the second brightness in lockout to a particular settingwhile the memori is set to moonlight ?
i like keeping memory in moonlight so i dont lose night sicht when i forget to do 4H when unlocking at night.

With Anduril2, your base moonlight is your lowest ramp setting(between smooth and stepped ramp), and click-hold moonlight is the lowest mode of the other ramp. So set your stepped ramp to have a higher moonlight level and you’ll have access to two different brightnesses when locked out. Holding will bring you to the lowest of the bottom of the two ramps, and click hold will bring you to the brighter bottom of the other ramp mode.

yes this i know this from anduril 1, and i do have the bothem of the stepped ramp set to 20 on my anduril 2 FWAA.
but what i noticed in anduril 2, whatever i set fixed memory to, that becomes the second momentary mode in lockout, so sins i like my fixed memory on moonlight, i get 2 moonlight modes on 1H and 2H

Anduril 2 takes the higher moonlight of the two ramps and allocates that for 2H I believe. If you set your smooth ramp’s moonlight higher than that of your stepped ramp’s then 2H would go to your smooth ramp’s moonlight unless I’m wrong.

Manual memory overrides the higher level in lockout. There’s no way to prevent it except by firmware changes.

Oh that is awesome! Because iset my ramp floor to 1/150 and my stepped floor to 10/150 usually. Really cool to have the option in lockout, which I use all the time. Th aka for the info.

One thing I notice, is whenever I take it out of lockout (4c), the light comes on at like 30/150 or so brightness. Is there a setting to change that?

It’s either memory (last used brightness) or manual memory (refer to the manual for details).

yes thats what i notised, it kind of sux. but i can live with it :wink:
Overall Anduril 2 is a great improvement,i wil probably end up flashing my first gen fw3a to Anduril 2.

Maybe TK can add an extra 10H config option to the lockout for setting level 1 and 2 momentary ? :innocent:

I’m lazy.
Interested in An-2.
But I don;t immediately see a list of its changes from An-1.

Also, what lights is it in?
I like the FW3A, would consider an An-2 version if it was out there.
Or FW1x.

No way am I going to flash anything, and I pretty much code and flash chips for a living.

thx
wle