The transistor circuit I was referring to is not a voltage mode circuit. Its a constant current circuit where the current is determined by the voltage across the source resistor. When it equals the base-emitter voltage of the BJT it reduces the bias voltage to the MOSFET, thus regulating the current at that value. To a first order the current is unaffected by any LED or other resistor drops (other than the drop across the source resistor). Don't know why you think otherwise(?)........................
Also, if the MOSFET you're using can handle the power dissipation (Vds * Id) then you do NOT need series resistors with the LEDs, for further cost savings. They can help lower the power dissipation in the MOSFET if needed, but since you're regulating the current through the LED string they serve no other purpose. That is unlike the voltage-mode circuits mentioned by Bill and Carl which rely on the resistor drop and the regulated voltages along with the LED voltage drops to define the current... you can see how direct current regulation should be a little better.
Hi, Carl-The transistor circuit I was referring to is not a voltage mode circuit. Its a constant current circuit where the current is determined by the voltage across the source resistor. When it equals the base-emitter voltage of the BJT it reduces the bias voltage to the MOSFET, thus regulating the current at that value. To a first order the current is unaffected by any LED or other resistor drops (other than the drop across the source resistor). Don't know why you think otherwise(?).
Yes, and you could add more strings until you run out of I/O ports or power dissipation margin for the uC.Notice in the schematic I posted in 10 that there will be 2 strings operating in tandem, one connected to GP1 and another to GP2 of the micro, both of which can be on at the same time.
Actually, not quite: Q1's gate voltage is controlled by the feedback loop and drop across R5 from the +5.1V supply. You can think of the port's output FETs MP and MN as simply switches to the 5.1V supply or ground, allowing the circuit to operate or to shut it down, respectively.If your drawing would work, will Q1 need to be changed to a logic level device to respond to pulses from the MCU?
Thanks. For Q1, the FDB33N25 / FDI33N25 device can handle 30V at the gate, 250V Vds and over 20A... and it requires up to 5V Vgs for only 250uA... so it will work with your first schematic in post #10, but not with the suggestion for a simpler approach with a port for the top side switch.
Yes, that's a good target to have some headroom for variations.[The +13.8V supply] voltage supplies the required voltage to the [LED string] load. A MOSFET is a voltage driven device, meaning that current flows from ground to the load when Q1's \(V_{GS}\) requirement is met. In this case, you're telling me that \(V_{GS}\) should be near 3V.
You can look at the circuit as having a continuous negative feedback loop formed by Q1, Rsc (R4?), Q2 and R5. Q2 forms a common-emitter amplifier with R5 partly determining its gain. This is an inverting configuration... As the base voltage of Q2 goes up, the Q2 collector current increases and the collector voltage is pulled down. (I tend to think of this as a voltage-gain from the base to collector, though there is base current, as well.) The system should stabilize at an an operating point where Q2 Vbe is "just right" to pull the MOS Q1 gate down to the point where the load current gives the right Vbe... and if it pulled the gate too low, the current would drop and Vbe would be pulled down, raising the gate votlage... (it's a loop, repeat ad infinitum...)Current is regulated by Rsc. When current gets too high, current flows into the base of Q2 (a transistor and thus a current-driven device) which allows current to flow from the IC gate through R5 through Q2 to ground, which in turn lowers the voltage at the Gate of Q1, which lowers the current flowing from Drain to Source of Q1, thus keeping current relatively constant at whatever value it's set at by Rsc?
For both Q1 and Rsc (R4?), their power dissipation is given by V * I (voltage across the device * current through it). Since the current is the same and we know the votlage across Rsc is about 0.7V, the we know Q1 Vds will be about 6.5V. So the Q1 MOSFET absorbs most of the power. At 100mA and 6.5V it's 0.65W... You'll want to choose a device with headroom to this, check whether you need a heat sink and/or you could add some power resistors to take up some of the voltage and power (heat).Assuming that's correct, here are my questions:
1. If source voltage is ~13.8V and the "load" drops 6V, what happens to the other 7.2V? Is it dissipated by Q1, or Rsc?
As discussed above, Q2 always conducts. The feedback is always there, helping to stabilize the operating point. Okay, the operating point of Q2 can be roughly determined by understanding what controls the voltages across it. Fortunately for this circuit, we have two transistors with some characteristics that we know reasonably well.2. When current get's too high and Q2 starts to conduct, how do I determine how much current will flow out of the MCU I/O gate to lower the voltage at \(V_{GS}\)? An I/O pin on a MCU device typically has a limit of ~20-25mA.
See above for Q1 and Rsc. For Q2 we have our 1mA * about 3.7V (at the collector) or 3.7mW. Not much.3. How do I determine the power dissipation requirements of Q1 and Q2, and also Rsc?
No problem. Next step will be to build and/or simulate the circuit... I may put together a quick sim to check things and post later.Sorry if these questions seem relatively simple, but I need help understanding them.
I really appreciate all your help guys. I'm learning a lot and I appreciate your patience with me while I learn.
Some of your terminology is greek to me at this point. Honestly, I've never dealt with gain before so I don't have any base knowledge to be able to follow you on that. That being said, I don't know what "re" is referring to. Also, I don't know what you mean by beta (100). Sorry Scott, I know you've explained a ton and I don't mean to keep bombarding you with more questions.mixed_signal said:We want some decent gain in the Q2 amplifier, and this gain is given approximately by R5/re... and re is VT/Ie or 26mV/Ie. Ie is the emitter current, which is approximately equal to the collector current if Q2 has a decent beta (100?).
Same as above (the "greek" thing)mixed_signal said:Then re is approx. 26mV/1mA = 26 and voltage gain Av is 1800/26 = 69 (or about 37dB, not bad).
Should we be setting Rsc for 100mA when target is ~85mA? Also, metal film resistors would be my choice for their superior stability and the fact that I can get precision 1% resistors.mixed_signal said:Lastly we need to set Rsc (R4). For 0.7V and 100mA, we have R4=0.7V/0.1A=7ohm. That's low... but you can purchase precision (metal film?) resistors in this range. You can pick one reasonably close to the desired values.
This should work, but it can handle quite a bit more power than you need.In the meantime, have a look at This Power MOSFET. It seems to have several of our requirements, a Vgs of about 3V, 16V DC (20V pulsed) gate-source breakdown, Drain-Source breakdown of 55V, Rds(on) of about 18mOhms, etc etc. Plus, it is designed for my intended environment, which is a bigger plus.
We all start somewhere... It's good you want to figure these things out, though. You might want to purchase an introductory electronics text book such as Millman & Grabel or Sedra & Smith (used are about $20). I'm sure others on the board will have recommendations if interested. Most of this analysis is what you'd get in a 2nd or 3rd year electronics course in a BSEE program. (You can even find a lot of material online for these courses, usually in PowerPoint slides.)Some of your terminology is greek to me at this point...
Yes, and yes metal film resistors would be good.Should we be setting Rsc for 100mA when target is ~85mA? Also, metal film resistors would be my choice for their superior stability and the fact that I can get precision 1% resistors.
What component(s) has the greatest effect on this? In other words, what is causing the current to vary this much over the temperature range. Seeings as how 100mA is the maximum forward current of the diodes, it would be preferable to see that the current does not exceed this.mixed_signal said:- LED current varies quite a bit over temperature, from about 110mA at -40C to 80mA at 85C and down to 75mA at 100C.
This MOSFET might be more suited to my needs. At half the cost, it still maintains the operating parameters I desire.mixed_signal said:This should work, but it can handle quite a bit more power than you need.
Yes, with that circuit you'd want to consider dropping current at +85C to about 70mA to hit 100mA at -40C... or more to add margin.What component(s) has the greatest effect on this? In other words, what is causing the current to vary this much over the temperature range. Seeings as how 100mA is the maximum forward current of the diodes, it would be preferable to see that the current does not exceed this.
So the regulator power is ~6.0V minus Vref 1.25V, or 4.75 times 85mA = ~404mW. That's not too bad.You have a misconception about what a current regulator does. The whole point is that it will drop ALL the voltage in the circuit that isn't taken up by the other components.
So you have next to no drop across the MOSFET and a minimum of 6V across the LEDs. Then there is going to be 1.25V across R4 (that's inherent in the design of an LM317) and then everything else is dropped across the regulator. It looks like a worst-case of just under 6V. Power dissipation will be that voltage multiplied by the current, but with 85mA flowing, it doesn't seem scary. And R4 needs to be 1.25/.085, call it 15 Ohms. But you do need to check the thermal characteristics of an LM317--and you also need to think about what its operating temperature will really be. Does it matter if the current changes as the regulator warms up?
by Jake Hertz
by Duane Benson
by Duane Benson
by Aaron Carman