logo elektroda
logo elektroda
X
logo elektroda

Switching LM317 Output ON/OFF Using NPN Transistor Between R2 and GND—Is It Safe?

66 10
ADVERTISEMENT
  • #1 21678357
    Rocket Ron
    Anonymous  
  • ADVERTISEMENT
  • #2 21678358
    Alan Winstanley
    Anonymous  
  • ADVERTISEMENT
  • #3 21678359
    Rocket Ron
    Anonymous  
  • #4 21678360
    Aubrey Kagan
    Anonymous  
  • ADVERTISEMENT
  • #5 21678361
    David Ashton
    Anonymous  
  • #6 21678362
    Mike P OKeeffe
    Anonymous  
  • #7 21678363
    Rocket Ron
    Anonymous  
  • #8 21678364
    Mike P OKeeffe
    Anonymous  
  • ADVERTISEMENT
  • #9 21678365
    David Ashton
    Anonymous  
  • #10 21678366
    Rocket Ron
    Anonymous  
  • #11 21678367
    Rocket Ron
    Anonymous  

Topic summary

The discussion addresses the feasibility and safety of switching LM317 adjustable voltage regulator outputs ON/OFF using an NPN transistor placed in series between the lower resistor (R2) and ground. It is clarified that removing or switching the resistor to ground disrupts the LM317's voltage regulation, effectively turning it into a current limiter, which is not a safe or effective method for ON/OFF control. Instead, using a P-channel MOSFET (PFET) in series with the LM317 input voltage (Vin) combined with an NPN transistor to control the PFET gate is recommended for switching the regulator ON/OFF. This approach ensures the LM317 remains properly biased and avoids startup issues or damage. The discussion also highlights that multiple LM317 regulators can be used to provide separate fixed voltages (5V, 2.5V, 1.25V) each switched independently by microcontroller I/O pins controlling PFETs. Additional points include the impracticality of digitally switching the adjust pin resistor for voltage selection, the potential use of alternative linear regulators with enable pins (e.g., LP2951), and the importance of load isolation to prevent interaction between outputs. Schottky diodes on outputs are generally unnecessary unless compensating for voltage drops or protecting against backfeed when outputs are paralleled, which is discouraged. Suggestions for alternative solutions include using DACs with op-amp buffers for precise multi-level voltages. Overall, the recommended and safe method for ON/OFF control of LM317 outputs is switching the input supply line with PFETs controlled by microcontroller-driven NPN or N-channel transistors, rather than switching the resistor to ground.
Summary generated by the language model.
ADVERTISEMENT