Sparking when connecting the battery: the role of the controller's capacitors

The spark that occurs when you connect a large battery to an electric scooter is not a defect; it's the charging, in a fraction of a second, of the capacitors located at the input of the controller. These capacitors are essential for the controller's operation. The spark itself, however, is not desirable: over time, it can corrode the connectors and damage the capacitors. Here's what they do, why they cause this spark, and how to minimize it.

The essentials

  • The input capacitors act as a buffer for the controller: they provide the current spikes that the battery and its cables may not be able to deliver.
  • When connected, they are initially empty, drawing a massive current that is only limited by the circuit's resistors. This is what causes the spark.
  • Each spark damages the contact surface of the connector, which will then heat up even further.
  • The capacitors also heat up during operation due to the ripple current, and they degrade over time due to the heat.
  • Longer battery cables increase the workload on the capacitors.

Why does a controller need capacitors?

The controller does not draw a steady current from the battery. Its transistors switch tens of thousands of times per second: with each switch, the current demanded at the input abruptly jumps from one value to another. This pulsed current is called ripple current.

The cables coming from the battery have inductance: they resist rapid changes in current. Without a local reservoir, each switching event would cause the voltage at the transistor terminals to drop or spike, with peaks that could damage them. The capacitors, soldered as close as possible to the transistor bridge, provide these impulses and absorb the backflow. From the battery's perspective, the current demand becomes almost continuous.

This guide complements our tour inside a motor controller, which showcases the transistor bridge and its other components.

What causes a capacitor to overheat and degrade

A real capacitor is not perfect; it exhibits a small internal resistance, known as the Equivalent Series Resistance (ESR). The ripple current flowing through it generates heat, which is proportional to the square of that current. Therefore, datasheets specify, in addition to the capacitance and voltage, the maximum allowable ripple current.

In scooter controllers, you typically find aluminum electrolytic capacitors, sometimes paired with ceramic or film capacitors. Electrolytic capacitors contain a liquid electrolyte that slowly evaporates, especially when they are hot. Over time, their capacitance decreases and their ESR (Equivalent Series Resistance) increases: they filter less effectively and generate more heat, creating a vicious cycle.

Three factors determine their lifespan:

  • `Temperature: A capacitor glued to a hot heatsink or enclosed without ventilation ages much faster;`
  • Ripple current, which depends on the current demanded by the motor and how the controller regulates it;
  • Voltage margin: A capacitor used close to its nominal voltage, especially when subjected to braking surges, is more likely to fail than a capacitor that is significantly oversized.

A capacitor nearing the end of its lifespan may swell (the top becoming rounded), leak, or simply allow more ripple to pass through, which can result in random malfunctions and damage to the transistors.

The spark when connecting, explained

When the controller is at rest and disconnected, the capacitors are discharged. The moment the battery connector makes contact, they are directly connected to a source of several tens of volts. An empty capacitor, in the initial instant, behaves almost like a short circuit.

The inrush current is then limited only by the resistances of the circuit: those of the cells, the BMS (Battery Management System), the cables, the connector, and the capacitors themselves. In a powerful battery, all these resistances are low, precisely to allow a large amount of current to flow. Therefore, the inrush current reaches very high values for a very short time, and an electric arc forms between the two parts of the connector as they approach each other.

The higher the battery voltage and the greater the total capacitance of the controller, the stronger the spark. A scooter with two controllers combines the capacitors from both.

Why do sparks damage the connectors?

An electric arc locally melts the metal. With each connection, it leaves small craters and black deposits on the contact surfaces of the connector. The actual contact area decreases, the connector's resistance increases, and it heats up more under high current. After numerous connections, a corroded and blackened battery connector can heat up to the point where its plastic softens.

The current surge can also stress the capacitors and, in some configurations, trigger the short-circuit protection of the BMS (Battery Management System), which then disconnects the battery when it is plugged in. Our guide on power cables and connectors explains how to choose and maintain these connectors, and our guide on pre-charging and spark prevention presents solutions to eliminate the arc.

Cable length and ripple

The longer the cables between the battery and the controller, the greater their inductance, and the more the capacitors have to handle the current peaks on their own. An external battery connected by a long cable, or a controller located far from the battery, therefore puts more strain on these capacitors. Best practices:

  • Minimize the length of the battery cables as much as possible
  • Keep the positive and negative cables side by side, or even twisted together, to reduce the loop inductance
  • When extending the wiring is unavoidable, consult with a specialist. Some configurations add capacity as close as possible to the controller.

Regarding the motor, the phase cables do not pass through the capacitors, but they must remain tight and well-connected. This is the role of properly sized phase connectors, such as the 8mm AMASS bullets that we install on our MHS, MHT, XHS, and XHT motors.

Workshop tip

A spark when connecting a powerful battery is normal; a blackened connector is not. Connect the battery with a swift, decisive motion, never fumbling, and replace the pair of connectors as soon as they show any signs of damage. On a machine that is frequently connected and disconnected, consider using a pre-charge circuit or a well-placed circuit breaker to avoid handling the battery connector directly.

Frequently Asked Questions

Is the spark that occurs during connection dangerous?

For the rider, it rarely happens, but when it does, it's usually brief. For the equipment, it can wear out connectors and, over time, degrade capacitors. On a very high-voltage battery, it can also trigger the BMS protection or partially weld a contact.

Why isn't there a spark when I disconnect it?

When disconnecting, the controller, when at rest, consumes almost nothing, and the capacitors are already fully charged: there is no significant current surge to interrupt. This is different if you disconnect while riding, which should never be done.

How can you tell if the capacitors in a controller are worn out?

A bulging capacitor, one that is leaking, or one with a discolored casing should be replaced. In the absence of any visible signs, only a measurement of capacitance and ESR (Equivalent Series Resistance) using a suitable device will reveal the problem. Random failures under high current loads in older controllers can also be an indicator.

Does adding capacitors improve a controller?

Not necessarily. Adding capacitors far from the transistor bridge is of little use and can actually increase sparking when connecting. This can be helpful when the battery cables are very long, but it's a modification that should be done carefully and with a clear understanding of the potential consequences.