Custom RGBW driver (with some interesting features)

I'm not planning a dual switch firmware.

But there will be a mode where you can increase or decrease the value for each die.

The white mode got much more useful meanwhile, upated OP. I even often EDC this light in the evening indoors, just for the white mode.

Added quite some modes (edited the OP). I'm quite happy with it now. :)

I wont repeat myself but orsm.

amazing driver, those test modes are a must for all lights!

(grin..) that has become one weird and very complete driver, I think it is huge fun to build a flashlight around it. I'm in for a kit when it is ready :-)

Measured a quite old Trustfire Flame: 1.5Ah, a newer one: 2.2Ah, new Panasonic NCR18650B: 2.9Ah. Sounds plausible.

It is a 'colourful dream discharger' ;-)

What a great project.

great thinking outside the box!
A question about the pwm: if you move the light quickly in any of the colour-mixed modes, do you see a line of R/G/B dashes, or a solid colour line?
I would still love to see an alternate firmware for clicky switches, even with just the basic modes.

Thanks :)

2kHz gives a solid color line.

I honestly have no additional mode ideas for this. Sure someone will come around saying “can you change this timing to this timing?”, but you went above and beyond on this one.

how much code space did you use/how much was left?

Edit: nevermind, I have a mode question: how easy would it be to implement brightness ramping in the color cycle mode?

Brightness ramp in color cycle: not that easy, mainly due to the limited PWM resolution at low levels, i.e. at low levels there will be much less available colors. I may try anyway though.

Just ordered another Roche F6 and designed an RGBW driver board for the F6. Waiting for the fab now. I hope I didn't make an error.

Got the AMC7135s now. Message me if you want a kit (17mm board, MCU, other components, 8*AMC7135, piece of d-c-fix diffuser film).

The Roche-F6 driver has not yet arrived.

PM sent :-)

Could it be made to be used in a 4x SRK/Kung light for one each or tinted LEDs R, G, B and W?

Yes, it can drive 4 individual LEDs, too. You might want to stack some more AMC7135 then perhaps.

The boards for the Roche F6 now also arrived; I populated and tested one, it works fine.

why the f6? why not the convoy L4?

Could I possibly design a board myself, and purchase a pre-flashed MCU from you (or perhaps just purchase the firmware to load myself)?

I want to build a RGBW P60 drop-in, and I just want to cycle through the colors in a set order at a fixed brightness for each so have no real need for a momentary switch operation. The mode order I'm thinking of is White > Blue > Red > Green > B/R > G/R > back to start.

The B/R and G/R mixes will be pre-determined fixed ratios.

Possible? What MCU you are you using in the picture in the original post? I have designed a 17mm P60 driver using the Attiny84 (haven't ordered it yet nor do I have the MCU either), but it is a bit bigger than the one used in the first post.

- Matt