Measuring energy at home lesson plan
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.
Objectives and materials
By the end, students can
- A shunt and a Hall sensor, and why a CT goes in a panel.
- A ZMPT101B, RMS, a sag and a calibration.
- A complete meter over Modbus, and power factor.
- EmonLib: the mean of volts times amps.
- Energy counted, priced at your rate and projected over a day.
- Raise once, clear once: power and line voltage.
- A main and a branch, your rate and your limits.
Materials for the whole unit
- AC energy meter, PZEM-004T v3.0
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
- Bench power supply
- Character LCD with I2C backpack
- Current sensor, ACS712
- ESP32 DevKit V1
- Multimeter x 2
- Resistor x 2
- Signal generator
- Slide switch
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
Current sensing
A shunt and a Hall sensor, and why a CT goes in a panel.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 55 min |
|
Materials
- Bench power supply
- Current sensor, ACS712
- Multimeter x 2
- Resistor x 2
- Slide switch
Check for understanding
Each student finishes "Current sensing: a shunt and a Hall sensor" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A bigger sensor, a smaller step".
Voltage sensing
A ZMPT101B, RMS, a sag and a calibration.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 40 min |
|
Materials
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
Check for understanding
Each student finishes "Voltage sensing: a transformer and RMS" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Calibrate".
PZEM-004T
A complete meter over Modbus, and power factor.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 55 min |
|
Materials
- AC energy meter, PZEM-004T v3.0
- ESP32 DevKit V1
Check for understanding
Each student finishes "PZEM-004T: a meter in a box" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The energy counter".
Real power from samples
EmonLib: the mean of volts times amps.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 40 min |
|
Materials
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
- Character LCD with I2C backpack
- Current sensor, ACS712
- Resistor
- Signal generator
- Slide switch
Check for understanding
Each student finishes "Real power from samples" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Watt-hours add up".
kWh and cost
Energy counted, priced at your rate and projected over a day.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 55 min |
|
Materials
- AC energy meter, PZEM-004T v3.0
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
- Current sensor, ACS712
- Resistor
- Signal generator
- Slide switch
Check for understanding
Each student finishes "kWh and cost" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Predict: a 1500 W heater all day".
Alerts
Raise once, clear once: power and line voltage.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 55 min |
|
Materials
- AC energy meter, PZEM-004T v3.0
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
- Current sensor, ACS712
- Resistor
- Signal generator
- Slide switch
Check for understanding
Each student finishes "Alerts: telling someone" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your limit".
Boss build
A main and a branch, your rate and your limits.
| Lesson | Time | What students do |
|---|---|---|
| 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. | 65 min |
|
Materials
- AC energy meter, PZEM-004T v3.0
- AC voltage sensor, ZMPT101B
- Arduino Uno R3
- Current sensor, ACS712
- Resistor
- Signal generator
- Slide switch
Check for understanding
Each student finishes "Boss: a whole-house monitor" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A sag on the line".
Teach this unit as a class
Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.