Arduino UNO-Based Water Quality Monitoring System with TDS and pH Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with a TDS Sensor, a PH Meter, and a Servo motor. The Arduino UNO reads analog signals from the TDS Sensor and PH Meter, and controls the Servo motor through a PWM signal.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
TDS Sensor
- Description: Measures the Total Dissolved Solids (TDS) in water.
- Pins: AI, GND, 5V
PH Meter
- Description: Measures the pH level of a solution.
- Pins: Signal, VCC, GND
Servo
- Description: A motor that can be controlled to move to a specific position.
- Pins: GND, VCC, PWM
Wiring Details
Arduino UNO
- 3.3V: Connected to Servo VCC
- 5V: Connected to TDS Sensor 5V and PH Meter VCC
- GND: Connected to PH Meter GND, TDS Sensor GND, and Servo GND
- A0: Connected to PH Meter Signal
- A1: Connected to TDS Sensor AI
- D9: Connected to Servo PWM
TDS Sensor
- 5V: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
- AI: Connected to Arduino UNO A1
PH Meter
- VCC: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
- Signal: Connected to Arduino UNO A0
Servo
- VCC: Connected to Arduino UNO 3.3V
- GND: Connected to Arduino UNO GND
- PWM: Connected to Arduino UNO D9
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main logic that runs repeatedly.
Additional Documentation
This section is reserved for any additional documentation or notes that may be required for understanding the circuit or the code.