Automatic water pump controller
Here is a circuit for an automatic water pump controller that runs the motor of the water pump. When the water level in the overhead tank (OHT) drops below the lower limit, the motor turn…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Automatic water pump controller is a electronics project. Here is a circuit for an automatic water pump controller that runs the motor of the water pump. When the water level in the overhead tank (OHT) drops below the lower limit, the motor turn…
- Source pages
- 262-265
- Named parts
- 6
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- Keep liquids, loose metal, and uninsulated wires away from the bench.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Power supply
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for Power supply; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
What's this?Image, role, pros, cons, handling & specifications
SEMICONDUCTOR LEARNING VIEWCD4011
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for CD4011; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
What's this?Image, role, pros, cons, handling & specifications
BC547
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for BC547; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
What's this?Image, role, pros, cons, handling & specifications

NEITHER
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for NEITHER; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

T1, T2, T3, T4, T5, T6, T7 - transistor stages identified in the circuit
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for T1, T2, T3, T4, T5, T6, T7 - transistor stages identified in the circuit; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
What's this?Image, role, pros, cons, handling & specifications

LED1, LED2, LED3, LED4, LED5 - indicator LEDs identified in the circuit
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for LED1, LED2, LED3, LED4, LED5 - indicator LEDs identified in the circuit; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Automatic water pump controller: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 2 visuals


Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteHere is a circuit for an automatic water pump controller that runs the motor of the water pump. When the water level in the overhead tank (OHT) drops below the lower
limit, the motor turns on by itself. In the same way, it turns off when the tank is full. The circuit is simple, small, and cheap because it is made up of only one NAND gate IC (CD4011). It gets its power from a 12V DC power supply and doesn't use much power. There are two parts to the circuit: the controller circuit and the indicator circuit. The controller circuit is shown in Figure 1. Let's say there are two reference probes, "A" and "B," inside the tank. "A" is the lower-limit probe, and "B" is the upper-limit probe. The 12V DC power supply goes to probe C, which is the minimum amount of water that can always be kept in the tank. The lower limit "A" is connected to the base of transistor T1 (BC547), which is connected to the 12V power supply through its collector, and to relay RL1 through its emitter. Pin 13 of NAND gate N3 is hooked up to relay RL1. In the same way, the upper-limit probe "B" is connected to the base of transistor T2 (BC547), whose collector is connected to the 12V power supply and whose emitter is connected to pins 1 and 2 of NAND gate N1 and ground via resistor R3. NAND gate N2's output pin 4 is connected to NAND gate N3's pin 12. Resistor R4 connects the output of N3 to the input pin 6 of N2 and the base of transistor T3. The motor is turned on and off by connecting relay RL2 to the emitter of transistor T3. Circuit operation
If the tank is filled below probe A, transistors T1 and T2 don't work, and the output of N3 goes high. This high output turns on relay RL2, which drives the motor to pump water into the tank. When the water level in the tank is above probe A but below probe B, the base voltage of transistor T1 is provided by the water in the tank, and relay RL1 turns on to make pin 13 of gate N3 high. But the water in the tank doesn't give transistor T2 a base voltage, so it doesn't work, and the logic built around NAND gates N1 and N2 sends a low signal to pin 12 of gate N3. The result is that the amount of N3 produced stays high and the motor keeps pumping water into the tank. Automatic water pump controller: Indicator/monitoring circuit When the tank is full to the level of probe B, the water in the tank still gives base voltage to transistor T1 and turns on relay RL1, which makes pin 13 of gate N3 high. At the same time, water in the tank gives transistor T2 its base voltage, and the logic
built around NAND gates N1 and N2 sends a high signal to pin 12 of gate N3. The output at pin 11 of N3 goes low, which stops the motor from pumping water into the tank. When the water level in the tank drops below probe B but stays above probe A, the water in the tank still gives base voltage to transistor T1 and keeps relay RL1 on, which makes pin 13 of gate N3 high. But transistor T2 doesn't work, and the logic made up of NAND gates N1 and N2 sends a high signal to pin 12 of N3. So, the output of N3 stays low, and the motor doesn't move. When the water level goes below probe A, neither T1 nor T2 will work. When the output of NAND gate N3 is high, relay RL2 is turned on, and the motor starts pumping water into the tank again. Figure 2 shows the circuit for indicators and monitoring. It is made up of five LEDs that light up to show how much water is in the tank above. Since the water at the bottom of the tank gets 12V power, transistors T3 through T7 get base voltage and conduct to light up the LEDs (LED5 down through LED1). When the water level in the tank drops to level C, the transistor T7 starts to conduct, and LED1 lights up. When the water level in the tank gets to be one-fourth full, transistor T6 conducts, and LED1 and LED2 light up. When the water level in the tank gets to be halfway full, transistor T5 conducts and lights up LED1, LED2, and LED3. When the water level reaches 3/4 of the tank, transistor T4 conducts and lights up LED1 through LED4. When the tank is full, T3 conducts, and all five LEDs light up. So, one can tell how much water is in the tank by how bright the LEDs are (see the table). The LEDs can be put anywhere, making it easy to keep an eye on them. Note: The heights of probes A and B can be changed by the user to change how much water needs to be put in the tank. The stand and the screws for adjusting it should be insulated so that they don't short out.
You built Automatic water pump controller.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects