Because I want to fast recharge the e-bike LiFePO battery during a trip, I need a lightweight mobile charger. Special lightweight battery chargers for ebikes don't exist. So I made one myself. I took a Chinese battery charger (Kingpan) at which I have done modifications to the housing and the electronics. Here are the images of the Chinese battery charger (right) and the new lightweight battery charger (left)

Lightweight 800g battery charger (left), Chinese battery charger (right)
Lightweight 800g battery charger (left), Chinese battery charger (right)


The charger is able to deliver high power and current; it has happened that weak battery connectors explode or catch fire. Therefore, use battery connectors which are designed for 10A.

Charger description

Weight and dimensions

  • Kingpan battery charger dimensions: 17.2 x 9 x 6.3 cm. Weight = 1400g.
  • Lightweight battery charger dimensions: 19 x 11 x 6.1 cm. Weight = 820g.

Maximum charge current 10A

The maximum current is set by the factory at 8A. But the charger can deliver more current. You can increase the maximum current to at least 10A. I have not yet tried higher currents.

Advantages of the battery charger

  • The weight, inclusive mains cable, is reduced from 1400g to 820g.
  • The charge current is adjustable from 1A to 8A (10A) instead of a fixed charge current.
  • Integrated anti spark circuit which runs automatically.
  • Permanent turn off when the battery is fully charged.

Charging dead batteries

The charger has no safety timer built in to prevent charging dead batteries for an excessively long time. So we have to keep an eye on the time ourselves.

The battery charger circuit

By reengineering the E-400 battery charger I have created its schematic:

LiFePO4 / Li-Ion / Lead Acid ebike battery charger circuit
LiFePO4 / Li-Ion / Lead Acid ebike battery charger circuit

Self-start winding

The 20V power supply for the TL494 is generated by the SMPS itself, but at startup the TL494 has no power and thus can't start, this is a vicious circle. Still, the SMPS will start up automatically, it works as follows: Transformer T2 has a self-start winding, this forms together with Q1 and Q2, a kind of a multi-vibrator. So, the SMPS runs always at a low level, even without the TL494 and this provides the 20V supply.

Bi-color LED and fan control

During charging, the Bi-color LED is red and the fan is turned on. When the battery is full, U1 turns off charging, the fan is switched off and the LED turns green. All this is controlled by U2.
The threshold current adjust VR3 is to adjust the current level at which the red LED lights and the cooling fan will be switched on, adjust to about 0.1A.

Minimum dead time

At the end of the charge cycle, the TL494 should not be turned off completely. A minimum dead time of 3% ensures that the internal supply voltage of 20V will be maintained. Actually, the internal supply voltage drops to about 10V.

Battery charger under test

Here we see how the battery charger is tested with a bench of 12V / 100W halogen lamps:

Battery charger under test
Battery charger under test

Charger modifications

Anti spark circuit

This is a high power charger where we need special attention with connecting batteries; use this connecting sequence:

  1. Connect the battery first
  2. Connect the charger to the mains
  3. Charging
  4. Disconnect the charger from the mains and wait three seconds
  5. Disconnect the battery

Another sequence can create huge sparks which is fatal for the battery connectors; the charger wants to keep the charge current constant.

The need for the anti spark circuit

There will still be created a spark when we connect the battery to the charger, when not powered, because the big capacitor C17 short circuits the battery momentarily. Here we need a solution to avoid sparks.

Battery charger anti spark circuit principle diagram
Battery charger anti spark circuit principle diagram

Anti spark circuit with a power MOSFET used as an ideal diode
Anti spark circuit with a power MOSFET used as an ideal diode

Anti spark board
Anti spark board

Explanation of the anti spark circuit

The anti spark circuit is actually a diode at the output. When the battery is connected to the charger, when not powered, the diode is in reverse direction. No sparks can occur during connecting the battery. During charging the diode will be in forward direction.

A normal diode would dissipate about 8W at 8A. Therefore, a power MOSFET is used to create a lossless ideal diode. The IRF1405 drain to source on-resistance is typically 4.6m Ω. This is even lower than the contact resistance of a mechanical switch! See here for the ideal diode circuit explanation.

The transistors Q7, Q8 and Q9 are switching the MOSFET on when the charger is powered. Transistor Q7 is a current source and Q8 and Q9 are together a current mirror. Diode D18 and D19 ensure that the MOSFET gate voltage is always high enough even when the output voltage is 0V.

Permanently stop

Note: If the battery has a bleeding BMS inside (or any other charge only cell balancer), a permanently stop is not allowed. A bleeding BMS balances the battery pack at the end of the charge period; the charger should not be turned off.

When the battery is fully charged, the charging stops by one of the following reasons:

  • The BMS inside the battery switches off the battery pack, this is preferred.
  • Without BMS, the battery voltage becomes higher than the charger voltage limit, so the charger turns off the charge current.

However, when the charging is terminated, the battery voltage will decrease slowly so that charging starts again. This process will repeat forever:

Charger without permanent turn off
Charger without permanent turn off

If desired, the charger can be permanently turned off; this can be obtained by adding these components:

  • Resistor Rm3 creates a Schmitt trigger.
  • Cm1 and Rm4 provide a start-up delay. Charging can restart only after unplugging the AC cable.

LiFePO4 cycle life versus charge current

As we can see, the LiFePO4 battery life time can be enhanced by keeping the battery temperature low:

LiFePO4 cycle life performance versus temperature
LiFePO4 cycle life performance versus temperature

The battery will be warmed up by the charge current. The internal resistance of my 12s2p battery pack is 0.06Ω. The power dissipated in the battery pack is proportional to the square of the charging current; I² * 0.06Ω. At a charge current of 10A the battery power loss is 6W, which could heat up the battery pack up to the maximum temperature of 60°. At a charge current of 5A the battery power loss is only 1.5W, which is safer. To enhance the battery life time do not use a higher charge current as necessary.

Adjustable charge current

When we have time enough for charging, it is better to use a lower charge current than normal, therefore the charger current is made adjustable, see here:

Adjustable charge current
Adjustable charge current

Two modifications are necessary:

  • Replace VR1 by a potentiometer on the front from 100Ω.
  • Remove R8.

Voltage adjust

With VR2 the output voltage is adjusted at 43.8V by the factory. With 12 LiFePO batteries the maximum voltage is thus 3.65V per cell. But I don’t use the battery charger for the battery voltage monitoring. Here I use the BMS inside the battery package, which is more accurate. So the voltage can be adjusted with VR2 to a higher voltage of for instance 45V.


I use a plastic housing, the Hammond 1591-EGY, instead of the black alloy shell. This reduces the weight. The 1591 ESBK dimensions are 190 x 110 x 61 mm, the weight is 210g. Now the battery charger is isolated, we can use a two core mains cable. The mains cable weight is reduced from 255g to 50g.

Lightweight LiFePO4 ebike battery charger fan

Heat sinks

The E-400 aluminium housing was used as heat sink. Now we use two small heat sinks of 1mm thick aluminium instead. By the design of the ventilation openings, the air flow is such a way that both heat sinks are forced cooled by the fan. Despite the small size of the heat sinks, the cooling is sufficient. Note that the distance between the fan and the small heat sink should be 5mm.



Battery charger inside view
Battery charger inside view

Ventilation openings
Ventilation openings


Use nylon screw to mount the print to the case. To protect the inductors against vibrations they should be glued with for example PU adhesive.

Vibration protection

Glue the heavy components onto the board with PU adhesive, see picture:

Heavy components are glued onto the board with PU adhesive.
Heavy components are glued onto the board with PU adhesive.


Due to the high power of the battery charger use it never unattended. See also the disclaimer.

Converting a MeanWell S-350-48 into a LiPo Bulk Charger

Do you have any comments? Please let me know.
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.