JimmyM
Flashlight Enthusiast
This is another project following the work Alan b, wquiles, and I have been doing to build a microcontroller based PWM regulator for incandescent lights.
The original project threads and their follow-up parts.
Part 1
http://candlepowerforums.com/vb/showthread.php?t=186291
Part 2
http://candlepowerforums.com/vb/showthread.php?t=209098
Part 3
http://candlepowerforums.com/vb/showthread.php?t=220475
Alan's project
http://candlepowerforums.com/vb/showthread.php?t=218506
Will's project
http://candlepowerforums.com/vb/showthread.php?t=215806
My project for the Mag D body
http://candlepowerforums.com/vb/showthread.php?t=216160
This version will extend the capabilities of the JM-PhD-D1. It's will be larger and be targeted specifically at the 1000+ watt crowd.
Thus far I have the following design criteria in mind. Some is already working in the JM-PhD-D1.
1) 10 bit ADC (analog to digital converter) reads voltage of batteries, etc.
2) 10 bit PWM. This allows 1023 levels of regulation versus 8-bit which will give only 255.
3) 60V maximum input voltage. Combined with 10-bit regulation yeilds ~0.06V accuracy.
4) Dual on board FETs (I found an awesome one)
5) FET driver to drive the large gate capacitance of the FETs.
6) multiple inputs/outputs for buttons or LEDs.
7) Copper "buss bars" for high current paths.
A few questions are still outstanding.
In the JM-PhD-D1, the output voltage and low voltage shutdown are set by the user using onboard pots. How should these values be set in this version?
Output voltage: External pot? Up/Down buttons? Programmed in absolute maximum voltage that external adjustments can't exceed?
Low voltage safety: Programmed in value? onboard pot?
Low voltage behavior: Right now, the JM-PhD-D1 is set up to dim and pulse the light when the low voltage safety has been hit. But this version will have the capability to driver external LEDs as warnings, etc.
For lights in this power range (since it is hardly an EDC) I would suggest having the light shut off and flash an LED for the user.
I was thinking if using an RGB LED that could be programmed to do different things with different colors depending on what condition is present.
Flashing Yellow = Low Voltage
Flashing Red = Over Temp
Steady green for power on or maybe a variable level dependendent on output power. It could flicker when 100% duty has been reached.
Blue for Charging maybe? that would have to be figured out.
The chip I'm using has plenty of I/O pins.
One warning that must be adhered to... The bulb cannot be functional while programming the chip. I'll supply a jumper on the board to isolate the FET drive during programming so that the user does not have to physically disconnect the bulb itself. But there is the possibility of blowing the bulb while programming, if the battery voltage is significantly higher than what the bulb can take.
Anyway, so let's have it.
The original project threads and their follow-up parts.
Part 1
http://candlepowerforums.com/vb/showthread.php?t=186291
Part 2
http://candlepowerforums.com/vb/showthread.php?t=209098
Part 3
http://candlepowerforums.com/vb/showthread.php?t=220475
Alan's project
http://candlepowerforums.com/vb/showthread.php?t=218506
Will's project
http://candlepowerforums.com/vb/showthread.php?t=215806
My project for the Mag D body
http://candlepowerforums.com/vb/showthread.php?t=216160
This version will extend the capabilities of the JM-PhD-D1. It's will be larger and be targeted specifically at the 1000+ watt crowd.
Thus far I have the following design criteria in mind. Some is already working in the JM-PhD-D1.
1) 10 bit ADC (analog to digital converter) reads voltage of batteries, etc.
2) 10 bit PWM. This allows 1023 levels of regulation versus 8-bit which will give only 255.
3) 60V maximum input voltage. Combined with 10-bit regulation yeilds ~0.06V accuracy.
4) Dual on board FETs (I found an awesome one)
5) FET driver to drive the large gate capacitance of the FETs.
6) multiple inputs/outputs for buttons or LEDs.
7) Copper "buss bars" for high current paths.
A few questions are still outstanding.
In the JM-PhD-D1, the output voltage and low voltage shutdown are set by the user using onboard pots. How should these values be set in this version?
Output voltage: External pot? Up/Down buttons? Programmed in absolute maximum voltage that external adjustments can't exceed?
Low voltage safety: Programmed in value? onboard pot?
Low voltage behavior: Right now, the JM-PhD-D1 is set up to dim and pulse the light when the low voltage safety has been hit. But this version will have the capability to driver external LEDs as warnings, etc.
For lights in this power range (since it is hardly an EDC) I would suggest having the light shut off and flash an LED for the user.
I was thinking if using an RGB LED that could be programmed to do different things with different colors depending on what condition is present.
Flashing Yellow = Low Voltage
Flashing Red = Over Temp
Steady green for power on or maybe a variable level dependendent on output power. It could flicker when 100% duty has been reached.
Blue for Charging maybe? that would have to be figured out.
The chip I'm using has plenty of I/O pins.
One warning that must be adhered to... The bulb cannot be functional while programming the chip. I'll supply a jumper on the board to isolate the FET drive during programming so that the user does not have to physically disconnect the bulb itself. But there is the possibility of blowing the bulb while programming, if the battery voltage is significantly higher than what the bulb can take.
Anyway, so let's have it.