Ultrasonic tank level
An 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.
Open it in the simulatorFloats, ultrasonic levels, flow sensors, leak probes and 12 V pumps on relays, with dry-run guards and a sump controller to finish.
0 of 7 done
7 lessons in 4 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
An 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.
Open it in the simulatorBare traces on the floor find water. Power them only to read, so they do not plate themselves away.
Open it in the simulatorA pump that runs with no water wrecks its seals in minutes. Watch the flow, and stop it when there is none.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Float switches and an ultrasonic gauge, and what each can tell you.
Two floats give the simplest honest tank level: empty, part, full, and one state that means something is broken.
0 of 7 steps
An 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.
0 of 7 steps
Count the flow, and find the water that got away.
A turbine and a hall sensor give 7.5 pulses a second per liter a minute, 450 a liter. Count them with an interrupt.
0 of 6 steps
Bare traces on the floor find water. Power them only to read, so they do not plate themselves away.
0 of 6 steps
Switch a 12 V pump safely, and stop it running dry.
A 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.
0 of 7 steps
A pump that runs with no water wrecks its seals in minutes. Watch the flow, and stop it when there is none.
0 of 7 steps
A sump controller that knows when to stop.
Two 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.
0 of 8 steps
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 7 lessons of Water: level, flow, leaks and pumps are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.
About 6 hours: 7 lessons in 4 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.
Each chapter ends in a project that puts it together: Ultrasonic tank level, Leak probes and Dry-run protection.
With "Float switches", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.