MuTech RoboticsLearning Hub
Adults onlyArduino NanoLevel 1/3

Water Tank Auto Pump

An ultrasonic sensor on the tank lid starts the pump at LOW and stops it at FULL. No more overflow.

Sign in to save
Water Tank Auto Pump
Adults only

A real house pump runs on 230V mains.

Not for children. Build at your own risk.

The demo uses a safe 5V mini pump. A real 230V pump must be switched through a suitable contactor fitted by a qualified electrician.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The HC-SR04 looks down at the water and measures the gap.
  2. The Nano turns that into % full, using the tank depth set in the code.
  3. At LOW the relay switches the pump on.
  4. At FULL the relay switches it off.

Parts you need

  • Arduino Nano₹345× 1Buy
  • HC-SR04 ultrasonic sensor (on the tank lid)₹80× 1Buy
  • 1-channel 5V relay module₹57× 1Buy
  • 5V mini pump (demo)× 1Buy
  • Breadboard, jumper wires, USB 5V adapter× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

HC-SR04TRIGECHOVCCGNDNanoD3D25VGNDD7RelayS+−COMNO5VPump+−GND
PowerGroundSignal
#FromConnect to
1 SignalHC-SR04 TRIGNano D3
2 SignalHC-SR04 ECHONano D2
3 PowerHC-SR04 VCCNano 5V
4 GroundHC-SR04 GNDNano GND
5 SignalRelay SNano D7
6 PowerRelay +Nano 5V
7 GroundRelay −Nano GND
8 SignalRelay COM5V
9 SignalRelay NOPump +
10 GroundPump −GND
A wiring step from the video
A wiring step from the video

3D print files

This project has no 3D-printed parts.

Code

Get the code

Learn the idea behind it