Very very clean work! :naughty:
So what is the new formula for calculating what the CC will be with your new circuit, since if I use Dan's original one .5 / .05 = 10 amps!? Or am I missing something?
The answer is already in the post above with the photos -
- " My previous lights have used a small signal transistor across the sense resistor to regulate the MOSFET, which requires a .5 volt drop across the sense resistor – not very efficient. Here the small signal transistor is replaced with a comparator, so my sense resistor can be very low ohm - .05 ohm 1% is used. The voltage drop across this resistor is only .045 volts with the maximum 850ma current flow – much more efficient."
Mike
Hey jason, it is good to hear you are trying out the circuit! My partial schematic's 2.5 volt reference is the output of a LM336-2.5 precision reference diode, that I include in most every design that requires a comparator.
As the supply voltage varies, whether that is a battery's declining voltage, or some ripple or noise in a AC-to-DC power supply, the voltage divider that your potentiometer is a part of is delivering that variance to the comparator, causing the drift and error you are seeing.
You need to include the super-simple LM336-2.5. It is a 3-pin device that looks like a small signal transistor. It connects to ground, and to the supply voltage through a 5K ohm resistor, and provides a very stable 2.5 volt output. Your potentiometer and resistor then provides a stable reference voltage to the comparator. The part is 31 cents each at Future Electronics.
The thermal portion of the circuit was asked about also. Really, I must get the whole schematic drawn out and share it. It is on my to-do list!
Cheers,
Jeff
Very neat and tidy build that looks like it works well too I've another suggestion instead for drill bit lube with aluminium http://www.glasswarepro.com/2219300...t--+CRL+Tube+Wax.aspx?sgd=330d316d316d319d309
Using wax is far less messy when trying to do nice clean builds to the standard you are, it really helps stop clogging of your tools and extends life. You can also get your ally sheet with a very thin plastic film too if you pay a bit extra, simply pull it off when you have finished working on it and theres no need to burnish it afterwards
I'd also be very interested in a whole schematic of your circuit!
You need to include the super-simple LM336-2.5. It is a 3-pin device that looks like a small signal transistor. It connects to ground, and to the supply voltage through a 5K ohm resistor, and provides a very stable 2.5 volt output.
Hey jason, it is good to hear you are trying out the circuit! My partial schematic's 2.5 volt reference is the output of a LM336-2.5 precision reference diode, that I include in most every design that requires a comparator.
As the supply voltage varies, whether that is a battery's declining voltage, or some ripple or noise in a AC-to-DC power supply, the voltage divider that your potentiometer is a part of is delivering that variance to the comparator, causing the drift and error you are seeing.
You need to include the super-simple LM336-2.5. It is a 3-pin device that looks like a small signal transistor. It connects to ground, and to the supply voltage through a 5K ohm resistor, and provides a very stable 2.5 volt output. Your potentiometer and resistor then provides a stable reference voltage to the comparator. The part is 31 cents each at Future Electronics.
The thermal portion of the circuit was asked about also. Really, I must get the whole schematic drawn out and share it. It is on my to-do list!
Cheers,
Jeff
I am still getting a dimming/brightening when I touch the POT or the heatsink on the led, or any of the other parts of the circuit?
If you're getting dimming/brightening then yoru circuit is oscillating and your body capacitance is causing it to change.
Try connecting a 0.001uF (1000pF) between the output of the 339 and the - input.
Try shortening wiring and keeping the opamp input wires away from those carrying high current.
You need a single-earthpoint to stop oscillations.
Sorry to leave the schematic yet undone, so many things to do it seems.
Anyway thanks MikeAusC for your insightful observations. I did go over the spec sheet for the LM393 part, and saw that it does have an open-collector output, which is required here. It also operates well with low voltage inputs, which is also needed. So the part should be fine for this regulator. Jason, I wonder about the second comparator on this IC. If it is not being used, you should tie it's inputs to ground, so they are not open to making an oscillator. The output of the unused comparator can remain unconnected. Also, what is the value of the sense resistor you are using? And, do you have the 100K pull-up resistor on the output of the comparator?