Author

Topic: Building a Better Flashlight (Read 741 times)

hero member
Activity: 2534
Merit: 623
May 01, 2021, 03:28:39 PM
#34
Any further updates to report sidehack?
newbie
Activity: 1
Merit: 0
October 29, 2020, 01:53:41 PM
#33
Wow, I'd like to see a sketch of it, if you don't mind. About 3-4 years ago I also used to build different electric tools/toys, it was like a hobby to me. But a self made flashlight sounds really amazing. My grandma always used to ask me to buy her little flashlights, about every month, I couldn't understand what was she doing to them that they always got broken. But this summer I decided to find a great one for her, so here it is https://www.amazon.com/Vont-Flashlight-Flashlights-Water-resistant-Accessories/dp/B089T8HDBV. Its price is really reasonable for its quality.
legendary
Activity: 3808
Merit: 7912
September 10, 2020, 02:23:57 PM
#32
Hey, Homer! Long time no whatever!

I have test boards in hand, but I'm basically completely booked up for the next two weeks juggling both work and some volunteer duties for a local nonprofit so while I may be close to final version on my three different flashlight models, I may not have working prototypes to demo until week after next. It depends largely on how much I gotta do this weekend, and then I'm basically out from next Wednesday through the Monday after.

I'll try and get something together but the next several days will be a lot of prep work for next week's even I gotta manage. Maybe I can post some teaser pics or something, since I have PCBs and sample housings.

 Yeah I've been hanging out mostly in the Wall Observer thread but I still check up on you occasionally. 
Sounds like you're as busy as ever and doing volunteer work as well?!  That's amazing.  I should take a lesson  Embarrassed

 I would love to have one of these flashlights whenever they're ready.  No rush until after the equinox and then it gets more urgent by the day.  Grin
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
September 10, 2020, 11:57:44 AM
#31
Hey, Homer! Long time no whatever!

I have test boards in hand, but I'm basically completely booked up for the next two weeks juggling both work and some volunteer duties for a local nonprofit so while I may be close to final version on my three different flashlight models, I may not have working prototypes to demo until week after next. It depends largely on how much I gotta do this weekend, and then I'm basically out from next Wednesday through the Monday after.

I'll try and get something together but the next several days will be a lot of prep work for next week's even I gotta manage. Maybe I can post some teaser pics or something, since I have PCBs and sample housings.
legendary
Activity: 3808
Merit: 7912
September 10, 2020, 10:10:02 AM
#30
When flashlight? Smiley


############.########..##.....##.####.##.......########..####.##....##..######.........###.......########..########.########.########.########.########.....########.##..........###.....######..##.....##.##.......####..######...##.....##.########.#########..#######. +----
############.##.....##.##.....##..##..##.......##.....##..##..###...##.##....##.......##.##......##.....##.##..........##.......##....##.......##.....##....##.......##.........##.##...##....##.##.....##.##........##..##....##..##.....##....##....###########...##### +++++++
############.##.....##.##.....##..##..##.......##.....##..##..####..##.##............##...##.....##.....##.##..........##.......##....##.......##.....##....##.......##........##...##..##.......##.....##.##........##..##........##.....##....##....############...####+++++++++
############.########..##.....##..##..##.......##.....##..##..##.##.##.##...####....##.....##....########..######......##.......##....######...########.....######...##.......##.....##..######..#########.##........##..##...####.#########....##....############...####+++++++++
############.##.....##.##.....##..##..##.......##.....##..##..##..####.##....##.....#########....##.....##.##..........##.......##....##.......##...##......##.......##.......#########.......##.##.....##.##........##..##....##..##.....##....##....############...####+++++++++
############.##.....##.##.....##..##..##.......##.....##..##..##...###.##....##.....##.....##....##.....##.##..........##.......##....##.......##....##.....##.......##.......##.....##.##....##.##.....##.##........##..##....##..##.....##....##....###########...##### +++++++
############.########...#######..####.########.########..####.##....##..######......##.....##....########..########....##.......##....########.##.....##....##.......########.##.....##..######..##.....##.########.####..######...##.....##....##....#########..#######. +----
SIDEHACK

Code:
[center][table]
[tr][td][font=monospace][size=2pt]
[color=#000]############.########..##.....##.####.##.......########..####.##....##..######.........###.......########..########.########.########.########.########.....########.##..........###.....######..##.....##.##.......####..######...##.....##.########.#########..#######.[/color][color=#fff] [/color][color=#feffff] [/color][color=#fcffff] [/color][color=#fbffff] [/color][color=#f9ffff]+[/color][color=#f8ffff]----[/color]
[color=#022]############.##.....##.##.....##..##..##.......##.....##..##..###...##.##....##.......##.##......##.....##.##..........##.......##....##.......##.....##....##.......##.........##.##...##....##.##.....##.##........##..##....##..##.....##....##....###########...#####[/color][color=#fff] [/color][color=#feffff] [/color][color=#fcffff]+[/color][color=#fbffff]+[/color][color=#f9ffff]+[/color][color=#f8ffff]++++[/color]
[color=#099]############.##.....##.##.....##..##..##.......##.....##..##..####..##.##............##...##.....##.....##.##..........##.......##....##.......##.....##....##.......##........##...##..##.......##.....##.##........##..##........##.....##....##....############...####[/color][color=#fff]+[/color][color=#feffff]+[/color][color=#fcffff]+[/color][color=#fbffff]+[/color][color=#f9ffff]+[/color][color=#f8ffff]++++[/color]
[color=#0aa]############.########..##.....##..##..##.......##.....##..##..##.##.##.##...####....##.....##....########..######......##.......##....######...########.....######...##.......##.....##..######..#########.##........##..##...####.#########....##....############...####[/color][color=#fff]+[/color][color=#feffff]+[/color][color=#fcffff]+[/color][color=#fbffff]+[/color][color=#f9ffff]+[/color][color=#f8ffff]++++[/color]
[color=#099]############.##.....##.##.....##..##..##.......##.....##..##..##..####.##....##.....#########....##.....##.##..........##.......##....##.......##...##......##.......##.......#########.......##.##.....##.##........##..##....##..##.....##....##....############...####[/color][color=#fff]+[/color][color=#feffff]+[/color][color=#fcffff]+[/color][color=#fbffff]+[/color][color=#f9ffff]+[/color][color=#f8ffff]++++[/color]
[color=#022]############.##.....##.##.....##..##..##.......##.....##..##..##...###.##....##.....##.....##....##.....##.##..........##.......##....##.......##....##.....##.......##.......##.....##.##....##.##.....##.##........##..##....##..##.....##....##....###########...#####[/color][color=#fff] [/color][color=#feffff] [/color][color=#fcffff]+[/color][color=#fbffff]+[/color][color=#f9ffff]+[/color][color=#f8ffff]++++[/color]
[color=#000]############.########...#######..####.########.########..####.##....##..######......##.....##....########..########....##.......##....########.##.....##....##.......########.##.....##..######..##.....##.########.####..######...##.....##....##....#########..#######.[/color][color=#fff] [/color][color=#feffff] [/color][color=#fcffff] [/color][color=#fbffff] [/color][color=#f9ffff]+[/color][color=#f8ffff]----[/color]
[/size][/font][/td][td][url=https://bitcointalksearch.org/topic/building-a-better-flashlight-5228245][font=verdana][i][size=14pt][b][color=#fff]S[/color][color=#fcffff]I[/color][color=#f9ffff]D[/color][color=#f6ffff]E[/color][color=#f3ffff]H[/color][color=#f0ffff]A[/color][color=#e8ffff]C[/color][color=#eff]K[/color][/b][/size][/i][/font][/url][/td]
[/tr]
[/table][/center]

 In support of local talent this signature is free for anyone to use.

 edit: changed font to monospace for better compatibility.

legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
September 03, 2020, 12:36:35 PM
#29
 Cool
Sounds like these will be quite nice!
Also expanded on earlier reply Wink
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
September 03, 2020, 12:20:22 PM
#28
Right, I knew your technology had a hand in it. Glad to see you're getting due credit. Been saying it for years but one of these days I'm gonna get up there and visit your shop.

Also my prototype boards should be landing in the US tonight, so I'll probably have them in hand first of next week. Depending how business does in the near term, I may end up taking them to Kickstarter for initial batch funding.
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
September 03, 2020, 12:09:00 PM
#27
Heh heh!
Actually no, quite the opposite. The substrates (heat spreading ceramic parts of them under the emitters) of around 90% of all high power LED's produced in the world are produced in Taiwan under our patents on the laser drilling process used to put vias in them.  Grin

My company SLI introduced the process to the world in late 2007. In 2006 I was in Taiwan at THEIL (Tong Hsing Electronics Ltd.) installing some new equipment when Management requested I sit in on a strategy meeting with one of their customers (LumiLEDS). LL wanted to know if there was a way to make smaller vias in ceramic to increase emitter density on the chips. I though for a couple seconds then answered with a qualified, "yeeesssss, but I need to do some testing on an idea for doing it..."

You could almost hear the wallets snapping open....
When I got back home we got dev money from THEIL and the rest is history  Smiley
https://www.synchronlaser.com/processing-ceramic-substrates-2/
https://www.synchronlaser.com/fiber-lasers-scribing-of-ceramic-wafers/

Just so happens that industrial fiber lasers were starting to enter the market with enough power and near perfect Gaussian beam shape that could do the trick provided there was a way around the problem of the fiber laser wavelength (same as YAG) having very poor absorption in Al2O3 and AlN. As in over 85% of the energy just passing through with little to no effect on the materials. I solved that and pattern density increased 3-6x, SLI got the patent on it, in return for their funding development we gave THEIL exclusive rights to use it for 2 years with systems we built for them (to-date now over 45 systems at THEIL alone). Since they also provide services for Cree and all the other major LED mfgrs in the world within a year HP LED's were popping up everywhere with prices dropping like a stone. Smiley
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
September 03, 2020, 09:02:12 AM
#26
Just playing with CREE so far. Why, did one of 'em steal your patents?
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
September 03, 2020, 08:44:13 AM
#25
Query: Who's LED's are you going to use? Cree? LumiLEDs? Osram? Nichia?
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
August 26, 2020, 11:50:03 PM
#24
Got some prototype PCBs on order should be here in a couple weeks. I'll need to do a bit more firmware dev to integrate heat sensors on a couple of them.

3A buck-boost, 3V LED, Lithium-Ion, zoom-lense housing
5A boost, 6V LED, Lithium-Ion, fixed reflector housing
400mA buck-boost, 2xAAA alkaline, penlight housing

I started with plain buck regulators but the main problem with them is when your battery bottoms out so does your light, since the bottom end of the battery's charge curve is below the forward voltage of the LED. With a buck-boost you don't get that, because it can take a high voltage down or a low voltage up. The boost driver into a 6V LED also doesn't have this problem, and if it works as expected it's gonna be a hot beast.
legendary
Activity: 4326
Merit: 8899
'The right to privacy matters'
July 24, 2020, 01:30:09 PM
#23
 sounds good to me. i would want at least one.
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
July 24, 2020, 11:19:14 AM
#22
I'm about to finally catch up on manufacturing tasks so next week will have plenty of time for design. Maybe I'll get ahead a bit on this and a couple other projects.
hero member
Activity: 2534
Merit: 623
July 24, 2020, 10:19:23 AM
#21
Got a boost driver that'll put up about 30 watts, and I need to test the buck-boost because I like the idea of the light not getting dimmer as the battery goes down. Got a zoom housing that's pretty nice, and I have samples of a fixed reflector housing that should be good for handling heat but I haven't put a light into it yet. Been too hot here to do more than the bare minimum of work lately but I finally got AC in my workroom yesterday so progress should pick up.

All sounding like its going well. Its hot here but no where near as hot as it is for you I imagine. Looking forward to seeing a prototype  Smiley
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
July 22, 2020, 01:51:46 PM
#20
Got a boost driver that'll put up about 30 watts, and I need to test the buck-boost because I like the idea of the light not getting dimmer as the battery goes down. Got a zoom housing that's pretty nice, and I have samples of a fixed reflector housing that should be good for handling heat but I haven't put a light into it yet. Been too hot here to do more than the bare minimum of work lately but I finally got AC in my workroom yesterday so progress should pick up.
hero member
Activity: 2534
Merit: 623
July 22, 2020, 01:46:04 PM
#19
Any updates?
legendary
Activity: 1775
Merit: 1032
Value will be measured in sats
May 28, 2020, 07:16:26 AM
#18
interest is piqued...please reserve some for me!!!
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
May 20, 2020, 09:29:15 PM
#17
Oh uh, hey guys. So I finally got some test PCBs in today. Took 2 days to get from China to the depot and 5 days to get from the depot to me. Not impressed.

Anyway, technically, with this I have completed the original scope of the project. I have working right now a zoomable flashlight with a 2A buck driver, meaning it can put up around 720 lumen on max. Prototypes of the driver were tested stable down to 0.5% output, which means around 5 lumen. I have programmed it for 3 brightness modes though the hardware will support anywhere from 1 to 128. It blinks at you when battery voltage goes below 2.8 and turns off below 2.7 so it won't drain your cell. There are no strobe modes though I suppose they're technically still possible.

I have a test board for a 3A version (1000 lumen) that I'll be assembling tomorrow, and I'll also be working on a temperature sensor to make sure that it doesn't overheat the LED or driver while on max. The hardware's in place for testing this, but no code yet.

The scope of the project has grown and I'm also working on some other drivers, high-current buck, buck-boost and boost. Turns out there are multi-die LEDs which run 6V or 12V nominal instead of 3V, and they kick many butts. Additionally even in the hobby/enthusiast space there aren't a lot of decent buck-boost drivers (which have the benefit of maintaining constant brightness even under low battery conditions) with good current handling. Also my cousin and his mechanic friends want a better penlight. So now instead of making one flashlight it turns out I'm making like 8.

All I got right now is black aluminum shells to work with. Nothing rubberized, sorry.

Nothing's quite ready to be mass-produced yet but I'll keep you guys posted. I want to get some of these in local hands for field-testing in the next couple days if I can, but I haven't even started coding the temp sensor checks yet.
legendary
Activity: 3906
Merit: 1373
May 13, 2020, 05:25:40 AM
#16
Well. We have Bud Light. Why not Flash Light.     Grin
member
Activity: 79
Merit: 36
HODL. Patience.
May 12, 2020, 11:54:43 AM
#15
Sidehack,

I'm interested.  I'm especially interested if there's a rubberized back end for dental safety.  I often end up with a torch in mouth while I need both hands for a job (when it's quick enough not to justify running for the light-bar.)  I absolutely know I'm not alone in this.  I have been known to dunk my torches in plastic "tool dip" or paint them with liquid electrical "tape."  And I've emptied containers of each when allowing my co-workers to do the same with their torches.
hero member
Activity: 2534
Merit: 623
April 22, 2020, 02:59:34 PM
#14
Any developments?
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
March 06, 2020, 11:30:33 PM
#13
The company that makes the above light also makes a similar one with zoom. I've got samples on order, should arrive in a week and some so I'll be able to play around with 'em. Prices are pretty reasonable.
legendary
Activity: 966
Merit: 1003
March 06, 2020, 08:20:17 PM
#12
I'm not at the right computer for now but Amazon has some "Dive" lights, I think for underwater photography maybe, but they have USB chargers included. I only bring that up because they look pretty generic and readily available if your light has the same battery. It might give you some info on other Bodies available that you just didn't know were out there too. I'll try to add a picture later.
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
March 06, 2020, 03:31:33 PM
#11

Thinking about picking up some of these for the basic non-zoom version. It looks to fit my liking better than the 501b body I already have to play with; this one takes the same kind of drop-in but doesn't have any of those annoying sharp edges.



One issue with that drop-in module is heat dissipation. The flashlight body is aluminum so should be good for heat conduction, but because of how things are mounted internally there isn't a lot of contact for conduction. In the old incandescent-bulb flashlights, this was a feature, but for LEDs it becomes a problem. With that in mind, it'd be difficult slash potentially unsafe to operate at the top end of the power range without making some modifications to increase heat transfer into the flashlight body. Something like a 500lm/1.3A setting I imagine should be fine, but the 2.5A top-end won't be practical for more than a minute or so.

The microcontroller has an internal temperature sensor so I might code in a thermal limiter that ramps down current or turns it off completely above certain temperature thresholds.

Also, prototype PCBs have finally shipped and should be here on Monday so I can start proper testing.
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
February 26, 2020, 09:54:05 PM
#10
Might have to do some work with a buck-boost driver instead of just a straight buck driver, at some point. Since the LED and current resistor are expected to drop around 3.2V at full current, but the battery can run down to around 2.7V, a buck-boost driver would be able to keep the LED voltage high (maintaining brightness) even when the battery voltage slid low. I'm reading up on a part from Texas Instruments that might do the trick and would still allow 2.5A of LED current at the top end, though it might have to be reduced to 2A at the bottom of the battery charge since input currents to the driver are limited and Pin=Pout. But since the micro is capable of monitoring battery voltage, that could be implemented in software, and then we could set a minimum cell voltage where the LED is disabled. In that way it'd behave like modern lithium-battery power tools, where they work and work and then just turn off instead of winding down. Total system efficiency would be a few percent worse than a straight buck driver, but it'd allow better utilization of the bottom end of the discharge cycle and maintain brightness longer.

Course, going that route would mean completely redesigning and prototyping everything. Software would require minimal changes, but hardware would be completely different. The pin pitch on the chip is too small for me to readily prototype with the tools I have available right now but it's within the realm of what we've done here before, I just have to find the rest of the equipment.
legendary
Activity: 2254
Merit: 2419
EIN: 82-3893490
February 26, 2020, 12:15:03 PM
#9
put me in line to purchase as well
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
February 26, 2020, 10:52:39 AM
#8
I'd rather send you something to play with first and test it out, see if it's any good. The first proper prototype PCBs won't be here until next week and I have only one of each housing so it could be a couple months before there's a purchasable product. This thread is describing what I've already done and what I intend to do, and a request for comments to try and make it better.
legendary
Activity: 4326
Merit: 8899
'The right to privacy matters'
February 26, 2020, 10:41:05 AM
#7
2 low powered and 1 high powered.

Let me know  when to pay for them.
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
February 25, 2020, 10:07:42 PM
#6
Electric cars do it because the average trip distance is only 30 miles so reduced capacity is usually acceptable but the sooner you have to replace the cell, the worse because they're very expensive. Additionally, the last 15-20% of charge takes about as much time as the first 80% so squeezing in the last drops will double your wait time.

I considered a partial charger versus full charger and figured that, for something like a single-cell flashlight, people would tend to prioritize battery life over battery life-cycle. Replacement cells are not expensive, but everyone hates a dead battery in a flashlight.

I had already considered putting, say, a jumper or switch on the charger to change modes from full charge to 85% charge for people who would rather extend battery cycle life. Since current and voltage are software-controlled it'd be pretty easy to implement and add almost zero hardware cost.

Thanks for the input. I was just about to say, I tried to make the writeup as thorough as possible but nothing is set in stone. I came here to talk about it specifically to get that kind of feedback, and see if there was anything I could do better.
legendary
Activity: 2030
Merit: 1569
CLEAN non GPL infringing code made in Rust lang
February 25, 2020, 09:10:01 PM
#5
It's also been mentioned that I should build a battery charger. That'll be something to look into for sure, but I make no guarantees. Very likely what I would do is a USB-powered charger. A lot of USB ports now are good for 2A output, and everyone and their mothers have those little plug-in USB power adapters that probably also run 2A. I build a pretty solid USB hub that can put up 3A per port without trouble. 1A is a good charge rate for a single 18650 cell, which means a 2A-capable USB port could source a 2-cell charger. The charge curve for a lithium cell is pretty easy; constant current until peak voltage (4.2V) is reached, and then constant voltage until current flow is 3% of initial charge rate, then stop. No floating charge required, since that can actually damage the cells. Overvoltage can't be tolerated, so that 4.2V peak has to be measured within 1%, ideally even tighter. And add in a temperature sensor to make sure the cell doesn't overheat, which can indicate damage.

The same kind of current-measurement and dynamic voltage adjustment system used in the flashlight driver could also be used in the battery charger. Start low and ramp up the voltage to reach 1A continuous, then maintain 1A continuous until it reaches 4.2V, at which point the calibration switches to keying off voltage with current monitoring continuing in the background. Turn off the power entirely once current drops to 30mA. Poll a temp sensor on the I2C bus frequently to check for overheat conditions and lock it down when safety thresholds are hit.

Remember that if you charge your Li-ion batteries to about 80% they have a longer lifetime than if they were charged at full capacity. So consider that for your charging strategy. Many laptops and even certain electric car brand use this trick so the batteries can be used more years.
member
Activity: 178
Merit: 12
February 25, 2020, 10:58:40 AM
#4
I would take one powerful one.  thanks for your hard work on projects.
legendary
Activity: 3822
Merit: 2703
Evil beware: We have waffles!
February 25, 2020, 09:22:45 AM
#3
Love it and definitely interested in a couple as well, no strobe but just lo/hi modes.
legendary
Activity: 2254
Merit: 2419
EIN: 82-3893490
February 24, 2020, 11:13:15 PM
#2
I'll take 2 but without any type of low mode or strobe. just full on zerobs High
legendary
Activity: 3374
Merit: 1859
Curmudgeonly hardware guy
February 24, 2020, 09:34:12 PM
#1
Hey guys. I'm sidehack. Haven't ventured over here before; I have lived in the Hardware section for the last seven years or so.

My small electronics company is probably known for being one of the first to make server supply breakout boards, and one of the last to still make non-industrial miners. All my products are designed and built in-house in USA, including parts population, metalwork and machining.

I spent some time end of last year thinking about LED lighting and cooked up some custom fixtures for the new shop I spent last summer and fall building. That got me thinking about an old and largely unsatisfied desire for a durable non-stupid LED flashlight. Around 2012 or 2013 I spent a fair amount of time trying to find a single-cell 18650 flashlight, pocket-sized (which means no big goofy head), with about 200lm nominal output, simple modeless on/off, in a durable aluminum housing, with adjustable optics and no jagged edges. Found exactly one product that met all my specs so I bought two of them. One burned out and the other was stolen. I have found a few places somewhere in the world listing it for sale but I'm not convinced new ones have been manufactured since about 2013.



I had, before finding that one, settled on a different light that met most of my specs. Single-cell 18650, pocket-sized, about 200lm nominal output, simple modeless on/off, in a durable aluminum housing, but a fixed reflector and jagged edges on the head. Still, that's pretty good.



My biggest beefs with the mass of already-available "tactical" form-factor LED flashlights center around all the annoying strobe multi-modes and that they've always got those sharp-cornered protrusions around the lens which are just asking to scratch every available surface and wear holes in your pocket fabric. I really REALLY don't want either of these features and yet they appear to be essential.

So fast-forward 8 years. None of the electronics still work entirely but I have the complete housings. I also have a lot more design experience and some electronics assembly equipment. Maybe instead of spending time trying to find a flashlight that someone else built which meets my apparently very unique requirements, I should build it myself. And then perfect it and make it available to anyone else who also wants one.

Regarding housings

The first (and better) housing, the C84, the "pill" is aluminum and threads into the main housing, meaning lots of solid contact for heat dispersal. The head is lensed and slides to adjust the beam width. It's pretty nice. Unfortunately I have yet to locate anything even comfortably equivalent on the market so acquiring something equivalent might have to be a custom job.

The second light, the 501b, has a fixed orange-peel parabolic reflector for a fixed-spread beam. The "pill" is brass and mounts on beefy spring contacts which are great for grounding but not as great for shunting heat into the case. I already know I can get those housings and the mechanical innards in bulk from a Chinese manufacturer for not a bad price. They're kind of a "generic" design apparently because I've seen a lot of different brandings of the same thing. Chinese sourcing is less than ideal since I prefer to do as much American business as I can, but this project is just getting started.

If possible I would like to request custom machining of the 501b lens end to make it a smooth ring and get rid of the half-dozen fingers. Something like that might be negotiated for batch orders of sufficient size. I already know they'll do custom logos.

Regarding electroncs

The standard driver board for LED flashlights is a 17mm circle that fits inside a milled billet, aluminum for the C84 and brass in the 501b. Bottom side of the board will have a spring contact for the hot terminal of the battery; bare contacts or castellated holes around the circumference conduct ground to the billet, which grounds through the button to the battery's negative terminal. The LED is mounted on a separate board adhered to the other side of the billet, which serves as a heatsink. Wires run from the LED disc through a hole drilled in the billet and are soldered onto contacts on the driver board.

I currently have two LED options to play with: CREE XM-L2 U2 5mm lensed LEDs which can handle a practical maximum of 3A and put out in the neighborhood of 400lm per amp (300lm/700mA, 500lm/1250mA, 840lm/2500mA) and some baby CREE JB3030 3mm unlensed with a practical max of 240mA and peak around 120lm.

I have a functional prototype DC buck driver which can work from the 3-4.2V output of a single lithium-ion 18650 cell. The driver will be built to handle 2.5A through the LED, and internally uses a PFET for the high-side switch which means 100% duty cycle low-dropout mode when the battery is at the bottom end of discharge - that is, the light will get dimmer rather than turning off when the battery starts to die.

The driver is designed with a microcontroller to continuously monitor LED current draw and adjust the buck driver's output voltage to reach and maintain target current (which means target brightness) as conditions like battery voltage and LED temperature change. The software is coded to do a soft-start rampup which brings the light from "off" to full brightness in no more than about 50 milliseconds. What this means is the brightness can be set in software, by giving the calibration routine a particular current setpoint to target for. The flashlight, then, can be configured for different brightness from around 50lm (brightness can be unstable/jittery at low currents due to circuit optimization for high currents) to 800lm without modifying hardware.

The microcontroller is wired such that it can monitor battery voltage and turn the light off completely if the battery reaches a certain state of depletion, preventing harmful deep discharges. I have not done this; just noting that it's possible.

Regarding modes

Now I've stated pretty clearly that I hate multi-mode. I don't want all the BS of accidentally cycling into some dumbass strobe when I'm trying to look at something. Just want on and off.

However, multi-mode wouldn't be found in almost literally 100% of existing products if it wasn't, for some reason, a popular feature.

The driver I'm building is designed, therefore, to allow multi-mode capability in software.

Mode switching happens by pressing the power button quickly. What this does is actually power-cycle the LED driver circuit. There is no extra contact for half-presses or anything, it's just a quick power-cycle because the switch doesn't latch off. The driver circuit is designed to notice a short-duration cycle and, upon returning to power, advance to the next mode. My driver will be capable of doing this, and I'll probably write a basic program to implement cycling through brightness modes (2-mode low/high) and one with a strobe routine to test out setting up timers and the best means of rapidly cycling the LED.

I will probably put the mode-switch timeout as pretty low, down around 500 milliseconds. This should reduce the chances of accidentally jumping into another mode by turning the flashlight fully off and then turning it back on very quickly. There will be no long-term memory; once the timeout has expired, it'll default to initial mode. And since it's a software thing, this timeout will be adjustable.

Regarding software

You'll notice a common theme here: the hardware is built to be robust, with a lot of the flexibility and feature set implemented in software. This is deliberate. It would allow me to easily customize batches of flashlights for particular orders, and allow me to "stock" generic option sets as different sub-models by simply flashing the driver board with the right hex file before testing and packing. But it also, quite deliberately, puts a lot of power in the hands of the end user. Makes the product quite hackable without having to do any "pencil-modding" or desoldering.

In fact, I'm even putting test points on the underside of the driver board which can be wired to a PICKit for updating the firmware in-system.

I have only implemented software on a test board using a similar microcontroller so I can't guarantee anything at this time, but the driver board is currently designed to use a PIC12F1571 microcontroller. Current is monitored using an ADC measuring the output of a low-side current sense amplifier and adjusted by changing a PWM output's duty cycle. Right now current is measured and calibrated every 2 milliseconds.

Options

A bit of discussion on this subject happened in another thread elsewhere, so since it was way off topic we all decided it'd be better to start a specific thread just for flashlight development discussion. Over there the idea came up to make one specifically with a low brightness for use indoors at night. With that in mind, I figured out a fairly simple way to modify my driver board, by replacing only 2 or 3 parts, to operate at 0-250mA instead of 0-2500mA, adjust the current sense amplifier's gain, and operate using the smaller LED for a peak-120lm flashlight without any changes to software.

So probably what I'd do is stock both versions of the driver board, and LED discs for both diodes, and then both the 501b and eventually C84-equivalent housing. With a few different stock softwares to flash, I can offer a large variety of stock "models".

501b housing, XML2:
ZeroBS High (300lm, on/off)
SomeBS High (150lm, 300lm, 2-mode)
AllBS High (150lm, 300lm, strobe, 3-mode)

501b housing, JB3030:
ZeroBS Low (50lm, on/off)
SomeBS Low (50lm, 100lm, 2-mode)
AllBS Low (50lm, 100lm, strobe, 3-mode)

C84 housing, XML2:
ZeroBS Zoom High (300lm, on/off)
SomeBS Zoom High (150lm, 300lm, 2-mode)
AllBS Zoom High (150lm, 300lm, strobe 3-mode)

C84 housing, JB3030:
ZeroBS Zoom Low (50lm, on/off)
SomeBS Zoom Low (50lm, 100lm, 2-mode)
AllBS Zoom Low (50lm, 100lm, strobe, 3-mode)


The names indicate the level of BS you'll have to put up with in stock configuration. I'll always prefer the ZeroBS, though SomeBS high/low modeswitching is not unattractive. Might consider, if demand is high enough, doing a MaxBS version comparable to readily available 5-mode lights, which implement three brightness modes, strobe and SOS.

Charging

It's also been mentioned that I should build a battery charger. That'll be something to look into for sure, but I make no guarantees. Very likely what I would do is a USB-powered charger. A lot of USB ports now are good for 2A output, and everyone and their mothers have those little plug-in USB power adapters that probably also run 2A. I build a pretty solid USB hub that can put up 3A per port without trouble. 1A is a good charge rate for a single 18650 cell, which means a 2A-capable USB port could source a 2-cell charger. The charge curve for a lithium cell is pretty easy; constant current until peak voltage (4.2V) is reached, and then constant voltage until current flow is 3% of initial charge rate, then stop. No floating charge required, since that can actually damage the cells. Overvoltage can't be tolerated, so that 4.2V peak has to be measured within 1%, ideally even tighter. And add in a temperature sensor to make sure the cell doesn't overheat, which can indicate damage.

The same kind of current-measurement and dynamic voltage adjustment system used in the flashlight driver could also be used in the battery charger. Start low and ramp up the voltage to reach 1A continuous, then maintain 1A continuous until it reaches 4.2V, at which point the calibration switches to keying off voltage with current monitoring continuing in the background. Turn off the power entirely once current drops to 30mA. Poll a temp sensor on the I2C bus frequently to check for overheat conditions and lock it down when safety thresholds are hit.

The electronics and the program aren't really a problem. The fun will be designing the housing to put it in and making sure it's something I have the tools to efficiently manufacture in bulk.

end of presentation


So, that's most of what I've got and a couple tidbits of other people's input already bundled up and considered. Anyone else got any input?
Jump to: