Arduino-Powered GSM Water Quality Monitoring and Pump Control System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit is designed to interface various sensors and modules with two Arduino UNO microcontrollers. It includes temperature and pH sensors for environmental monitoring, an ultrasonic sensor for distance measurement, a Bluetooth module (HC-06) for wireless communication, a GSM module (SIM 800L V2.0) for cellular connectivity, a water level float switch sensor for detecting liquid levels, a relay module (KF-301) for controlling higher power loads, and a water pump for fluid movement. The circuit is powered by two sets of 3xAA batteries.
Component List
Microcontrollers
- Arduino UNO: A microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
Sensors
- DS18B20 1-Wire Temperature Sensor Probe Cable: A digital temperature sensor that communicates over a 1-Wire bus.
- PH Meter: An electronic device used to measure the pH (acidity or alkalinity) of a liquid.
- Ultrasonic Sensor: A sensor that measures distance by emitting ultrasonic waves and measuring the time taken for the echo to return.
Communication Modules
- HC-06: A Bluetooth module for wireless communication.
- SIM 800L V2.0 GSM: A GSM module for cellular network connectivity.
Actuators
- Water Level Float Switch Sensor: A device used to detect the level of liquid within a tank.
- KF-301 Relay: An electrically operated switch that allows controlling a high-power circuit with a low-power signal.
- Water Pump: A device used to move liquids by mechanical action.
Power Sources
- 3xAA Battery: A battery pack consisting of three AA cells in series.
Wiring Details
Arduino UNO
- 5V: Connected to the Ultrasonic Sensor VCC, SIM 800L V2.0 GSM 5V/4V, DS18B20 VDD, and PH Meter VCC.
- 3.3V: Connected to HC-06 VCC.
- GND: Common ground for Ultrasonic Sensor, SIM 800L V2.0 GSM, DS18B20, PH Meter, and HC-06.
- A0: Connected to PH Meter Signal.
- D12: Connected to Ultrasonic Sensor Trigger.
- D11: Connected to Ultrasonic Sensor Echo.
- D9: Connected to SIM 800L V2.0 GSM SIM_TXD.
- D8: Connected to SIM 800L V2.0 GSM SIM.RXD.
- D4: Connected to DS18B20 DQ.
- D1: Connected to HC-06 RXD.
- D0: Connected to HC-06 TXD.
DS18B20 1-Wire Temperature Sensor Probe Cable
- VDD: Connected to Arduino UNO 5V.
- GND: Connected to Arduino UNO GND.
- DQ: Connected to Arduino UNO D4.
PH Meter
- Signal: Connected to Arduino UNO A0.
- VCC: Connected to Arduino UNO 5V.
- GND: Connected to Arduino UNO GND.
HC-06
- VCC: Connected to Arduino UNO 3.3V.
- GND: Connected to Arduino UNO GND.
- RXD: Connected to Arduino UNO D1.
- TXD: Connected to Arduino UNO D0.
Ultrasonic Sensor
- +VCC: Connected to Arduino UNO 5V.
- Trigger: Connected to Arduino UNO D12.
- Echo: Connected to Arduino UNO D11.
- GND: Connected to Arduino UNO GND.
SIM 800L V2.0 GSM
- 5V/4V: Connected to Arduino UNO 5V.
- GND: Connected to Arduino UNO GND.
- SIM_TXD: Connected to Arduino UNO D9.
- SIM.RXD: Connected to Arduino UNO D8.
KF-301 Relay
- Signal: Connected to Water Level Float Switch Sensor Wire2.
- Power: Connected to 3xAA Battery VCC.
- Ground: Connected to 3xAA Battery GND and Water Level Float Switch Sensor Wire1.
- C: Connected to 3xAA Battery VCC.
- NO: Connected to Water Pump Positive.
Water Pump
- Positive: Connected to KF-301 Relay NO.
- Negative: Connected to 3xAA Battery GND.
Documented Code
Arduino UNO (Primary Microcontroller)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Secondary Microcontroller)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not include specific functionality. It needs to be populated with the logic to control and interact with the connected components.