Author Topic: Make a simple soft-shutdown circuit  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

Offline ratataxTopic starter

  • Regular Contributor
  • *
  • Posts: 134
  • Country: fr
Make a simple soft-shutdown circuit
« on: August 10, 2020, 08:56:33 am »
Hi,
I have a polarity protection circuit using a P channel mosfet that is working (Q1, R9, D28). R9 was initially connected to ground.

1044242-0

I'd like to add a switch to:
- Power on the circuit when it's pressed (no need for latching circuit, the switch keeps its position)
- When the switch is turned OFF, the MCU keeps the circuit active until it decides to shut it down by itself.



Since the switch I use is DPST, I guess one contact can be used to tell the MCU when the user wants to power down the circuit, then with the additional MOSFET force Q1 to switch off by setting MCU_POWEROFF_CONTROL to input (high impedance). I'd like to use a p-ch mosfet too for BOM simplicity.

I'm a beginner, would that work ?
« Last Edit: August 10, 2020, 09:00:17 am by ratatax »
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12986
Re: Make a simple soft-shutdown circuit
« Reply #1 on: August 10, 2020, 10:08:02 am »
That wont work.  The body diode of the reverse polarity protection MOSFET will conduct so all the power on/off circuit will do is lower the power rail by the body diode Vf drop when off.

To make it work, you need a separate P-MOSFET for power control, with its source fed by your reverse polarity protection MOSFET.
« Last Edit: August 12, 2020, 05:49:40 am by Ian.M »
 

Online ledtester

  • Super Contributor
  • ***
  • Posts: 3121
  • Country: us
Re: Make a simple soft-shutdown circuit
« Reply #2 on: August 12, 2020, 03:50:37 am »
I would look at Dave's video on a soft latching power switch for ideas:

https://youtu.be/Foc9R0dC2iI

His goal is to have a momentary switch both turn power on and off, but there's enough details of how the circuit works to see how to shut the power off via a digital signal.

 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2096
  • Country: us
Re: Make a simple soft-shutdown circuit
« Reply #3 on: August 12, 2020, 04:11:24 am »
Here's a circuit that uses a push button to power everything up, and it's an input to the processor as well.  Then the processor maintains the power and turns it off when ready.  But the polarity protection would need to be added ahead of all this.  The orientation of the protection mosfet is opposite that of the switch mosfet.

Also,  you might try to find a mosfet that will handle a GS differential of something like 20V so you wouldn't need to use zeners.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf