Oh wow Djozz…
Nice djozz!!
cnqualitygoods.com is down and out - get a MySQL error every time - same ol dependable RIC . Is there another web address for his site? Cant' recall - fancyflashlights.com doesn't work either. Any other possible source for the transparent button caps?
This is a link to Rics other shop.
Thanks, order them. Hope this goes well - RIC is still being RIC, not responsive if anything is wrong, not on BLF in 3 weeks, see here: https://budgetlightforum.com/t/-/33403. Think he got my orders right about 1/2 the time, either wrong or missing parts - I gave up asking him to correct it.
@djozz: Have a look at these circuits: http://www.talkingelectronics.com/projects/200TrCcts/101-200TrCcts.html#22
There are a few variations where you have separate red [, orange] and green LEDs, but I think the best solution would be the one which uses a dual red and green LED. Orange can be obtained from enabling both red and green phosphors.
I think this LED (or similar) will work nicely:
http://www.kingbrightusa.com/product.asp?catalog_name=LED&product_id=APHBM2012SURKZGC
http://www.digikey.com/product-search/en?site=us;lang=en;Keywords=APHBM2012SURKCGKC
Do you think it's possible to have a nice green -> orange -> red battery indicator in the tailcap? Some modifications to the circuit will be required, but I think it will take this project to a whole new level
Thanks, I'll dive a bit into that :-) My first impression is that those electronics forum circuits do not care much about space, and space is not abundant on a switchboard to state it mildly. I think the way to get a voltage indication that actually measures voltage done is to find a tiny dedicated li-ion voltage indicator chip with outputs for several indicator leds, and then ask PD68 politely to make a switch board that accomodates the circuitry for that.
I think we could possibly fit this in but may have to have a stacked board.
Or we have some of the components sitting under the switch?
it could fit but there's trouble with the need of the bleeder resistor on the driver, it can not become too low or there's too much current bypassing driver+led when the flashlight is switched on. Or would that resistor not matter for how this works?
If you guys figure something out, I’d be glad to do the work in Eagle.
Thanks! I think challenges are to find out how the bleeder resistor fits into this and how this circuit translates into (available) tiny SMD components, and I'm not an electronics geek. I understand resistors, leds and diodes, but which (sot23?) transistor to get I have no clue, anyone?
I was fooling around with This idea back in 2012 but didn’t know about eagle then and it’s still a space hog unless we can find a smaller quad opamp but it would give up to 4 - step accuracy.
Edit- Post 23 of that thread has a hand drawn layout for reference. It uses a sot-89 voltage regulator for chip power and a sequence of voltage dividers for the comparators.
This is the chip I bought for this.
Here is the circuit mentioned in the linked post. The resistor values can be adjusted for different voltage steps and I think I did those calculations already.
Maybe This SO chip could work.
They look like they will take up a lot of space. Ideally we need to get it to fit under the switch between the two pads.
(edit: it seems like the minimum is 6V for this to work)
I found this, with no further link to the chip:
Drop the buzzer and use smd parts that could work, could sit the chip under the switch and use a 4 layer board for the traces.
Ahhh 6v min… maybe not.
I'm not too fond to put a chip under the switch. In 9 out ten flashlight builds that gives space problems in the tail section...
I'm again looking at the simple circuit with the BC547 transistor. I was looking for that transistor in SOT23 package and could not find it, but the BC847 in SOT23 is easily available: I know squad about transistors, would that one work too?
edit: no answer, so I looked it up myself :tired: : BC847 is the SMD variant of BC547 so I'm good here. I ordered three on ebay to play with. I'm doubtfull if the bleeder resistor messes the circuitry up though.
I wouldn’t think so maybe it would squew the voltage reading but I doubt by much, we can always adjust the other resistors
Thanks, that gives some hope! When the transistors are there I will make an 'air' circuitry with all components in place, if that works well enough we can ask pd68 to do his Eagle-magic on the tiny board :-)
BTW, I ordered the BC847 in SOT-323 package, so even smaller than SOT-23, we may just need that for the real board.
I now realise we have this circuit:
..already quite well covered with the latest version of the board:
its only 3 more components to squeeze on.