DC-DC · Class D Two-Quadrant Chopper · Virtual Lab

Class D Chopper Simulator — Two-Quadrant DC Chopper

An advanced, physics-accurate simulator of the Class D (two-quadrant) choppertwo switches and two diodes whose output voltage swings between +Vs and −Vs while the load current stays one direction. When both switches are on the output is +Vs; when both are off the diodes conduct and the output is −Vs, so the average Vo = (2D−1)·Vs can be positive or negative and it covers Quadrants I and IV. Vary the duty D, frequency, source, motor and device model; read the live current ripple, a four-quadrant map and the ripple spectrum, and export the data — all validated against Vo = (2D−1)·Vs.

Class D chopper circuit diagram (power circuit): two controlled switches turned on together to apply +Vs and two diodes that conduct to apply −Vs across an R-L-E DC-motor load, giving two-quadrant operation with one current direction
Figure 3: Class D chopper — power circuit. Both switches on apply +Vs; both off, the two diodes conduct and apply −Vs — so the output swings ±Vs while the current stays positive.

Chopper control

Vo = (2D−1)·Vs · both switches ON → +Vs, both OFF → −Vs

DC source

Load — DC motor (R-L-E)

Motor back-EMF ∝ speed. E > Vo makes the current fall (light load / DCM).

Device model

Ideal (0,0,0) matches the Vo = D·Vs theory exactly.

Protection ratings

Drives the protection-margin check (peak device voltage = Vs, peak current).

Sampling & display

Presets

Waveforms to display

Waveforms — steady state two-quadrant

switch v₀ output i₀ load i_s source Vs / avg
LIVE

Four-quadrant operating map

Q1 Forward motoring — Vo > 0, Io > 0.
Vo = V
Io = A
Class A operates in Quadrant I only.

Ripple spectrum analysis

Output-voltage ripple / distortion (relative to |DC|)
FFT of the output voltage — ripple harmonics at multiples of the chopper frequency f_c. Raising the frequency or inductance lowers the current ripple. Toggle to the load-current spectrum above.

Measurements

Live accuracy check — simulation vs closed-form theory

Average output  
Load current  

What is a Class D (two-quadrant) chopper?

A Class D chopper uses two controlled switches and two diodes. When both switches are turned on together the source is applied directly across the load as +Vs; when both are turned off, the inductive load current forces the two diodes to conduct and the load is connected across the source with reversed polarity, −Vs. The output voltage therefore swings between +Vs and −Vs, and its average Vo = (2D−1)·Vs can be positive or negative while the load current stays in one direction. That makes it a two-quadrant converter covering Quadrant I (positive voltage) and Quadrant IV (negative voltage), both at positive current.

Output voltage, current & ripple

Vo = (2D − 1) · Vs   ·   Io = (Vo − E) / R

Here D is the fraction of each period both switches are on. At D = 0.5 the average output is zero; for D > 0.5 it is positive and for D < 0.5 negative. Because the output alternates between +Vs and −Vs every period, the current ripple is larger than in a Class A chopper for the same average. This simulator integrates the real R-L-E load through both states, runs to steady state, and compares the measured average to (2D−1)·Vs in the accuracy panel.

Continuous vs discontinuous conduction

Enough inductance keeps the current continuous (CCM) and Vo = (2D−1)·Vs holds. If the average voltage is close to the back-EMF and the inductance is small, the current can reach zero within a period (DCM); the simulator flags this and stops comparing against the formula.

Advanced options in this simulator

  • Duty & frequency: sweep the duty through 0.5 to swing the average output from −Vs toward +Vs.
  • Motor model & device model: R-L-E load with switch/diode drops; the accuracy check stays locked to the ideal formula.
  • Four-quadrant map: Class D moves between Quadrant I and Quadrant IV as the duty crosses 0.5.
  • Ripple spectrum & export: FFT of voltage/current and CSV/report/PNG export.

The five chopper classes

ClassQuadrantsAverage outputUse
Class AI (V+, I+)Vo = D·VsForward motoring (step-down)
Class BII (V+, I−)Vo = (1−D)·VsRegenerative braking
Class CI & IIVo = D·VsMotoring + braking
Class DI & IVVo = (2D−1)·Vs±V, one current direction
Class EI–IVVo = (2D−1)·VsFull four-quadrant drive

Explore the others: Class A, Class B, Class C and Class E chopper simulators. For the full theory see the Class D chopper tutorial.

Applications

Drives that need a reversible output voltage with one-directional current — certain servo and positioning drives, and as a building block of the four-quadrant Class E chopper.

Frequently asked questions

What is the average output voltage of a Class D chopper?

Vo = (2D−1)·Vs. It is zero at D = 0.5, positive above and negative below.

Why is it a two-quadrant chopper?

The output voltage can be positive or negative while the current stays one direction, so it covers Quadrants I and IV.

Why is the ripple higher than Class A?

Because the output swings the full ±Vs every period instead of Vs to 0, the volt-second swing across the inductor — and hence the current ripple — is larger.

When does discontinuous conduction occur?

When the average output is near the back-EMF with small inductance, the current can reach zero within a period; the simulator flags DCM.

Power4All · Class D (two-quadrant) chopper interactive simulator. All waveforms are produced by numerical integration of the actual circuit and validated against closed-form theory.