All paths

Measuring energy at home

How an energy monitor works: current and voltage sensing, the PZEM-004T, real power from samples, kWh and cost, and alerts, ending in a whole-house monitor. Mains stays numbers on sliders.

Free7 lessons6 h7 chapters1,404 XPElectrical · Intermediate+150 XP

0 of 7 done

Start the course freeCurrent sensing: a shunt and a Hall sensorLesson plan for teachers
What you will build

0 projects, built step by step

7 lessons in 7 chapters, about 6 hours on a simulated breadboard. Free, in your browser, every step checked by the simulator.

The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Current sensing

A shunt and a Hall sensor, and why a CT goes in a panel.

  1. Open205 XP

    Current sensing: a shunt and a Hall sensor

    A 12 V load through a 0.1 ohm shunt and an ACS712: the sensor's 2.5 V zero, 185 mV an amp, the shunt's 0.1 V an amp, a predicted reading, the 20 A board's smaller step, and why a current transformer is what goes in a panel.

    0 of 5 steps

4 questions, graded as you go.
Chapter 2

Voltage sensing

A ZMPT101B, RMS, a sag and a calibration.

  1. Locked174 XP

    Voltage sensing: a transformer and RMS

    A ZMPT101B steps the mains down to a small wave on A0: the sketch finds the middle, takes the RMS and scales it, at 230 V and 120 V, through a sag, and with a trimmer that needs calibrating.

    0 of 4 steps

3 questions, graded as you go.
Chapter 3

PZEM-004T

A complete meter over Modbus, and power factor.

  1. Locked205 XP

    PZEM-004T: a meter in a box

    An ESP32 reads a PZEM-004T over Modbus: volts, amps, power, energy, frequency and power factor, a 120 V load, what a poor power factor does to the watts, and the energy counter climbing.

    0 of 5 steps

3 questions, graded as you go.
Chapter 4

Real power from samples

EmonLib: the mean of volts times amps.

  1. Locked174 XP

    Real power from samples

    OpenEnergyMonitor's EmonLib samples a ZMPT101B and an ACS712 in turn: RMS volts and amps, real power as the mean of volts times amps, the power factor it implies, unplugging the appliance, and watt-hours adding up.

    0 of 4 steps

3 questions, graded as you go.
Chapter 5

kWh and cost

Energy counted, priced at your rate and projected over a day.

  1. Locked205 XP

    kWh and cost

    A whole-house monitor: the PZEM-004T's kWh, what it has cost at your rate in cents, a day's projection at the present draw, and the arithmetic every bill is built on.

    0 of 5 steps

3 questions, graded as you go.
Chapter 6

Alerts

Raise once, clear once: power and line voltage.

  1. Locked205 XP

    Alerts: telling someone

    The monitor raises an alert once when the house passes a power limit, clears it once when it drops back, catches a low and a high line voltage, and takes your own thresholds.

    0 of 5 steps

3 questions, graded as you go.
Chapter 7

Boss build

A main and a branch, your rate and your limits.

  1. Locked236 XP

    Boss: a whole-house monitor

    Wire the branch's current sensor, then run a monitor with a meter on the main and one on a branch: the house in watts and cents, the branch's share, your rate, your limit and a voltage alert.

    0 of 6 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Current sensing

  1. Current sensing: a shunt and a Hall sensorA 12 V load through a 0.1 ohm shunt and an ACS712: the sensor's 2.5 V zero, 185 mV an amp, the shunt's 0.1 V an amp, a predicted reading, the 20 A board's smaller step, and why a current transformer is what goes in a panel.
Chapter 2

Voltage sensing

  1. Voltage sensing: a transformer and RMSA ZMPT101B steps the mains down to a small wave on A0: the sketch finds the middle, takes the RMS and scales it, at 230 V and 120 V, through a sag, and with a trimmer that needs calibrating.
Chapter 3

PZEM-004T

  1. PZEM-004T: a meter in a boxAn ESP32 reads a PZEM-004T over Modbus: volts, amps, power, energy, frequency and power factor, a 120 V load, what a poor power factor does to the watts, and the energy counter climbing.
Chapter 4

Real power from samples

  1. Real power from samplesOpenEnergyMonitor's EmonLib samples a ZMPT101B and an ACS712 in turn: RMS volts and amps, real power as the mean of volts times amps, the power factor it implies, unplugging the appliance, and watt-hours adding up.
Chapter 5

kWh and cost

  1. kWh and costA whole-house monitor: the PZEM-004T's kWh, what it has cost at your rate in cents, a day's projection at the present draw, and the arithmetic every bill is built on.
Chapter 6

Alerts

  1. Alerts: telling someoneThe monitor raises an alert once when the house passes a power limit, clears it once when it drops back, catches a low and a high line voltage, and takes your own thresholds.
Chapter 7

Boss build

  1. Boss: a whole-house monitorWire the branch's current sensor, then run a monitor with a meter on the main and one on a branch: the house in watts and cents, the branch's share, your rate, your limit and a voltage alert.
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Measuring energy at home

Is Measuring energy at home free?

Yes. All 7 lessons of Measuring energy at home are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need any parts?

No. Every circuit is built on a simulated breadboard, and the simulator checks each step as you go. When you want to build it for real, the same parts and wiring work on a real bench.

How long does Measuring energy at home take?

About 6 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "Current sensing: a shunt and a Hall sensor", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.