Flashlight Modes Question

How does the firmware side of having multiple modes work if all that the tail button does is disconnect ground? Closest I could think is adding a capacitor between two pins on the ATtiny and measuring its voltage on startup.

I think that describes a mechanical clicky switch, such as in a Lumintop Tool or a Malkoff.

no idea How they make the light work to change modes, but there are two types of switches, mechanical and electronic

Electronic Switches, such as in Anduril lights or an HDS, seem to offer more functionality. For example, enabling the processor to respond to multiple clics, differently than just turning the light on and off with a mechanical switch.

otoh, eSwitches consume power (however small the amount, it is a parasitic drain). Lights w Mechanical Switches have Zero parasitic drain.

I wonder if something similar could be done with a forward clicky. They can send pulses to change modes on some drivers. OTH the click form ON may be a problem… that would take a reverse clicky ???

yeah i wonder how they get the signal to the driver while unless they run a wire? on my light design the driver has to be at the front of the light due to the LED high and ground both being on the driver unlike an AMC7135 based driver which can be located in the rear of the light

There are various ways, for example:

  • Measure the on-time: It’s easy, simply advance the mode when the light is turned on and reset it after n seconds. This will result in a mode change when you turn it off and on again in the first n seconds and keep the mode when you power cycle it afterwards.
  • Measure the off-time: Multiple variants possible. Some use a capacitor to power the microcontroller for a while, some use a capacitor as a timer, others rely on the fact that most microcontrollers retain their memory for a few seconds after disconnecting the power.
3 Thanks

a signal wire is only needed for eSwitches that are Tail mounted

lights w eSwitch on the tail:
HDS uses a signal wire embedded in the side of the main body tube

TS10 uses a second body tube to get the electronic signals from the tailswitch to the driver

lights w eSwitch on the head:
D3AA, SP10 Pro, etc, need no signal wire, since the eSwitch is in the head…

3 Thanks

Don’t forget the coolest of them all, the piston drive. The eswitch is mounted on the driver. Pushing the tailswitch serves to push the battery up againt the switch on the driver.

That’s pretty much exactly it. When ground’s reconnected, the chip “boots up”, and sniffs the cap in question. Off for a while and the voltage long since bled off, but a quick blip leaves quite a bit on it.

Acebeam Pokomon, XTAR WK50, etc., are all forward-clickies, and change modes the same way. Only you select the mode via momentary, then click-through when you got it. Want to change the mode when it’s already on, click-through to turn off, press to get to the mode you want, then finally click through to make it stick.

Yes. But, the question is whether either forward or reverse mechanical switches could made to work with Andruil.
I am a big fan of tail switches, no ambiguity with locating them when you need them. :grin:

Not without a tube or something.

RC/FC is simple on/off.

FC: Light’s on, it can’t get any onner than on if you half-press, so nothing happens. Click through, then release, light turns off. Bloody Hell…

RC: Light’s on, you want to ramp up/down. Half-press, light turns off. Hmm, okay, now what? Didn’t think that one through…

That’s the problem with lights that don’t have a UI but an OS, and you try to control them with a telegraph key.

1 Thank

But al least with a FC from off, maybe there is a way to count pulses to do something… But yeah from on?? Same way with RC but in reverse… So maybe some kind of limited UI based on pulses. But far from the Andruil we know and love…