How to build self resetting load switch in embedded circuits
In many microcontroller projects, we need to control loads such as relays, bulbs, or motors. From microcontroller side, we simply send a signal that turns the device on or off. Microcontrollers usually don’t care what’s going on further – is load switched on, or is it failing? Of course, we can build feedback and read voltage from sense resistor and switch load off in case it draws too much current. But sometimes, relying on the microcontroller to work reliably when it can be hung due to overload conditions is not accepted. We need to use passive methods of protection. Few additional discrete components can make a big difference. Anthony suggests a transistor-based overload protection circuit, which doesn’t do anything in normal conditions. But once the current exceeds the limit, it shuts off switching the MOSFET transistor immediately, thus probably saving the rest of the circuit from frying. A straightforward solution is to use NPN transistor, which base is connected to the load current sense resistor. It value is selected so that voltage drop on load threshold current would open transistor…