Strobe/SOS disabling circuit: MK1 works. On Hiatus.

EDIT: Right now I’m going to shelf this project so that I can focus on more pressing matters in my life.

When the mode ic (the SPDT switch is a stand in for the mode ic, the 100k resistor nearest to the voltage source represents the mode ic’s power supply) switches the LED off the way it would for strobe or SOS, this should be able to kick it into the next mode by cutting the power to the mode ic breifly. The white light emitting diode is a placeholder for a white 5mmLED, I’m still trying to knock down the diode Vf required to prevent it from browning out the mode ic when the LED comes back on. Red LED is the power LED. I’m just tossing stuff at the wall and seeing what sticks here though. I’m pretty sure that this setup would be cheaper than replacing a disco mode driver if the only issue with the disco mode driver is that it has disco modes.
Circuit Simulator Applet–1–0.4988463358258777–0.5156782006459002+100.0%0Aw+192+272+192+304+0%0Aw+224+336+272+336+0%0Aw+320+336+272+336+0%0Aw+272+336+272+304+0%0Aw+272+304+272+272+0%0Ar+192+304+272+304+0+100000.0%0Ac+272+272+192+272+0+1.0E-8–4.360601615980669%0Ac+272+224+304+128+0+1.0E-6+2.4063605969849715%0Ar+272+224+320+224+0+100000.0%0Av+144+336+144+224+0+0+40.0+5.0+0.0+0.0+0.5%0As+224+336+144+336+0+0+false%0Ad+192+240+192+272+1+0.805904783%0Ar+192+208+144+224+0+1000.0%0Ar+144+224+144+128+0+100.0%0Aw+320+224+320+336+0%0A162+224+224+272+224+1+3.0+1.0+1.0+1.0%0Ao+8+64+0+35+10.0+9.765625E-5+0–1%0Ao+10+64+0+35+2.5+0.003125+1–1%0A

I like that Java Circuit Simulator too!

I can get the Red to turn On or Off, but nothing I can do on your model will make the White LED in the center light up. It looks like you’ve set a Vf of 3 at 1A, which looks like you’re planning an XM-L LED? Also, with a 5v power source, you can beat an XM-L’s 3-ish Vf at 1A, so why bother with a two switches, a transistor, diode, all those resistors (except one for current limiting if you want to) and two LEDs?

Or are you after something other than a flashlight?

The 5v source make me guess something USB-powered…

Dim

Dimbo I don’t think that you read the OP carefully enough. Many of those parts are stand-ins…

This was something I cooked up in 90 min, I left the high supply voltage because 4 eneloops will be close to 5v hot off the charger so it is close enough to reality, this is a cleaner version of the circuit I initially laid out but accidentally closed the sim. It works fine at 3.3v
This circuit detects when the mode chip is turning the red LED off, the red one is the power LED, when the mode chip (the SPDT switch) turns off the power LED the circuit cycles the circuit through to the next mode until it hits one that doesn’t keep the power LED off for any more time than required for PWM.
The white LED is there because in the real version, you need a high vf diode or the circuit gets switch bounce like behavior. The 5V was the default voltage for that sim. The extra parts of the circuit are so when the cheap mode chips on cheap flashlights (that at best give you the option of [A] Bypassing them and being stuck with high only, [B] Mod it to High, low, strobe, [C] Leave it at High, medium, low, strobe, SOS) go into strobe or SOS ) go into SOS or strobe, it gets kicked back to the useful modes.

This one uses a white power LED (note that I can’t do much in this sim before it bugs out, that is why I had to use so many stand ins): Circuit Simulator Applet–1–0.4814294892336304–0.5029143249930765+100.0%0Aw+288+272+288+304+0%0Aw+320+336+368+336+0%0Aw+416+336+368+336+0%0Aw+368+336+368+304+0%0Aw+368+304+368+272+0%0Ar+288+304+368+304+0+100000.0%0Ac+368+272+288+272+0+1.0E-8–3.089261493169707%0Ac+368+224+400+128+0+1.0E-6+1.2079462081743426%0Ar+368+224+416+224+0+100000.0%0Av+240+336+240+224+0+0+40.0+3.7+0.0+0.0+0.5%0As+320+336+240+336+0+0+false%0Ad+288+240+288+272+1+0.805904783%0Ar+288+208+240+224+0+1000.0%0Aw+416+224+416+336+0%0A162+320+224+368+224+1+3.0+1.0+0.0+0.0%0Ar+240+224+240+128+0+0.1%0Ao+8+64+0+35+10.0+9.765625E-5+0–1%0Ao+10+64+0+35+2.5+0.0015625+1–1%0A

I did read the OP, of course, but I got side-tracked by the last line:


I still look for “off-the-shelf” solutions first, which means (assuming Modes are not the problem, only stupid blinky modes — I concur wholeheartedly with this philosophy, BTW)
Under $2 for this one
Nearly $3 for this one or
Just over $3 for the classic 105c.

It’s hard to compete with those prices, in my neck of the woods…

(not shilling for FT, just running late for work & needed a quick reference)

I can’t see the sim (no Java). Maybe H-Man can post a diagram / schematic?

Dimbo The Blinky, it sounds like the component count here is very low. Passive components like regular diodes (not Schottky or other special types), resistors, etc are very, very inexpensive. Much less expensive than the prices you are discussing in post #4. Doing a project like this might be 1/20th the cost, assuming you get volume discounts (100pc orders). Many electronics hobbyists may have the appropriate components on hand already from “stocking up” type orders.

I’m interested in this as an exercise / from an academic perspective. I’d rather build a replacement driver of course.

http://devjoe.com/?p=397 That is the mode IC I’m thinking of, but anything with a capacitor used like C1 should be able to use this circuit with some modification.
C1 is the normal mode memory cap on drivers.
D1 is the normal memory mode diode on drivers.
C1 needs to have a high enough capacitance that PWM doesn’t brown out the IC, but low enough capacitance that the off phase of strobe can cycle it. Easier to just pencil over C1 to make it discharge quick enough. (R1 represents this penciling in, adjust C1 or R1 to adjust how long of a brownout the driver needs to cycle through modes or reset to the first mode.)

D3 keeps the normal mode memory behavior. C3 is the mode memory cap, too low and it is hard to cycle through modes.

Q1 is a PNP transitor that cuts the mode IC off from C3 to simulate the mode cycling brownouts.

C2 controls how long the stobe/SOS triggered brownout is. Higher value means longer brownout.

R1 controls how long the strobe/SOS triggered brownout is. Higher value means longer brownout.


Updated sim reflecting these changes: Circuit Simulator Applet–1–0.5183103460024103–0.524256283640264+100.0%0Aw+272+256+272+288+0%0Aw+304+320+352+320+0%0Aw+400+320+352+320+0%0Aw+352+320+352+288+0%0Aw+352+288+352+256+0%0Ar+272+288+352+288+0+100000.0%0Ac+352+256+272+256+2+1.0E-8–2.582957651721599%0Ac+352+208+384+112+2+1.0E-6+0.6988929159787503%0Ar+352+208+400+208+0+50000.0%0Av+144+320+144+208+0+0+40.0+3.7+0.0+0.0+0.5%0As+304+320+224+320+0+0+false%0Ad+272+224+272+256+1+0.805904783%0Aw+400+208+400+320+0%0Ar+144+208+144+112+0+0.1%0Ac+208+224+208+272+0+4.9999999999999996E-6+3.1307086102016015%0Aw+208+272+208+304+0%0Aw+352+304+352+320+0%0Aw+224+112+176+112+0%0Aw+176+320+224+320+0%0Ad+144+208+208+208+1+0.805904783%0Aw+208+224+208+208+0%0Aw+208+304+352+304+0%0Aw+144+320+176+320+0%0Aw+176+112+144+112+0%0Aw+352+208+304+208+0%0Aw+208+208+208+192+0%0Aw+208+192+272+192+0%0Ao+8+64+0+35+5.0+9.765625E-5+0–1%0Ao+10+64+0+35+5.0+9.765625E-5+1–1%0Ao+8+64+0+35+5.0+9.765625E-5+2+–1%0A

Modding an Attiny13A and a mosfet into the circuit to replace the mode IC would be less complex and cheaper if you count soldering iron caused burns.

If the mode IC controls another component that in turn controls the LED, the pin that connects to the LED would be the equivalent to LX.

Err, either I’m misunderstanding or this sim is really complicating things. There’s no such thing as “the normal memory mode diode on drivers” for example, and certainly there is not normally more than 1x mode capacitor involved.

Can you post a schematic of the stock driver and then a schematic of the driver with your added components?

The stock part of the driver.

The one remaining capacitor is what I mean by a mode memory capacitor. The stock Ultrafire F13 driver (see post 22, capacitor is circled with green line and has a resistor stacked on top of it: Group Buy for the GearBest Ultrafire F13 - Closed? ) was what made me think up this circuit but I used this schematic for the stock circuit since it is stupid simple to start with:

All pretty normal looking. (D1 appears to be reverse polarity protection. I doubt that it’s normally included at all?)

How about your modified schematic?

Note I’m going to misuse terms here, I guarantee it.
The point of the modded circuit is that when the LX pin goes high, the mode IC (U1) gets power cycled to reset it to the first mode (U1 is assumed to be a mode IC that starts out in high mode).
When the base on the PNP transistor (Q1) goes high, Q1 cuts power to the mode IC U1. Q1 would cut the power to U1 and not resume it without C2.
The capacitor C2 will act like a short at first when LX pin goes high, thus pulling the base of Q1 up but as the capacitor charges it stops acting like a short so R1 can pull the Q1 base back down to resume power to U1 so that the flashlight will be in the initial mode without the user having to power cycle the light past the strobe/SOS modes.

D1 and C1 allow U1 to ride out short power cuts that would be caused by PWM so that modes other than high still work.

D3 and C3 preserve normal mode switching behavior by supplying power Q1 during the mode changing press of the switch so that U1 doesn’t get reset back to high when someone tries to put the light into the next mode. D3 keeps C3 from being discharged during a mode change. D3 and C3 needed because otherwise mode switching timeout would need to be shorter than one off period of the strobe for this circuit to work.

Shoulda bought a single mode clone for $2.99 from Banggood, unless you're just enjoying the exercise.

I understand your description better now. Sounds like a nice solution (assuming you are locked in a room with this modes chip and no other way to get modes and want to build a flashlight).

At first it seemed like you had way too many components, but your explanation helps show why you need them all. :frowning:

I’m actually surprised this circuit didn’t exist yet with the number of tact-i-cool flashlights being made and the number of times people have complained about the blink modes.

I’m trying to make a gateway drug for flashlight modders. The point of it is that all of these parts can be scavenged from consumer electronics, if the mod kills the driver nothing of importance is lost, and it is possible do it on impulse.

If I wanted a single mode, I could just remove the capacitors and it would reset to high every time. Option B is to just solder the LED - wire to the grounding ring and outright bypass the mode ic. The point of the circuit is to keep the useful modes while getting rid of the ones that aren’t useful. Single mode doesn’t work well when you need long runtimes/low output (say hatlamp duty while working on something close up) and periods of high output out of the same light.

Sorry, I thought you wanted single mode from the page you linked in post 6:

The Issue

This flashlight has one very poorly engineered feature and that is its modes.
It has three modes: Bright, Dim and Strobe, but to switch modes the light has to be turned off, and back on. This is a huge inconvenience when you switch it off in the Bright mode, as on the next power cycle it will be in Dim mode. You have to cycle modes to get it back to normal again.
This frustrated me, and I had no need for the other modes anyway, only full brightness. Time to fix it!

Are you saying that you expect this to work with an extremely wide range of component values? That does potentially make it more useful to the neophyte modder. I definitely like things that tempt new modders.

You’re aware of the common “modes IC” controlled drivers which allow the changing of mode groups through the soldering of jumpers, right? I’m not sure what percentage of the market is those chips and what percentage is the static (no options) 3-pin stuff. I suspect that the majority of the worst (no options) modes IC’s are placed in $3 SK68 & similar flashlights.

I know that drivers like the nanjg 105c exist, but I doubt that anyone starts by modding stuff they would actually miss if they killed it. I started by doing resistance mods to springs on a 3xAAA flashlight driving a K2 TFFC emitter without even a resistor.
I have a nanjg 105c sitting on my desk right now but the issue is that even if I order from IS, I still need a credit card and the willingness to wait a week. The under 18 demographic is significantly disadvantaged when it comes to having access to a credit card. I bought a two pack of flashlights from lowes with a H-L-Strobe driver in each for $12. The 2AA one has an XP-G2, the AA one has an XP-E2. Both had a decent tint for a CW LED. The driver and MPCB on the AA one are pressed into the hollow pill. The driver on the 2AA one is pressed into the pill but the MPCB has pill under it. Both drivers are held in by screw in retaining rings that screw into the pill, the pill screws into the body. Both pills and drivers are big enough to solder with a cheap soldering iron. The 2AA light has some semblance of regulation because it draws 1.7A on a single eneloop but only .8 amps off of 2 eneloops (and the same with a 3rd cell). The switches are pressed in, but the lens and reflector are held in by a screw in ring. The reflector has a clear plastic centering ring.

Since the lights are from a brick and mortar store, you can buy a bunch of them and only keep the ones that win the tint lottery, returning the others.
I’ll have to mod a cheap driver to test what values work for my circuit, but with resistance you can just adjust it with a pencil.

EDIT: Remembered the other reason for this: I can never seem to find a good boost driver for cheap.

We may eventually be able to help you out with that bit… [WIP] 15mm PAM2803 w/ ATtiny13A rough layout / possibility

I have disabilities that get in the way of soldering SMT. My hands will have 2-5mm of jitter when trying to solder, hence why I have a preference for through board components when possible.