Circuit question?
Bits
Posts: 414
Can you think of any problems that I may have over looked? This circuit is intended to protect my circuit (not shown) against a short. The connector will bring power out to a 12Volt DC motor that will never exceed 800ma. The idea is to remove the power to the connector if the leads are shorted.
*smiles / hugs* Attachment not found.
*smiles / hugs* Attachment not found.
Comments
-Phil
The direction of current through the internal diode is correct.
-Phil
-Phil
Attachment not found.
-Phil
Attachment not found.
-Phil
Apparently I am lost so please give me a nudge. I have ran numerous configurations of this circuit only to learn that; a struggle with a circuit means you don’t know what you are doing. I have admitted that fact hours ago and in between cooking dinner and reading my old colleague text, I can find yet no definitive solutions; in an elegant fashion that is.
Here is what I think is fact…
…The comparator will compare ( + & – ) inputs and if ( - > + ) then the output is negative. If ( + > - ) then the output will be a floating output; hence the pull up resistor. That is why I selected the P-Chan mosfet. The connector under the mosfet simulates a motor and the resistor under that is the voltage reference for the comparator. If a short accrues, speaking about the motor, then the voltage practically evaporates. That is when the comparator should recognize this voltage difference and trigger the mosfet.
Why can’t I seem to get it to perform correctly? Lets ignore the “latch” suggestion you made earlier, so that I may digest some of the fundamentals.
Oh - please no solution. I want to solve this, but with a little nudge / help.
Once you've done all that, you will still have a system that oscillates on and off or -- worse -- stays somewhere in between. So try to think of a way to make the comparator output stay low once it does low, even though the current through the sense resistor goes to zero.
One thing about this circuit that bears mentioning: it has a hair trigger. If it were used to charge a large cap, for example, you'd get false shutdowns, due to the large current surges. But, since you said it would be used with a motor, which is an inductive load, the current will build gradually, so it shouldn't trip unnecessarily. But I guess we'll see.
-Phil
See attached picture:
R1 simulates the motor. This value is loosely based on the max current of motor @ ~ 800ma so using Ohms law and ignoring the voltage drop of mosfet I got a 15 Ohm. Not perfect but its in the ball park.
J1 simulates a short. If its shorted then voltage is almost zero (current will max out), otherwise the voltage is ~12V (current is ~600ma)
R2 is used as a voltage divider to feed-back into the comparator. The voltage reads uder 2 volts when the motor is not shorted.
R4 and R5 create another voltage divider to compare against. This is calculated as ~2.5 Volts using the equation ...Vout = Vin (R5 / R5 + R4)
I have replaced mosfet against my will to a N-chan as its making since now Phil - thank you.
So as of now...
This circuit works yet does not work. You are correct in that it needs to latch, but how "hum, I think". What about placing a feedback resistor between the output of the comparator and the input to the positive pin? How do I make it latch?
Attachment not found.
Aha! This part is a little tricky. Comparators have small offset voltages associated with their inputs. Even if the positive side of the comparator were grounded, it might still not pull its output low, depending on whether the offset is positive or negative. What you want to make sure of is that, when the output goes low, due to a fault, either the positive input is pulled well below the negative input, or the negative input is raised well above the positive input. Think how you might use additional resistors (and maybe a transistor, diode, zener, etc.) to make this happen. The operant word here is "biiasing."
-Phil
Phil doesn't get stumped, he gets EVEN. By digging in and helping. We need more PhiPis in this world!
Attachment not found.
erco - You are correct!
(BTW, your PNP needs a base resistor to limit IBE.)
-Phil
You're right about the MOSFET, and I missed that detail in your schematic. But if you put your load on the drain side, instead of on the source side, your gate drive only has to be higher than the source by the usual drive voltage, plus the additional 2.5V or so across the sense resistor. By using a different divider on the comparator's positive side and a lower-value sense resistor, you could lower the sense threshold voltage to a volt or less.
-Phil
The following schematic is the simplest circuit I could think of that would latch off when the load is shorted. It is a combination of a two transistor flip flop, a common method of current limiting where an extra transistor steels gate current, and lots of positive feedback.
*edit* Smile, forgot the ground symbol in my first schematic*edit*
Rs and the on resistance of the FET set the trip current. (i.e. when the combined voltage drop exceeds ~0.6 volts) Zener diode Dz limits the gate voltage of the FET and is optional at 12 volts. Rt*Ct sets the reaction speed of the circuit, this product should be much greater than the product of Rg and the FET gate capacitance otherwise the circuit is likely to latch off when powered up. A small holding current runs through the load after a short is detected. To reset the circuit, the motor will have to be disconnected, or main power will have to be turned off, or the gate of the NPN will need to be grounded, or the gate of the N-FET will need to be forced on.
Lawson
The intent is to leave the motor on with no particular control other than unplugging it from the connector.
Otherwise thanks for suggesting a different solution to my problem. Now the issue for me will be if I want to partake on your design or continue learning about the comparator. If Phil is not being board to death then I would like to continue picking his head. Ill post more soon I am still reading about op-amps.
Attachment not found.
2. Negative input of LM393 in "off" state will be 12V. LM393 is powered from 5V. I was going to express concern about this, but according to the datasheet (which you must have read):
It's always good to double-check, though.
-Phil
I did select a resistor but you raise a good point – voltage divider. I think Ill install one on the comparators positive input, a potentiometer should do the trick.
One question in closing, I am a little concerned with the 12 Volts still being available on the top side of the connector ( the + side of XM11 in the picture above). That may pose as a safety issue - albeit very low current under 12ua, hum. Whats your take on this?
*Edited, see the resistor R1 It is a pull up when the short is active.
It all depends on whether there's a chance of it getting shorted to ground. For example, in automotive applications, switching is typically done on the high-side because the chassis is at ground potential. A short to ground with low-side switching could mean either the load being activated all the time or a catastrophic short. Since you didn't mention what your application was, and since low-side switching is easier in a lot of ways, I nudged you in that direction. However, now that you've completed your "exercise", there are fault-tolerant high-side switches out there that are designed specifically for the automotive market. A romp through DigiKey's parametric search pages should prove enlightening.
-Phil
I'd check the turn-on behavior of your most recent circuit, I suspect it will start up in the tripped state. (due to the gate capacitance of your FET) Adding Rt and Ct to your circuit will avoid this problem while allowing the substitution of less tolerant comparators.
Marty
Lawson makes a good point about the MOSFET's gate capacitance. On startup, it will be a race for the pullup to charge the gate before the load passes enough voltage to trip the comparator. Adding a low-pass RC filter to the comparator's negative input would forestall a power-on trip, but it would also increase the trip time for an actual short. A stiffer pullup on the comparator output could also help, as would as a MOSFET with a lower gate threshold and/or lower gate capacitance. I believe you indicated that you breadboarded the circuit and that it works, but it always helps to plan for the worst case and include some extra margins to accommodate them.
-Phil
I believe it has everything I need, high side switching using a P-chan mosfet sorry Phil , but this solves the issue of voltage being present on the connector during a short, its simplistic and elegant using only a hand full of parts – cost is minimal, the comparator has an adjustable input allowing for some flexibility when selecting the feedback resistor.
- Also notice how low the sense resistor is now.
Let me have it people what is your take on this?
Attachment not found.