D.I.Y. Illuminated tailcap

Alright, who wants to guess why there are so many pads for this one?

Or how about this one?

But, what controls it or for that matter supplies enough power to it?

ehhh not exactly.

Btw, I had to go to 0603 pads for that top one to get it to fit inside the 14mm radius.

Guess away people, I’ll explain the top one tomorrow. The bottom one should be pretty self-explanatory

I finally got mine working for the most part. It was the 100k pots. The 10k pots are working great. After the light gets heated up really good at the end of a turbo run, It will jump low-hi-low-hi-strobe-bike flasher-beacon-... But if I drop to a lower mode or shut the light off for 30-45 seconds it cools down and everything goes back to normal. I'm using 200 ohm bleeder resistors still so maybe bumping that back up to 4-600 will help?

I measured parasitic drain at .06mA, then the lowest I could get the LEDs to light up the amp draw was .16mA, then with the LEDs as bright as I could get them the meter read 1.9. I set it to around a .5 mA draw and it seems about perfect. Not too bright at night and very faint in the daytime.

Wish someone could make the LED lid up in pulse or beacon mode instead of constant on.

Presuming the attiny works ok in the tail then you’re likely to see a beacon option. It would save power to keep the attiny asleep most of the time, only wake to check voltage and pulse the led.

So many pads for a separate resistor for each led? (first board)

The question is does the Attiny work when powered through the bleeder resistor? (second board)

I’m going to guess that you have gone mad?

We might be getter off with the MMU version of the 13A to save spave. The firmware would be easy just take the hat check and add a sleep part to it

HELL YEAH PD!!!

My guess: RGB LEDs? Mini 6up Optic as a switch? Running light a.k.a Knight Rider effect? :smiley:

Would be cool if you could have a switch that switches “modes”, Battcheck as one mode and a dim breathing effect as another. I must still be dreaming.

Leds are controlled all as one from looking at the board. So no Knight Rider just yet. But if the attiny can run stable in the tail then it’s an option.

Each led has it’s own resistor. So you could do something like having many different colors. The brightness of each would be dialed in by it’s own resistor so that they could be adjusted to all be the same visual brightness. No one color overpowering the others. Would take some patience to adjust the vaules.

Yeah, my guesses weren’t meant to be that serious… BUT I’d love a Knight Rider Tailcap. 8)

Yes, that’s pretty much spot on. This is how you would configure it for that:

But the reason I jammed all of that in that shape on the top was so that you didn’t have to go to all that work of dialing in resistor values if you didn’t want to. You can also configure it this way:

Both of these configurations are basically self-contained, so it can be plopped on any stock switch and pcb that it fits on, it doesn’t require special connections on the bottom pcb. However, you can pair it with one of the potentiometer boards if you want that kind of control. For instance, you could use resistors to level the brightness of multiple different colored leds on the top board, but still easily adjust overall brightness with the pot.

Rev5.1 Oshpark Link Note: 0603 sized pads
……………………………………………………………
Rev6
This uses the normal Attiny13 so it should be able to do basically anything our programming wizards can come up with. The only question I can think of is if the Attiny can work on such a low power level, and how much power would the mcu itself actually take. With the layout I tried to keep it the same as a normal driver. The voltage divider resistors are on the same Attiny pin they usually are, and I have the LEDs connected to the usual output pins. I’m hoping that means when I get these first boards I will be able to use TK’s existing batt-check FW to do initial tests on how well the Attiny functions, then if all is well we can write some code for pulsing or beacon or whatever.

As far as the outputs, you could really do it a million different ways, so I just had to choose something for this first gen. On the top the four led pads are connected to pin6, and the fifth LED is connected to pin5. My thinking is you could have Green/blue/whatever LEDs on the main pads, constantly on/pulsing/beacon/whatever then the fifth led could be a red one that only comes on/flashing when the battery gets down to a certain point. I’m looking forward to everyone’s thoughts.

Edit: Now that I’ve explained all that, I just realized I need to re-do the layout of Rev6 so that the board will actually fit down over the switch * facepalm*

Clever lay-out with/without individual resistors!

Would the backside of the topboard need clearance where the switch is in contact with it?? (or did you just mean to say that in the edit above?)

With the bleeder resistor in series with the tail-circuitry, eating some voltage, I can imagine that the voltage divider resistor values and/or the voltage sense software need tweeking.

Yeah, I made sure to push the mcu out far enough, but I forgot about all the other stuff. I was just trying to get to bed last night. Anybody know if we really need the input capacitor and reverse-polarity diode for this application? If not I’ll just remove them and get a cleaner looking board

that’s what I’m hoping to do with TK’s batt-check before begging someone to make an actual firmware for it

Ok, Rev6 should be good to go now.

Oh boy! That is going to be soooo freakin cool. Thank you PD, you’re just awesome!

Awesome. I’ve got some projects which needed thinner boards… I wonder how thin Oshpark can go now. (the CNQG brass AA light has a very thin driver that I want to replace)

D’oh. I missed the thread for a few weeks and now the boots are all sold out. Most of my boots are 14mm though, so I suppose I can deal with no glow (or green glow) on a few 16mm lights.

That looks like a very nice design. Very easy to tweak to exactly the right level.

It’s definitely not plug-and-play, but at least it’s possible to measure the OTC and tweak the firmware accordingly. That option is only available for firmwares which include source code, though, so it’ll probably be trickier to get guppydrv to work.

It’s quite likely a heat issue as you said. Especially if the driver was one of Manker’s blf-a6 drivers or otherwise didn’t use nice X7R capacitors. You may be able to at least work around it a little by tapping extra fast when it’s hot… or by upgrading the driver hardware. I haven’t seen nearly as much heat sensitivity on RMM’s drivers.

Oh wow. That’s an interesting idea. I suppose you’d have to put the LEDs as close to the inner edge as possible though, to allow the waterproof seal to stay intact. The boot really needs flat surfaces on both sides. The 14mm boot I measured has only about 11mm as its inner diameter. Maybe 11.5mm. It seems pretty tight, but I’d definitely be interested in one which might fit.

The switches I checked appear to need a 7mm hole. So, that only leaves 2mm on either side between the hole and the inside of the boot.

If the attiny works, I’d imagine it probably needs to check voltage, blink appropriately, then go to sleep with a watchdog running. Repeat forever. Something like that, anyway. And pay extra care to go into the lowest-power mode possible.

BTW, on an earlier project, I discovered that the attiny can provide a high and a low power level on its output pins, and it can do this even while it’s asleep. So, it could potentially have a very dim steady glow which blinks brighter periodically. This is how the Ferrero Rocher driver works. IIRC, I measured it at 0.33mA while fully asleep or 0.36mA with the low glow, and it might be able to go lower. IIRC the high glow was more like 1.23mA.

0.8mm is their only thin option. It comes with 2oz (double thick) copper. oshpark 0.8mm board specs
Do you think 0.8mm is thin enough for your CNQG brass AA?

Actually, Simon is moving his store so he just marked everything as sold out until he’s back up and running.

I'm really curious how/if this Attiny-directed tailboard is coming off the ground :-)

Meanwhile, I would love a 14mm version of the 'dumb' board: six leds in a circle, one resistor, for use with a stock switch board.

I’m not sure how thin of a board I need. It’s hard to measure under a millimeter. :slight_smile:

Six LEDs seems perhaps a bit much, but I guess if it fits… why not? On a ‘dumb’ model I’d be happy with two.

However, if the attiny approach works, it’d be cool to light the tail different colors for different voltages. See the charge state at a glance. With RGB it could do something like…

  • > 4.0V: blue
  • 3.8V - 4.0V: cyan
  • 3.5V - 3.8V: green
  • 3.2V - 3.5V: yellow/orange
  • < 3.2V: red

Perhaps blink out messages in magenta or white. Or it could just cycle continuously through the rainbow. It might be a nice effect for the first 1-2 seconds after the main light turns off. :slight_smile:

With different colors, it might be desirable to have a different resistor (or pot?) for each color, to help balance the overall brightness of each.

Another option is to have four LEDs where they’re all lit while full, and they drop off one at a time as voltage gets lower.

(I’m assuming the attiny can use 4 pins to turn LEDs on and off, so up to 4 independent power channels)