Arduino UNO R4 WiFi-Based Water Quality Monitoring System with TDS, pH, and Turbidity Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface various sensors with an Arduino UNO R4 WiFi microcontroller. The circuit includes a TDS sensor, a DS18B20 temperature sensor, a pH degree sensor module, and a turbidity sensor. The sensors are connected to the Arduino for data acquisition and processing.
Component List
Sonda Sensor TDS
- Description: Measures Total Dissolved Solids (TDS) in water.
- Pins: +, -
DS18B20
- Description: Digital temperature sensor.
- Pins: signal, GND, vcc
TDS Sensor
- Description: Measures the electrical conductivity of water to determine TDS.
- Pins: P1, P2, +, -, A
Resistor
- Description: Provides resistance in the circuit.
- Pins: pin1, pin2
- Properties: Resistance: 4.7 Ohms
pH Degree Sensor Module
- Description: Measures the pH level of a solution.
- Pins: pH Negative, pH Positive, pH A
Modulo Sensor TDS
- Description: Module for interfacing the TDS sensor.
- Pins: A, -, +
Sonda Sensor Turbidez / Turbidity
- Description: Measures the turbidity (cloudiness) of water.
- Pins: S, -, +
Arduino UNO R4 WiFi
- Description: Microcontroller board with WiFi capabilities.
- Pins: OFF, GND, VRTC, IIC0_SCL, IIC0_SDA, 3V3, GPIO 41, GPIO 0, GPIO 42, GPIO 43, GPIO 44, BOOT, IOREF, RESET, 5V, VIN, A0, A1, A2, A3, A4, A5, RSPCKA, CIPO, COPI, D0/RX, D1/TX, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, SDA, SCL
Wiring Details
Sonda Sensor TDS
- Pin - connected to TDS Sensor P1
- Pin + connected to TDS Sensor P2
DS18B20
- Pin vcc connected to Arduino UNO R4 WiFi 5V
- Pin GND connected to Arduino UNO R4 WiFi GND
- Pin signal connected to Arduino UNO R4 WiFi D2 through Resistor pin2
TDS Sensor
- Pin P1 connected to Sonda Sensor TDS -
- Pin P2 connected to Sonda Sensor TDS +
- Pin + connected to Arduino UNO R4 WiFi 5V
- Pin - connected to Arduino UNO R4 WiFi GND
- Pin A connected to Arduino UNO R4 WiFi A0
Resistor
- Pin pin1 connected to Arduino UNO R4 WiFi 5V
- Pin pin2 connected to Arduino UNO R4 WiFi D2 and DS18B20 signal
pH Degree Sensor Module
- Pin pH Positive connected to Arduino UNO R4 WiFi 5V
- Pin pH Negative connected to Arduino UNO R4 WiFi GND
- Pin pH A connected to Arduino UNO R4 WiFi A2
Modulo Sensor TDS
- Pin + connected to Arduino UNO R4 WiFi 5V and Sonda Sensor Turbidez / Turbidity +
- Pin - connected to Arduino UNO R4 WiFi GND and Sonda Sensor Turbidez / Turbidity -
- Pin A connected to Arduino UNO R4 WiFi A1
Sonda Sensor Turbidez / Turbidity
- Pin + connected to Modulo Sensor TDS +
- Pin - connected to Modulo Sensor TDS -
- Pin S not connected
Arduino UNO R4 WiFi
- Pin 5V connected to Modulo Sensor TDS +, Resistor pin1, DS18B20 vcc, pH Degree Sensor Module pH Positive, TDS Sensor +
- Pin GND connected to Modulo Sensor TDS -, DS18B20 GND, pH Degree Sensor Module pH Negative, TDS Sensor -
- Pin A0 connected to TDS Sensor A
- Pin D2 connected to Resistor pin2 and DS18B20 signal
- Pin A2 connected to pH Degree Sensor Module pH A
- Pin A1 connected to Modulo Sensor TDS A
Documented Code
Arduino UNO R4 WiFi Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation
This document provides a comprehensive overview of the circuit, including a detailed list of components, their wiring connections, and the code used for the Arduino UNO R4 WiFi microcontroller.