1
\$\begingroup\$

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

\$\endgroup\$
8
  • \$\begingroup\$ I can't tell what your connectors are. I see what I would infer is an input jack but it isn't labeled. Not sure what the USB is. Also, USB is a DC source, so why two DC sources? \$\endgroup\$
    – mcmiln
    Feb 1, 2016 at 22:13
  • \$\begingroup\$ Those MOSFETs are doing absolutely nothing at all. They will never conduct as the gate is just tied to the source. That schematic is also fairly confusingly drawn. How to draw better schematics \$\endgroup\$
    – jms
    Feb 1, 2016 at 22:16
  • \$\begingroup\$ "LIPO" is a 1 cell 3.7V battery. "VCC" is the USB. The barrel connector would be from a wall connector. E.g., for use perhaps when not connected to a computer (yes, I suppose I could use a USB wall adapter and simplify it). \$\endgroup\$
    – jrowe88
    Feb 1, 2016 at 22:20
  • \$\begingroup\$ What is the voltage range of that DC source? Is it really 5-35 V? If it is, you are not going to get away with a linear regulator: The worst case charging current is 340 mA, and the charger chip accepts up to 7 V. Dropping 340 mA 35 V down to 350 mA 7 V produces 9.5 W of heat. \$\endgroup\$
    – jms
    Feb 1, 2016 at 22:29
  • \$\begingroup\$ Thanks; 5-12V would probably be more accurate--I just want it tolerant to typical barrel adapters. Regarding the MOSFETs, if the source and drain are switched, would that be correct? I must have misunderstood the reference that I was looking at. \$\endgroup\$
    – jrowe88
    Feb 1, 2016 at 22:53

1 Answer 1

4
\$\begingroup\$

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.

schematic

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.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Thank you for the education; I really appreciate it! I did a little more looking around and it seems like there are chips that have switched regulators, battery charging, power path management and battery voltage under protection. Thanks again, though! \$\endgroup\$
    – jrowe88
    Feb 2, 2016 at 19:57
  • \$\begingroup\$ my apartment has automatic generator backup (yay!), but the power goes down for around 10s before it powers up. A similar thing happens when the power comes back online. on a few days there is large number of power cuts and comebacks. i use a direct fibre router which takes around 3-4mins to startup and so i wanted a circuit like this. the router uses 12v power, so i plan to use non-rechargeable of small lead-acid battery (no usb). thanks for this circuit. \$\endgroup\$
    – wolfram77
    Jun 19, 2018 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.