Using MOSFET as switch to power device

Status
Not open for further replies.

mav1234

Junior Member level 1
Joined
Aug 13, 2012
Messages
19
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Visit site
Activity points
1,407
Will my circuit work for the following goal?: When INPUT_N is HIGH (i.e. micro is not driving it and it is pulled up to 3.3V), VCC pin on device will have 24V. When Microcontroller drives INPUT_N to be LOW, VCC pin is at 0V (so device is off).

Should circuit below work as intended?

 

Your circuit involves both drawing and principle design faults.

I guess, you meaned to connect the PMOS switch between 24V and VCC pin rather than make it short the power supply, distroying itself. If so, the PMOS switch has to be controlled by a 24V tolerant open drain/open collector driver, surely not an uP GPIO pin. Usually an external transistor is utilized as level converter.
 


FvM - Would this work?

https://obrazki.elektroda.pl/2845242600_1355770773.png
 

Now you fixed the drawing error. But the pull-up has to be connected to +24V to switch the PMOS transistor off. You'll know that the µP can't drive 24V.

A possible solution is a NMOS transistor in common gate configuration. S to µP output, G to +3V3, D to PMOS gate/pull-up. Or a NPN transistor in common base with additional emitter series resistor. Or an inverting transistor level converter in common source/emitter configuration.
 

Thanks. Can I use the circuit here? https://www.electronics-tutorials.ws/transistor/tran_7.html

Based on the above link, can I make my circuit the following: **broken link removed**

 

Your latest circuit idea can only work with a NMOS FET. It involves a voltage drop at the VCC series resistor and it's disspating power when switching the device off. Don't think that it's a good idea. I was under the impression to have sketched a better solution.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…