Update Oct 3: PD68 TripleDown/TripleStack - Tri-Channel Driver

Ok tried it and still the same problem, the driver does not switch modes.


I also tried changing the switch_pin and fet_pin, because the switch is connected to pin 2 and the fet to pin 3 right?

#define SWITCH_PIN PB2
#define FET_PIN PB3

But also no luck with that …

Hmmmmmm,

I’ve tried something more like the current clicky switch FW HERE

Can you make sure that TK’s Ferrero_Rocher works on your driver first.

Ok I tried your new version but still the same, it starts in direct drive and won’t change modes.

I then downloaded the ferrero rocher hex file and flashed this and it also behaves strange.

If I connect it to the battery the led flashed one time very short and then it is dark again.

If I connect ground to pin 2 it cycles through the modes staring high to low.

If I connect ground to pin 2 for a short time it is at direct dirve and stays there.

Strange maybe I did something wrong with the driver.

The only firmware that I get to work properly is the one in the op for a rear clicky light.

Hmmm sound like there is something else wrong

FWIW, Ferrero Rocher is supposed to blink once and shut off when power is connected. Short and long presses should go through the modes in opposite directions. However, it also tries to use two pins for battery indicator LEDs, and that could be messing with the behavior.

I suspect that what happens is a short or long press cycles normally until you let go, then it tries to indicate battery status by turning on one or two pins. This causes the light to turn on another power channel at 100%, and it drowns out any mode changes you do afterward.

If you disable the battery indicator code, it’ll probably behave a bit better. But this at least suggests that the e-switch pin is physically working.

Been looking into it a bit more.

Mk4

nope sorry, tried it still no mode switching :frowning:

Sorry for the basic question,

Is there a driver that has a PWM above 8 kilohertz? I would like to shoot video with flashlights, but the pwm flicker isn’t good. Thanks.

Like this? NLITE, a free firmware for NANJG drivers

Nearly every firmware in the repository has PWM above 8 kHz. Click the link in my signature for more information.

Thanks to HarleyQuins SRK driver I now have a working e-switch firmware for this driver

I have the 20mm Rev2z board. If I am using a single cell, do I need to populate the zener pad?

Anyone know? I didn’t think it needed the zener if using with one cell. But I see that the new blf fet+1 includes a zener even when used with one cell. So IDK?

Never mind. I determined I don’t need it.

Well I build my first driver for good or for worst… Now I’m trying to sort through bistro triple down so I can flash it to this driver. This is the version optimized for two less, but I’m going to use all three channels on one xpl hi.

I know it’s late but none of my driver boards should need the Zener for single-cell.

I hope it works out for you!

Pilotdog68, under the 7135 on the top of the board is the trace that can be cut to separate the 7135s on the back from the fet on the front. The trace is small, would that small trace carry the current ok? It’s probably common, but I never thought about how much current goes through these traces til now.

Ahh man… This is hard! I have so many questions :confounded:
I just realized I need to change the pin layout in tks bistro tripledown firmware. The layouts between board versions are a bit different. Do I just start changing pin labels in the attiny.h file?

You would probably need to change a few lines in tk-attiny.h in the section about “TRIPLEDOWN_LAYOUT”.

It may help to have the attiny reference manual open, to see which pins have which internal names.

Also note that the PWM on pins 5/6 works a bit differently than on pins 2/3, so you may also need to edit the first page of main() if you move any parts from one of those groups to the other.

Ok. I wil give it a try. Thanks! :slight_smile: