To safely charge a large electrolytic filter capacitor or a supercapacitor without tripping bench power supplies, melting breadboard traces, or venting the dielectric, you must limit inrush current. While a simple series resistor works for microfarad-range signal caps, the default pick for high-capacitance energy storage (1F to 100F) is a Constant Current (CC) capacitor charging circuit built around an LM317T linear regulator. This topology forces a linear voltage ramp, guarantees a predictable charge time, and hard-limits fault current.

The Inrush Problem: Why Direct Connection Fails

The fundamental law governing a capacitor is I = C(dv/dt). When you connect an uncharged capacitor directly to a voltage source, the initial voltage difference is maximum, and the time step (dt) approaches zero. Mathematically, the initial current spikes toward infinity. In reality, the current is limited only by the parasitic resistance of your wires, the power supply's internal impedance, and the capacitor's Equivalent Series Resistance (ESR).

For a 10F supercapacitor connected to a 5V bench supply with 0.1Ω of total loop resistance, the initial inrush is 5V / 0.1Ω = 50A. This will instantly trip the overcurrent protection on most bench supplies, weld relay contacts, or cause the capacitor's internal foil to delaminate. You need a dedicated charging topology to control dv/dt.

Topology Face-Off: Series Resistor vs. Constant Current

Why choose an active constant current source over a passive series resistor? The answer lies in the discharge curve and thermal efficiency.

Criteria Passive Series Resistor (RC) Active Constant Current (CC)
Charge Profile Exponential decay (fast start, infinitely slow end) Linear voltage ramp (constant speed from 0V to target)
Time to 99% Charge 5 × τ (where τ = R × C) Exactly (C × ΔV) / I
Thermal Waste High initial heat in resistor, drops off Constant heat dissipation in the pass element
Short-Circuit Protection Limited by R value (can still be dangerously high) Hard-clamped to the programmed current limit

For supercapacitors and large inverter bus banks, the exponential tail of an RC circuit means the final 10% of the charge takes an impractical amount of time. A CC topology charges the capacitor at a steady, predictable rate until the target voltage is reached, making it the superior choice for energy-dense storage.

The LM317 Constant Current Topology

The TI LM317 is traditionally used as a variable voltage regulator, but its internal architecture maintains a strict 1.25V reference between the OUT and ADJ pins. By placing a sense resistor between these pins, we convert it into a precision current sink/source.

Node Labels & Routing

  • Vin (Source Node): Raw DC input from your bench supply or battery.
  • Vout (Pass Element Output): The LM317 output pin; feeds the sense resistor.
  • Vadj (Feedback Node): The LM317 adjust pin; connects to the capacitor positive terminal.
  • Vcap (Load Node): The positive terminal of the capacitor being charged.
  • GND (Common): The negative terminal of the source and the capacitor.

Behavior Table: Element Variation Effects

What Changes? Effect on Circuit Behavior
Increase Vin Charge current remains identical. Power dissipated as heat in the LM317 increases linearly. Dropout margin improves.
Increase Rsense Charge current decreases (I = 1.25 / R). Total charge time increases proportionally.
Increase C (Load) Charge current remains identical. The linear voltage ramp takes longer to reach the target voltage.
Vcap approaches Vin Once Vcap reaches Vin minus the LM317 dropout voltage (~2.5V), regulation fails and current tapers to zero.

Design Walkthrough: 5V 10F Supercapacitor Charger

Let’s design a bench charger for a 10F, 5.4V supercapacitor module (like the Vishay 196 series or equivalent Eaton module). Our goal is to charge it from 0V to 4.5V safely in under a minute.

⚠️ Supercapacitor Safety Callout: A "5V" supercapacitor module actually contains two 2.5V or 2.7V cells in series with internal balancing FETs. Never charge a 5V module to exactly 5.0V or higher; if the internal balancer fails, one cell will exceed its absolute maximum rating and vent electrolyte. Always terminate your charge at 4.5V to maintain a safety margin.

1. Select the Charge Current

We want a 45-second charge time. Using the constant current time formula: t = (C × ΔV) / I.
Rearranging for I: I = (10F × 4.5V) / 45s = 1.0 Amps.

2. Calculate the Sense Resistor

The LM317 maintains 1.25V across the sense resistor.
Rsense = 1.25V / 1.0A = 1.25Ω.
Power dissipation in the resistor: P = I² × R = 1² × 1.25 = 1.25W.
Concrete Pick: Use a 1.25Ω 2W metal film resistor (e.g., Yageo or Vishay). Do not use a standard 0.25W carbon film resistor; it will overheat and drift, altering your charge current.

3. Determine Input Voltage (Vin)

The LM317 requires a dropout voltage of roughly 2.5V to maintain regulation, plus the 1.25V dropped across the sense resistor.
Minimum Vin = Vcap(max) + Vdropout + Vsense
Minimum Vin = 4.5V + 2.5V + 1.25V = 8.25V.
Concrete Pick: Set your bench power supply to 9.0V DC with a current limit of 1.5A.

4. Protection Diode

When the power supply is turned off, the charged capacitor will back-feed into the LM317's output pin, potentially destroying the internal junctions. Place a 1N5819 Schottky diode across the LM317 (Anode to Vout, Cathode to Vin) to provide a safe discharge path.

Failure Modes: What Breaks at the Extremes?

A robust design requires understanding how the topology behaves when components fail or are miswired. Here is the failure-mode contrast for the LM317 CC topology:

  • Shorting Vcap to GND (Dead Short): The LM317 acts as a hard current limiter. It will output exactly 1.0A. However, the voltage drop across the LM317 is now the full 9.0V from the source. Power dissipation = 9.0V × 1.0A = 9.0W. Result: The LM317 will rapidly hit thermal shutdown (around 165°C junction temp) unless mounted to a TO-220 heatsink.
  • Opening Vcap (Capacitor Disconnected): With no load, the feedback loop cannot pull the ADJ pin down. Vout simply rises to Vin minus the dropout voltage. Result: No damage. The circuit sits idle.
  • Shorting Rsense (Resistor Bypassed): The ADJ pin is tied directly to Vout. The LM317 loses current regulation and acts as a low-resistance pass element, dumping maximum source current into the capacitor. Result: Catastrophic inrush. The capacitor will likely vent, and the power supply will trip or burn out.
  • Mounting LM317 to a Grounded Heatsink without an Isolator: The TO-220 metal tab on an LM317 is internally connected to Vout, not GND. Result: You instantly short the charging output to ground through the heatsink, destroying the regulator and blowing the source fuse.

Breadboard Testing & Verification Steps

Do not connect the supercapacitor on the first power-up. Follow this verification sequence to ensure your current limit is functioning before introducing the energy storage element.

  1. Assemble without Load: Wire the LM317, 1.25Ω sense resistor, and 1N5819 diode on the breadboard. Leave the Vcap node open.
  2. Verify Reference Voltage: Power the bench supply to 9.0V. Set your digital multimeter (DMM) to DC Volts. Probe across the 1.25Ω resistor (from Vout to Vadj). You must read 1.25V ± 0.05V. If you read 0V or 9V, your wiring is incorrect.
  3. Simulate a Short: Set the DMM to DC Amps (10A range). Place the probes across the Vcap node and GND (effectively shorting the output through the meter). The DMM should read 1.0A ± 0.05A. The LM317 will get warm; this is normal.
  4. Connect the Supercapacitor: Remove the DMM. Ensure the capacitor polarity is correct. Connect the 10F supercap to Vcap and GND.
  5. Monitor the Ramp: Switch the DMM back to DC Volts and probe the capacitor. You should see the voltage climb linearly at roughly 0.1V per second (100mV/s). At 45 seconds, it should hit 4.5V.
  6. Terminate: Once 4.5V is reached, disconnect the 9V source. The 1N5819 diode prevents the capacitor from back-feeding the dead supply rail.

The Final Decision Matrix

Selecting the right capacitor charging circuit depends entirely on the energy density (capacitance) and the application context. Use this decision table to terminate your design phase with a concrete pick.

Application Context Capacitance Range Required Topology Concrete Part / Value Pick
Signal filtering, timing circuits, MCU decoupling 1pF to 100µF Passive Series Resistor 1kΩ 0.25W Carbon Film (Time constant is negligible)
Inverter DC bus precharge, motor controller startup 1,000µF to 20,000µF NTC Thermistor + Bypass Relay Ametherm MS32 10015 (10Ω 15A NTC) + 12V DPDT Relay
Supercapacitors, bench testing, precise energy delivery 1F to 100F+ Active Constant Current LM317T + 1.25Ω 2W Sense Resistor (Default Pick)

For any application involving supercapacitors or precise high-current charging, the LM317T constant current topology is the definitive choice. It eliminates the guesswork of exponential RC curves, provides hard short-circuit protection, and requires only three primary components to execute safely on the bench.