Maybe the final design should be modified to be done more like how Liteflux did it.
My Liteflux LF2XT also has an electronic tailcap switch and inner tube, combined with outer body. In order to electrically insulate the inner tube and keep it isolated from the outer tube, Liteflux inserted a thin plastic middle tube.
Dotted Lines in the Ramp:
Bottom and top line are the Moon/Low Level and the top off the ramp=ceiling. You can reach the top for ceiling by double click. (a second double click brings you to turbo)
Middle line is the maximum from the 7135.
Two fast clicks brings you to the ceiling (green solid)
The click, release, hold (green dashed) ramps downward from TURBO Edit: ceiling
But I should probably shut up, because I haven’t Andúril running on a lamp.
One suggestion for the thermal rampdown: Can we add a cap to how far it ramps down?
One problem I’ve notice with my Emisar D4 is that it starts 4300 lumens, but within a minute it ramps down to about 50 lumens, which is way too far. Then it takes forever to ramp itself back up again.
It would be nice if it stopped ramping down at 500 lumens instead of keeping going. Maybe have the rampdown stop when the light reaches 25-30% of max power no matter what the temperature sensor says.
It sounds like you got it in a later post, but I’ll try to answer all the questions at once.
The bottom dotted line in the ramp is the floor level. The top dotted line is the ceiling level. The middle dotted line is the 1x7135 level. Floor and ceiling are configurable.
Click from off: Memorized level. Defaults to 1x7135 after disconnecting power.
Hold from off: Floor level, then ramp up until button is released.
Double click from off: Ceiling level.
Click, release, hold from off: Ceiling level, then ramp down until button is released.
Ramping only happens when the button is held. If it ramps while not holding the button, something went wrong with the button connection, and the light should probably be loosened/tightened to reset the contact. I have seen this happen on occasion if the light gets knocked sideways and moves the position of the inner tube far enough to contact ground.
Depends on the pocket.
There isn’t currently a free pin to drive an indicator LED, since the pin it would normally use is allocated for the third main-emitter power channel instead. There is also no pad for a fourth LED on the MCPCB, nor room to route another wire there.
There is a compile-time option in Anduril for this. The default is set to the 1x7135 level or ~150 lm, which is about 3X as high as what the D4 firmware used. The regulation algorithm is also completely different.
#define MIN_THERM_STEPDOWN MAX_1x7135 // lowest value it'll step down to
It remembers almost everything, but when it’s off it is mostly stateless… ish. Like, if you were in candle mode when you shut it off, a single click will not return to candle mode. It’ll go to the regular ramp instead. But if you were in muggle mode when turning it off, it’ll return to muggle mode on the next click.
There are effectively four different “off” states:
Normal operating mode.
Soft lockout mode.
Momentary mode.
Muggle mode.
Most settings are remembered after a battery change. However, a battery change resets a few things:
Reset to normal operating mode, unless muggle mode was active. (cancels lockout and momentary)