With the rapid advancement of IoT technology, controlling household and industrial appliances remotely has become easier, more reliable, and more energy-efficient. Among these applications, smart water pump control systems are gaining popularity in agriculture, home automation, and industrial processes. Traditionally, water pumps are manually switched ON and OFF, which can be inconvenient and inefficient. To solve this, we developed an IoT-based water pump controller using ESP32 and the Blynk mobile app.
This project represents a complete Product Design and Development cycle, starting from the electronic circuit design, firmware development with the Arduino Programming Language, and ending with a compact 3D Design and Modeling for the enclosure. By integrating hardware with cloud-connected IoT software, the water pump can be switched ON/OFF from anywhere in the world using a smartphone running the Blynk app.
Unlike local Bluetooth solutions, the Blynk-powered version leverages the Wi-Fi capability of the ESP32, providing true IoT control. Additionally, the system is powered by a 3.7V 18650 lithium-ion battery with a dedicated charging chip, making it both portable and practical. A master power button allows the entire system to be switched off when not needed, ensuring safety and power saving. To maintain a professional look, all components are placed inside a 3D-printed enclosure with dedicated holes for a 5V power supply input and button placement.

Components used in IoT Water Pump Control System with Blynk App:
ESP32 Board
- The heart of the project.
- Provides Wi-Fi connectivity for Blynk IoT integration.
- Controls relay switching based on app commands.
2-Channel Relay Module
- Controls the AC 220V water pump.
- Provides electrical isolation between the low-voltage ESP32 and the high-voltage load.
3.7V 18650 Lithium-ion Battery
- Powers the ESP32 and relay module for standalone operation.
- Rechargeable and widely available.
Battery Charging Module (TP4056 or equivalent)
- Safely charges the 18650 cell from a 5V USB source.
- Includes overcharge and discharge protection.
220V AC Water Pump
- The load being controlled.
- Can be switched ON/OFF via IoT commands from the Blynk App.
Push Button (Master Switch)
- Manually turns the ESP32 system ON or OFF.
- Works as a safety cutoff switch.
3D-Printed Casing
- Designed with 3D Design and Modeling tools (SolidWorks).
- Compact, durable, and user-friendly.
- Includes holes for 5V charging, USB port access, and button placement.
Circuit Diagram of IoT Water Pump Control System with ESP32:

Programming the ESP32
The ESP32 is programmed using the Arduino Programming Language in the Arduino IDE.
- Blynk Library Integration
- The ESP32 connects to Wi-Fi and links with the Blynk IoT cloud.
- The mobile app sends commands to the cloud, which the ESP32 receives to control the relay.
- Relay Control Logic
- Virtual pins in the Blynk app are mapped to digital pins on the ESP32.
- When the user presses the ON button in the app, the corresponding virtual pin sets the relay HIGH, activating the water pump.
- When OFF is pressed, the relay is deactivated.
- Battery Monitoring (Optional Feature)
- The ESP32 can read battery voltage using its ADC pin.
- This data can be sent to the Blynk app for real-time monitoring.
Code for IoT Water Pump Control System with ESP32:
#define BLYNK_TEMPLATE_ID "..................."
#define BLYNK_TEMPLATE_NAME "Pumponwithesp32"
#define BLYNK_AUTH_TOKEN ".........................."
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
int led=32;
char ssid[] = "Arduino Experts";
char pass[] = "........";
BLYNK_WRITE(V0)
{
int pinValue = param.asInt();
if(pinValue==1){
digitalWrite(led,HIGH);
// Blynk.logEvent(" led on ");
}
if(pinValue==0){
digitalWrite(led,LOW);
}
}
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(led,OUTPUT);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
// You can also specify server:
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
}
3D Design and 3D Printing for Casing of IoT Water Pump Control System:


Assembly of Components for IoT Water Pump Control System:

Integration with Blynk IoT App:
The Blynk app is the user interface for this project:
- Setup: Users can create a project in Blynk, add a button widget, and link it to a virtual pin.
- Control: The app sends commands over Wi-Fi, which are processed by the ESP32.
- Scalability: Multiple pumps or appliances can be added to the same app interface.
- Remote Access: Unlike Bluetooth, which is limited to short ranges, Blynk allows global control of the pump as long as internet connectivity is available.
This makes the system a true IoT solution rather than just a local automation project.

Project Video of IoT Water Pump Control System with Blynk:
Advantages of the System:
- True IoT Control: Global pump operation using the Blynk App.
- Product Design and Development: From concept to working prototype.
- Portable Power: Rechargeable 18650 battery integration.
- Safety Features: Relay isolation and master power button.
- 3D-Printed Housing: Neat and professional product-level finish.
- Expandable: Can be upgraded to support sensors (e.g., soil moisture) for automatic irrigation.
Applications IoT Water Pump Control System:
- Smart Home Automation: Control home water pumps remotely.
- Agriculture: Automate irrigation systems with IoT.
- Industrial Use: Manage pumps in water treatment or cooling systems.
- Remote Access: Operate pumps in distant or hard-to-reach locations.
Conclusion
The IoT Water Pump Control using ESP32 and Blynk App is a perfect example of merging Product Design and Development, Arduino Programming Language, 3D Design and Modeling, and IoT technology into a single project. By combining smart hardware and cloud connectivity, we created a reliable and user-friendly water pump controller that can be used in homes, farms, and industries. The use of a 3D-printed casing and rechargeable battery makes this project not only functional but also a complete product prototype suitable for real-world applications.
Need This Project?
If you need this IoT Water Pump Control System Project with or without Modifications or Customization then you can contact us through WhatsApp.
if you can not make this project yourself then you can use this option. We will assemble the Project and will ship it to your Doorstep with Safe Packaging.
Learn More about the services we offer.