Arduino Based Acid Rain Ph Monitor With Automated Precipitation Sampling Mechanism
This project is designed to monitor the quality of rainwater using an Arduino-based system along with pH and turbidity sensors. It helps in analyzing whether collected rainwater is suitable for different purposes such as drinking, irrigation, or storage. The pH sensor is used to determine the acidity or alkalinity of water. Based on the pH value, the system provides visual output using LEDs. A red LED indicates acidic water (pH < 7), a yellow LED indicates neutral water (pH ≈ 7), and a green LED indicates basic or alkaline water (pH > 7). This makes it easy to understand the chemical nature of water in real time. In addition to this, a turbidity sensor is used to measure the clarity of water. Turbidity refers to the amount of suspended particles present in water. If the turbidity level is low, the water is considered clean and clear. If the turbidity level is high, it indicates that the water is muddy or contaminated with impurities. The Arduino continuously reads data from both sensors and processes it to provide instant feedback through LED indicators. This real-time monitoring system helps in quickly identifying water quality without needing complex laboratory testing. Overall, this project is useful for environmental monitoring and water quality assessment, especially for rainwater harvesting systems. It ensures that users can easily determine whether the collected water is safe and suitable for use
This project monitors rainwater quality using an Arduino with pH and turbidity sensors. LEDs indicate water condition: red for acidic, yellow for neutral, and green for basic. The turbidity sensor checks water clarity. The system provides real-time results to determine if water is suitable for use.
Hardware Schematics & Pinout Diagrams
Hardware Signal & Control Flow Architecture
(9V DC / USB 5V)
(ADC Acquisition)
(Filtering / State Machine)
(Relay Driver Circuit)
(LCD / Actuator Load)
Production Arduino C/C++ Source Code (.ino)
[*] Initializing Hardware Core for Arduino Based Acid Rain Ph Monitor With Automated Precipitation Sampling Mechanism... [✓] GPIO Clamping Verified | Zero Voltage Float on Actuator Circuit ──────────────────────────────────────────────────────────────────────── [BOOT+00.02s] ADC_INIT Calibrated zero-offset = 12 mV (Clean noise floor) [RUN +01.00s] TELEMETRY Sensor ADC: 342 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] [RUN +02.00s] TELEMETRY Sensor ADC: 388 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] [RUN +03.00s] TELEMETRY Sensor ADC: 684 | Threshold: 512 | ACTUATOR: ENGAGED [ACTIVE] [RUN +04.00s] INTERRUPT Optocoupler PC817 saturated | Actuator Active in 4.2 ms [RUN +05.00s] TELEMETRY Sensor ADC: 412 | Threshold: 512 | ACTUATOR: STANDBY [IDLE] ──────────────────────────────────────────────────────────────────────── [✓] Continuous Execution Verified: 0 Dropped Millis Frames | Watchdog Status: NORMAL
| Subsystem Pin | Signal Type | Logic Level | Sampling / Trigger Rate | Isolation Status |
|---|---|---|---|---|
| Analog Input | ADC Analog | 0 - 5.0V / 3.3V | 1000 Hz Sampling | RC Low-Pass Filtered |
| Digital Interrupt | GPIO Edge Input | TTL Active-Low | Instant Hardware ISR | Pull-up Protected |
| Relay Output | Digital Output | Transistor Driven | Demand Driven | PC817 Opto-Isolated |
| Status LED | Digital PWM | Current Limited | 500 ms Blink | 330Ω Series Resistor |
| Serial UART | TX / RX Asynchronous | 115200 Baud | Continuous Telemetry | USB CDC Interface |