lastdance
Advanced Member level 4
I am still pleasantly surprised this thing worked using a LM339, which is a comparator. Could someone explain how does it work to regulate the current?
A comparator has way too much gain for this purpose.
I guess what you wanted to do is not current regulation, but an electronic circuit breaker when current limit is exceeded. If that's what you want, and you built in enough hysteresis in your comparator, or you put a latch there, your circuit could work.
Use sub-logic FET like Si4864 from Vishay, otherwise, you do not get the kind of Ron. Ron is a function of gate overdrive. Go to the website and search for FETs with low threshold.
Your GND terminal of the system has to be the output of your power supply, so that you could refer your 5V generator, LM339 and its potential divider to GND.
This way you could totally shut off your FET by pulling its gate down by LM339.
A comparator has way too much gain for this purpose.
I guess what you wanted to do is not current regulation, but an electronic circuit breaker when current limit is exceeded. If that's what you want, and you built in enough hysteresis in your comparator, or you put a latch there, your circuit could work.
Use sub-logic FET like Si4864 from Vishay, otherwise, you do not get the kind of Ron. Ron is a function of gate overdrive. Go to the website and search for FETs with low threshold.
Your GND terminal of the system has to be the output of your power supply, so that you could refer your 5V generator, LM339 and its potential divider to GND.
This way you could totally shut off your FET by pulling its gate down by LM339.