Electronic – P channel mosfet battery charging/power selection circuit help


I am a hobbyist and new to this, but I am not sure if my circuit it right. The goal is:

  1. To power the rest of the circuit from a DC source, a USB, or a battery, in that order.
  2. When there is no DC or USB, then the battery should supply the circuit.
  3. When there is DC or USB, also charge the battery (MAX1551/1555).
  4. Avoid a large voltage drop from the battery of USB when those are powering the circuit.

So, my main question is if I am using MOSFETs correctly here: My intention with Q1 is to only allow the battery to supply current when the DC or USB are off. Since they will either be 0V or ~+5V, then when either are on, the V should be greater than Vgs and the switch will be open. When those sources are off, Vgs is greater and the switch will be closed allowing the battery to power the circuit. Is that correct?

Q2 is to allow the USB to power the circuit only if the DC power is off. I was planning to set the output of the DC-DC voltage converter to be such that after the schottky diode it would be a little higher than the max USB level.

Is this diagram correct?

Thanks in advance!
enter image description here

Best Answer

There are still more than a few issues with your circuit.

  • Those MOSFETs still don't make any sense. You need to pull the gate down (to ground) in order to turn them on, but you just tied their gates to their drains (via the resistors R3 and R4), making absolutely sure that they will never conduct.
  • The decoupling caps are a good idea, but they need to be in parallel with the component they are decoupling. You put them in series... No that doesn't work. The regulator needs a >4.7μF decoupling capacitor both on the input and output (read the datasheet), you should not just remove them.
  • The MAX1555 /CHG output is open drain, meaning that it can only sink current and not source it. Your LED would never light up.
  • Why would you care about the voltage drop when being powered by USB or DC power? LiPo cells produce 4.2V when full and 3V when empty, so your circuit needs to work at 3V anyway. It's not a problem if the voltage drop steals 1.4V from five volts, as you still get 3.6V.
  • The regulator you have chosen can only dissipate 1.5W of heat, and to do even that it needs a large copper fill around itself to act as a heatsink. This limits your DC input voltage to about 9V.

This is my quick take on the circuit.


simulate this circuit – Schematic created using CircuitLab

Decoupling capacitors have been added.
The battery switch MOSFET has been made functional; When neither VUSB or DC+ are present R1 pulls the gate of the MOSFET to ground. This turns it on, allowing the LiPo to discharge into Vout without a diode voltage drop. C3 is there not only for decoupling but also for bridging the gap in the output when the circuit transitions between internal and external power. When DC+ or VUSB is provided, the MOSFET turns off as the gate voltage goes positive.
The CHG (charge) LED illuminates when /CHG is low (when the battery is charging) and shuts down when it is full.
The EXT (external power) LED illuminates when either VUSB or DC+ is present, turning off when on battery power.

The MOSFET needs to be a P-channel, enhancement mode power MOSFET with an adeguate current rating for the load and a treshold voltage (AKA Vgs) of -2.5V or better (closer to zero), or it won't turn on.

Keep in mind that LiPo batteries die if the cell voltage falls below 3V: you need to make sure that this never happens.