Back to Khushaan Virk

AC phasor voltmeter

Feb 2026

An instrument that reads two AC signals and shows RMS, period, phase difference, frequency and power factor in real time. Built on an EFM8 in C, with all the signal processing on the microcontroller.

The prototype showing R, T and P readings on its LCD
MCU
EFM8LB12F64 at 72 MHz
ADC
14-bit, on-chip
Period
Timer 0 with a 6 MHz tick
RMS
Peak sample at a quarter period, divided by √2
Phase
Time between rising zero crossings, scaled to degrees
Display
Four LCD modes on a button