Electronic – Switching an LM317BTG on/off using a microcontroller

ldoswitchestransistors

We're using an LM317BTG to power a 4V modem (the LM is connected to a 12V battery). The modem can produce peak currents of up to 2A during transmission bursts. Under normal operations, the modem consumes anywhere between 100mA and 300mA.

We would like to be able to switch the LM317BTG on/off using a microcontroller (digital IOs rated at 5V/couple of mA).

I'm thinking a transistor of some sorts could be used here? I've already used NPN bipolar junction transistor (BJT) (like the 2N2222) to switch low-power devices on/off but I guess I need something more powerful than that?

Do I need to use a MOSFET, or is a Darlington also possible? And how should I hook it up in the circuit? I would like to use a digital IO of the microcontroller (0V or 5V) to switch the LM317BGT on/off.

Best Answer

If you pull the ADJ pin to ground with a transistor you'll reduce the output voltage to 1.25V. If that's good enough, all you need is a transistor like a 2N2222 with a base resistor (note that the base will draw current to turn the regulator off). It will still draw current, but it should be reduced quite a bit (the regulator with resistors will draw at least 5mA itself and the MODEM will probably draw some current at 1.25V).

If you want to shut it down entirely you could use a MOSFET high-side switch, which would involve a P-channel MOSFET and a transistor (BJT or MOSFET) to level shift the logic signal. It would not draw current other than leakage when off. If two transistors, a few resistors and a zener sounds too complicated for you, you could use a MOSFET SSR. The input is an LED so you would need to add a resistor to the output of your micro to limit the current. It should be rated for the peak current of your MOEM.

However, at 100-300mA continuous, I suggest you bin the LM317 and use a switching regulator with an ON/OFF pin. That would reduce the OFF current to tens of uA or better, and the efficiency when operating would be greatly increased. The regulator (such as LM2576) will typically have a logic-level compatible control pin so you can connect it directly to the micro.

There also exist linear regulators with ON/OFF inputs if you'd prefer.