Gabriel Ohnstad
All projects

Spring 2026 · ECEN 2270 Electronics Design Lab

Analog PI Controller

Discrete H-bridges, an R-2R DAC and a closed-loop analog PI motor controller, taken from SPICE to a working autonomous robot.

SimetriX SPICEMOSFET / BJTOp-ampsDigilent AD2Oscilloscopes

The build

I simulated each stage in SPICE, then built and debugged it on the bench: discrete MOSFET and BJT H-bridges, an R-2R DAC, and an analog PI compensator closing the loop around a DC motor.

I measured loop transfer functions from 200 Hz to 10 kHz and the motor's winding resistance (about 2.4–2.5 Ω) with a Digilent AD2 and oscilloscopes. Then it all went into an autonomous runaway alarm-clock robot with a battery under-voltage cutoff.