IoT, TubeWell Water Pump Control through SMS or Smartphone App from Anywhere

The project “TubeWell Water Pump Control through SMS or Smartphone App (Blynk IoT App) using Arduino UNO, SIM800 GSM Module, or Any Other and Heavy Duty Relay” is aimed at providing a remote and automated solution for controlling a tube well water pump. This system utilizes the Arduino UNO microcontroller, a GSM module (SIM800), a heavy-duty relay, and an IoT-based smartphone app (Blynk) for real-time control and monitoring. The system is designed to address problems related to manual operation, distance control, and the efficient use of electricity and water resources.

The Project can be enhanced by using a 4G GSM module (such as SIM7600 or SIM7000 series), which provides faster communication and reliable connectivity, especially in remote areas with poor 2G/3G network coverage. Depending on user requirements, a 4G GSM module can be used to offer better reliability and performance, ensuring uninterrupted control over the tube well pump.

Project Objective:

The primary objective is to allow farmers or landowners to remotely control their tube well water pump, either via SMS or through the Blynk IoT app, thus eliminating the need for physically operating the pump. The solution also aims to optimize water usage by allowing on-demand and scheduled control.

Working Principle:

The system allows for two modes of operation:

1. Control via SMS:

  • The SIM800 GSM module is interfaced with Arduino. When a predefined SMS (like “PUMP ON” or “PUMP OFF”) is received, the Arduino decodes the message and triggers the relay to turn the pump ON or OFF.
  • This mode is beneficial when there is no internet connection, as it uses the GSM network for communication.

2. Control via Blynk IoT App:

  • The Blynk app provides a graphical user interface on a smartphone, which is connected to the Arduino through Wi-Fi or a mobile network.
  • Users can toggle the pump on or off, monitor its status, and even set automatic schedules to turn the pump on/off at predefined times.
  • The app sends the control signals to the Arduino through the Blynk cloud server. Upon receiving the command, Arduino processes it and actuates the heavy-duty relay to operate the pump.
  • The status of the pump (on or off) can also be viewed on the app, allowing the user to confirm the current state of the pump.

Circuit Diagram:

Code:

#define BLYNK_PRINT Serial  // This will enable debugging output to the serial monitor

#include <SoftwareSerial.h>   // Library for software serial communication
#include <BlynkSimpleSIM800.h> // Blynk library for GSM module communication

// Set your SIM card's authentication token
char auth[] = "YourBlynkAuthToken"; 

// APN credentials for your mobile network provider
char apn[]  = "YourAPN";          // APN of your GSM provider
char user[] = "";                 // Leave empty if no username is required
char pass[] = "";                 // Leave empty if no password is required

// Initialize the SoftwareSerial for SIM800 module (RX = 10, TX = 11)
SoftwareSerial SerialAT(10, 11);  // TX, RX

// Pin connected to the relay (which controls the water pump)
int relayPin = 7;  

void setup() {
  // Start the serial monitor for debugging
  Serial.begin(9600);
  delay(10);

  // Start communication with the GSM module
  SerialAT.begin(9600);
  
  // Set relay pin as OUTPUT and initially turn off the water pump
  pinMode(relayPin, OUTPUT);
  digitalWrite(relayPin, LOW);

  // Display a message in the serial monitor
  Serial.println("Initializing Blynk over GSM...");

  // Initialize the Blynk connection over GSM
  Blynk.begin(auth, SerialAT, apn, user, pass);
}

Applications of Project:

Agriculture:

  • Farmers can control their tube well water pump remotely via the GSM network using either SMS commands (in a simpler version) or the Blynk IoT app, ensuring efficient water and energy use.

Rural Areas:

  • This project is particularly useful in rural areas where Wi-Fi is not available. The GSM-based control enables users to manage water resources over a mobile network.

Industrial Applications:

  • In industries, the system can automate water pumps in remote locations where internet connectivity might not be reliable, reducing manual labor and optimizing resource management.

Customizability:

  • Depending on the user’s requirements, a 4G GSM Module (like SIM7600 or SIM7000) can be used for faster communication and better network coverage. The 4G module is backward compatible, meaning it will work in areas with 2G, 3G, or 4G coverage, ensuring more reliable operation.
  • The code will remain similar when switching to a 4G GSM module, but users may need to adjust the baud rate or APN settings depending on the module specifications.

Conclusion:

This project provides an effective and affordable solution for remotely controlling a tube well water pump through a GSM network, without relying on Wi-Fi. By using a GSM module such as SIM800, users can control the pump from anywhere via the Blynk IoT app, offering convenience and resource optimization. Moreover, the system can be further enhanced by using a 4G GSM module for better network coverage and reliability, making it an ideal solution for both agricultural and industrial water management needs.

Leave a Reply

Your email address will not be published. Required fields are marked *

Facebook
YouTube
× Contact us