# Regenerative braking and the brake chopper: where the energy goes

When a motor drive slows its load, the motor becomes a generator and pushes energy back into the DC link. In a robot or an AMR the link is usually the battery, so the energy is welcome until the battery cannot take it. A full pack, a cold pack or a BMS charge-current limit opens the charge FET. From that moment the braking energy has two places to go: the link capacitor, which charges up fast, or a brake resistor that a chopper switches in.

This article follows the energy through the `regenBrake` example in Voltecx and checks every joule against the simulation.

## The setup

| Part | Value |
|---|---|
| Bus | 48 V battery. The BMS has opened its charge FET, so current only leaves the pack, through the FET's body diode (0.7 V). |
| Link capacitor | 1 mF |
| Inverter and motor | Three EPC2302 GaN half bridges at 40 kHz and a maxon EC 45 flat (48 V winding). Same as the [robot joint servo](https://voltecx-web.nguyenvanqui291.workers.dev/blog/robot-joint-servo-cascaded-loops). |
| Load | A 10 kg share of an AMR on a 75 mm wheel, through a 20:1 gear, at 1 m/s |
| Braking | A speed ramp to zero in 0.4 s (2.5 m/s²) |
| Brake chopper | 10 Ω, switched by an EPC2302. On above 58 V, off below 56 V. |

## How much energy comes back

The motor sees the wheel's mass through the gear:

$$J_t = J_m + \frac{m\,r_w^2}{N^2} = 181 + \frac{10 \times 0.075^2}{20^2}\times 10^7 = 1587\ \text{g}\cdot\text{cm}^2$$

At 266.7 rad/s that is $E_k = \tfrac12 J_t\,\omega^2$ = 5.64 J. Not all of it reaches the link. The current that brakes the motor also heats its windings. Braking at 667 rad/s² takes 0.93 A of $i_q$, and with 3.4 Ω per phase the copper loss over the 0.4 s is

$$E_{cu} = \tfrac32\,R\,i_q^2\,t \approx 1.8\ \text{J}$$

That leaves about 3.8 J for the link.

A permanent-magnet motor feeds the link only while its back-EMF power exceeds its copper loss, $\tfrac32(\psi_f\,\omega_e\,i_q - R\,i_q^2) > 0$. Brake hard at low speed and the motor returns nothing; it only heats itself. For this winding, braking at 3 A gives no energy back below 136 rad/s.

## Without a chopper

If the capacitor must take everything, its voltage rises to

$$V = \sqrt{V_0^2 + \frac{2\,(E_k - E_{cu})}{C}} = \sqrt{47.3^2 + \frac{2 \times 3.84}{1\ \text{mF}}} \approx 99.6\ \text{V}$$

The simulation reaches 100.8 V. That is the rating of the GaN FETs, from a 48 V system braking a 10 kg load at walking pace. To hold the bus near 58 V instead, the capacitor would have to grow about tenfold. That is why every drive that can regenerate into a stiff-but-unwilling source carries a brake chopper.

## With the chopper

A comparator on the measured link voltage turns the brake switch on above 58 V and off below 56 V. The thresholds sit above the pack's full charge (13S × 4.2 V = 54.6 V), so the chopper never fires while the battery is charging normally, and well below the switches' rating. The resistor only needs to take the peak regenerated power, about 24 W here ($\tfrac32(\psi_f\,\omega_e\,i_q - R\,i_q^2)$ at the start of braking), at a small duty. At 58 V, 10 Ω draws 5.8 A, 336 W while on, so it switches for a few percent of the time.

In the simulation the link climbs to 58 V within 30 ms of the start of braking and then stays between 56.0 and 58.0 V until the wheel stops. The tests account for the energy:

| | Joules |
|---|---|
| Kinetic energy released | 5.64 |
| Copper loss (from the simulated phase currents) | −1.80 |
| Kept by the link capacitor (47.3 V → 54.4 V) | −0.36 |
| **Expected in the brake resistor** | **3.48** |
| Simulated in the brake resistor | 3.47 |

The 0.5 % that is left over goes into the switches and the dead-time conduction of the GaN FETs.

## Try it

Open **File › Open Example › Motor drives › Regenerative braking, brake chopper**, or `file.openExample {"name": "regenBrake"}`. The schematic has three parts:

- the power stage;
- the drive controller module, `Ctrl`;
- the chopper's comparator module, `Brake`.

The two modules read the link voltage `vdc` from one voltmeter by label. Set the variable `Vch` to 1000 to switch the chopper off and watch the bus run up to 100 V. Change `Clk` or `Rb` to size your own link.

These are simulation results. The example has not been compared with a test bench yet.
