Water: level, flow, leaks and pumps lesson plan
Floats, ultrasonic levels, flow sensors, leak probes and 12 V pumps on relays, with dry-run guards and a sump controller to finish.
Objectives and materials
By the end, students can
- Float switches and an ultrasonic gauge, and what each can tell you.
- Count the flow, and find the water that got away.
- Switch a 12 V pump safely, and stop it running dry.
- A sump controller that knows when to stop.
Materials for the whole unit
- Arduino Uno R3
- Buzzer
- DC jack and adapter
- Float switch, ZP4510 x 2
- Mini water pump
- Relay module
- Ultrasonic ranger
- Water flow sensor, YF-S201
- Water level sensor
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.
How much water
Float switches and an ultrasonic gauge, and what each can tell you.
| Lesson | Time | What students do |
|---|---|---|
| Float switchesTwo floats give the simplest honest tank level: empty, part, full, and one state that means something is broken. | 55 min |
|
| Ultrasonic tank levelAn HC-SR04 in the lid times an echo off the water, and the sketch turns it into millimeters and liters, with the air temperature in the sum. | 55 min |
|
Materials
- Arduino Uno R3
- Float switch, ZP4510 x 2
- Ultrasonic ranger
Check for understanding
Each student finishes "Ultrasonic tank level" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Real tanks".
Water on the move
Count the flow, and find the water that got away.
| Lesson | Time | What students do |
|---|---|---|
| YF-S201 flowA turbine and a hall sensor give 7.5 pulses a second per liter a minute, 450 a liter. Count them with an interrupt. | 45 min |
|
| Leak probesBare traces on the floor find water. Power them only to read, so they do not plate themselves away. | 45 min |
|
Materials
- Arduino Uno R3
- Buzzer
- Water flow sensor, YF-S201
- Water level sensor
Check for understanding
Each student finishes "Leak probes" 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: "Remember the leak".
Pumps
Switch a 12 V pump safely, and stop it running dry.
| Lesson | Time | What students do |
|---|---|---|
| Pumps on relaysA pin cannot run a pump. A relay module switches a 12 V DC pump on its own supply, and the sketch protects it from rapid cycling. | 55 min |
|
| Dry-run protectionA pump that runs with no water wrecks its seals in minutes. Watch the flow, and stop it when there is none. | 55 min |
|
Materials
- Arduino Uno R3
- DC jack and adapter
- Mini water pump
- Relay module
- Water flow sensor, YF-S201
Check for understanding
Each student finishes "Dry-run protection" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A slow priming pump".
Boss
A sump controller that knows when to stop.
| Lesson | Time | What students do |
|---|---|---|
| Boss: a sump controllerTwo floats, a pump on a relay, a flow check, a maximum run time and a high-water alarm: a sump controller on 12 V, built the way a good one thinks. | 60 min |
|
Materials
- Arduino Uno R3
- Buzzer
- DC jack and adapter
- Float switch, ZP4510 x 2
- Mini water pump
- Relay module
- Water flow sensor, YF-S201
Check for understanding
Each student finishes "Boss: a sump controller" on their own, without opening the hints. The simulator checks 8 of its 8 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "What it is, and what it is not".
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.