Circuit Documentation
Summary
This circuit is designed to interface various components with an Arduino UNO microcontroller. It includes a TDS (Total Dissolved Solids) sensor module for water quality measurement, a KY-019 relay module for controlling a mini diaphragm water pump, an I2C LCD screen for display purposes, a buzzer for audio signaling, and a 12V battery to power the relay and the water pump. The Arduino UNO manages the sensor readings, controls the relay, and communicates with the LCD and buzzer.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
KY-019 Relay Module 1 Channel
- A relay module that can be used to control high voltage/current devices.
- It has a single channel and can be driven by the Arduino UNO.
Mini Diaphragm Water Pump
- A small pump used for moving water.
- It operates on 12V and can be controlled via the relay module.
12V Battery
- Provides power to the relay module and the water pump.
- It has a positive (VCC) and a negative (GND) terminal.
TDS Sensor Module
- Measures the total dissolved solids in water.
- It provides an analog output that can be read by the Arduino UNO.
I2C LCD 16x2 Screen
- A liquid crystal display that can show 16 characters on 2 lines.
- It uses the I2C communication protocol for interfacing with the Arduino UNO.
Buzzer
- An audio signaling device.
- It can be driven by one of the digital pins of the Arduino UNO.
Wiring Details
Arduino UNO
5Vto TDS Sensor Module5V, KY-019 Relay Module5V, and I2C LCD ScreenVCC (5V)GNDto BuzzerGND, I2C LCD ScreenGND, TDS Sensor ModuleTDS Negative, and KY-019 Relay ModuleGNDA0to TDS Sensor ModuleTDS AA4to I2C LCD ScreenSDAA5to I2C LCD ScreenSCLD8to BuzzerPIND7to KY-019 Relay ModuleS
KY-019 Relay Module 1 Channel
COMto 12V BatteryVCCNOto Mini Diaphragm Water PumpPositive (+)
Mini Diaphragm Water Pump
Negative (-)to 12V BatteryGND
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes
- The provided code is a template and does not contain any functional code. It needs to be populated with the logic for reading the TDS sensor, controlling the relay, driving the buzzer, and updating the LCD screen with relevant information.
- The
documentation.txtfile is empty and can be used to add additional notes or documentation related to the code.
