Arduino-Controlled Water Flow Monitoring and Pump Regulation System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components to perform a specific set of functions. It includes sensors for monitoring water flow and soil moisture, a relay module for controlling a water pump, an LCD display for user interface, and two microcontrollers (Arduino Nano and Arduino 101) for processing and control. The circuit is designed to read sensor data, display information, and control a water pump based on the sensor inputs.
Component List
Water Flow Sensor
- Pins: Signal, Vcc, GND
- Description: Measures the rate of water flow through a pipe or channel.
LCD Display 16x4 I2C
- Pins: SCL, SDA, VCC, GND
- Description: Displays information to the user, uses I2C communication protocol.
Arduino Nano
- Pins: D1/TX, D0/RX, RESET, GND, D2 to D13, VIN, 5V, A0 to A7, AREF, 3V3
- Description: A compact microcontroller board based on the ATmega328P, used for processing and control tasks.
Arduino 101
- Pins: A5/SCL, A4/SDA, AREF, GND, D0 to D13, VIN, 5V, 3V3, A0 to A3, ICSP pins
- Description: A microcontroller board with built-in Bluetooth LE and a 6-axis accelerometer/gyro, used for processing and control tasks.
KY-019 Relay Module 1 Channel
- Pins: S, 5V, GND, NC, COM, NO
- Description: An electromechanical switch used to control high power devices like the water pump.
YL-69 Soil Moisture Sensor Probe
- Pins: +, -
- Description: Measures the moisture content in soil.
YL-83 Module LM393
- Pins: A0, D0, GND, VCC, -, +
- Description: A soil moisture sensor module that interfaces with the YL-69 probe.
Water Pump
- Pins: VCC, GND
- Description: Pumps water when activated by the relay module.
Wiring Details
Water Flow Sensor
- Signal: Connected to Arduino Nano D4
- Vcc: Connected to Arduino Nano VIN
- GND: Common ground with Arduino Nano
LCD Display 16x4 I2C
- SCL: Connected to Arduino Nano A5
- SDA: Connected to Arduino Nano A4
- VCC: Connected to Arduino Nano 5V
- GND: Common ground with Arduino Nano
Arduino Nano
- D4: Connected to Water Flow Sensor Signal
- A5: Connected to LCD Display SCL
- A4: Connected to LCD Display SDA
- VIN: Connected to Water Flow Sensor Vcc
- 5V: Connected to LCD Display VCC
- GND: Common ground with Water Flow Sensor and LCD Display
Arduino 101
- D6 PWM: Connected to YL-83 Module LM393 D0
- D3 PWM: Connected to KY-019 Relay Module S
- ioref: Connected to KY-019 Relay Module NO
- 5V: Common VCC with KY-019 Relay Module and YL-83 Module LM393
- GND: Common ground with KY-019 Relay Module and YL-83 Module LM393
KY-019 Relay Module 1 Channel
- S: Connected to Arduino 101 D3 PWM
- NO: Connected to Arduino 101 ioref
- 5V: Common VCC with Arduino 101
- GND: Common ground with Arduino 101
- COM: Connected to Water Pump VCC
YL-69 Soil Moisture Sensor Probe
- +: Connected to YL-83 Module LM393 +
- -: Connected to YL-83 Module LM393 -
YL-83 Module LM393
- D0: Connected to Arduino 101 D6 PWM
- VCC: Common VCC with Arduino 101
- GND: Common ground with Arduino 101
- +: Connected to YL-69 Soil Moisture Sensor Probe +
- -: Connected to YL-69 Soil Moisture Sensor Probe -
Water Pump
- VCC: Connected to KY-019 Relay Module COM
- GND: Common ground with KY-019 Relay Module
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino 101 Code
No code provided for Arduino 101.