I've made a simple charger out of 4 TP4056 modules and 4 18650 sockets. These modules have overcharge, undercharge and overcurrent protection included, but I also want to know how simple it would be to make it also reverse-polarity protected since that condition is much more likely as the above 3 combined, given that I'll swap batteries often and am bound to be mistaken once in a while. I'll also likely build some chargers for other people for their needs and this could be a nice feature. Could I just use the MOSFET trick to make reverse polarity protection for the charger or is there something I'm missing?

  • \$\begingroup\$ The "mosfet trick" would only work if you put the mosfet on the battery. Doesn't work if they're on the charger since the charger will always be the "correct polarity." \$\endgroup\$
    – Dave
    Jan 28, 2016 at 12:35
  • \$\begingroup\$ Then the diode is pointing the wrong way, you will need a bit of a circuit to make it work correctly. \$\endgroup\$ Jan 28, 2016 at 12:43
  • \$\begingroup\$ I have successfully done this on several projects so far. I found this video at hackaday, which explains very nicely how it works. \$\endgroup\$ Sep 28, 2016 at 16:14

1 Answer 1


The p-mosfet trick won't work as both sides supply voltage. You could use a latching circuit (P-mosfet + npn bjt) but it would only work for the first battery you charge, unless you power cycle the circuit every time you change the battery. A further improvement would be to use a microcontroller to check the battery status before turning on a MOSFET, but at that point it is getting stupidly complex.

The cheapest and easiest method would be to use a diode and a fuse as protection.


simulate this circuit – Schematic created using CircuitLab

If you were to add the battery in backwards, the diode would protect the charger IC from the bulk of the current while the fuse would disconnect the battery. Don't use a 1N4148, (they are low current signal diodes), I forgot to remove the name. A >2A schottky diode would be ideal.

The latching circuit previously mentioned would look like this:


simulate this circuit

When initially given power, R1 pulls the gate of the MOSFET close to the source, keeping the mosfet from turning on. Once a lithium cell to be charged is added, current from the cell flows trough R2 to the base of Q1, turning it on. Q1 then pulls the gate of the MOSFET low turning it on. If the battery is connected backwards Q1 never turns on and the MOSFET never conducts. D1 is there to protect the base of Q1 from the negative voltage of the battery.

The problem is that even after removing the cell the MOSFET stays on, allowing Q1 to stay on and keep pulling the gate low in a positive feedback loop.

Now that I think of it, the latching circuit would work after all: If the MOSFET is on when adding a cell the wrong way, the charger IC goes into short circuit protection which causes the charger output voltage to fall below the threshold voltage of the MOSFET switching it off, and interrupting current flow.

  • 1
    \$\begingroup\$ To the OP: This is probably your best bet. You can probably find a PTC to use instead of a fuse. There is probably a way to get a MOSFET to do the job, but it will not be easy. I think if you draw it out with the MOSFET, and showing the body diode, you will see why. \$\endgroup\$
    – user57037
    Jan 28, 2016 at 21:23
  • \$\begingroup\$ Thank you for the suggestion! Could you give me a link or tell me about the latching circuit you're speaking about? I'd be very interested to see how it works. \$\endgroup\$ Jan 29, 2016 at 17:20
  • \$\begingroup\$ Thank you very much! I'll research how the circuit works, as well as probably use it in my device. I guess I also have a charger module that can be destroyed, so I can test if the last circuit works - for science =) \$\endgroup\$ Feb 6, 2016 at 16:29
  • \$\begingroup\$ Jms's solution works. I tested it with a 30V/1.1A RUEF110 (thanks mkeith) PTC fuse, and it does the trick, the tp4056 does not even get hot. By the way im using a random diode i found. Sometimes the cheapest and the most simple solution is the best! Only drawback - it will take a few seconds after the short for the ptc to recover though. \$\endgroup\$ Sep 28, 2016 at 16:02
  • \$\begingroup\$ Just a note; the 2nd circuit does not protect the battery if the charger is connected in reversed. I highly recommend that a fuse is also added for the 2nd circuit to protect the battery for such scenario. \$\endgroup\$
    – kaosad
    Apr 2 at 1:38

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