There are quite a few good and name brand 18650 cells on my shelf, they need to be put to good use.
Blinkenthings are a passion of mine so I decided that I want to build a few LED lights and will start with a flashlight.
Main goals:
300 Lumen
High CRI
No PWM
2-3 Hours run time
Rechargeable through micro USB
Technical requirements:
Build in battery protection, my cells are all unprotected.
Build in charger.
At least 2 buttons and the option to use a rotary encoder.
Temperature sensing of the LED.
Low cost power LED
Very rough battery level indicator LED
Charging status LED
Use parts already available or familiar with.
Here is what I have cobbled together, it could all fit on a small 75x19mm board, one side all the logic and passives and on the other the switches, the USB port and LEDs:
http://i.imgur.com/MYPhcUD.png
LEDs:
Nichia NF2L385 since they are relatively cheap, available in warm and cold white and have a 80 CRI.
LED driver:
Texas instruments TPS61165, it uses analog dimming, has a digital interface and I already have a few of them. It has a 1A switch and should do 2.5W to 3W output power.
The LEDs have a efficiency of ~110 lumen/watt so we are roughly in the ballpark of 300 lumen output power.
Charging IC:
Microchip MCP73833, I have worked with it before, I already have a few, it has a temp sensor that monitors the cell while charging and has a 3 pin status output.
Status LEDs:
Two WS2812b since I have a ton of them.
Cell protection:
Texas instruments BQ29700, I like TI parts and it fits the bill, the cut of at 2.8V is high enough for the cells I have to stay on the safe side and it has over current protection.
This part will hopefully never actually do something, it is just a insurance in case the controller does not do its job and prevent a over discharge.
It is just two more bucks worth of parts for some peace of mind, lithium cells do tend to catch fire.
Microcontroller:
Atmel ATMega328p, already got a few, I should have the board space and I need a few pins.
I could use a AtTiny and the first draft used one, but the AtMega costs only 2 bucks more.
Same goes for the status LEDs, I could just put a single one on the controller and an extra one hardwired to the charger but if I have a big µC I might as well use it.
The WS2812b have a high standby current so they need an extra FET to switch them of.
Again, all this could be done with less parts, smaller controllers and hardwired, I like this approach more.
My plans are to get a few metal core PCBs from china to solder the LEDs to and to put a thermistor on the board along with the LEDs to get a rough over temperature protection.
The battery voltage is measured internally in the controller, the AtMega328P and measure the internal band gap reference against VCC as AREFF.
That is the rough idea of the whole thing, any thoughts?