Microcontroller-Based pH and TDS Monitoring Panel for a Model Effluent-Treatment Plant is an instrumentation project that continuously displays the three numbers a small dyeing or processing unit's effluent-treatment plant (ETP) lives and dies by — pH, total dissolved solids (TDS) and temperature — and raises alarms the moment a reading slips outside the discharge norms the unit's TNPCB consent prescribes.
The panel is built on the AT89S52 microcontroller from the M-scheme Microcontroller course. A pH glass electrode, a conductivity/TDS probe and an LM35 feed an ADC0809 through conditioning circuits; firmware in Embedded C converts the counts to engineering units, applies temperature compensation, and shows the readings on a 16x2 LCD. A green/red lamp pair and a buzzer indicate compliance; a relay drives a small peristaltic pump that demonstrates acid dosing when the sample tank goes alkaline — the classic dyeing-effluent problem.
Because a pH electrode is only as good as its last calibration, the project includes proper buffer calibration (pH 4, 7 and 9.2 sachets) and TDS calibration against standard solutions — the same routine an ETP operator follows on site. The whole panel is first simulated in Multisim / TINA, then built on a veroboard and demonstrated on a bench rig of sample tanks, using safe synthetic effluent instead of real trade effluent.
Small dyeing and processing units must discharge effluent within strict pH and TDS limits, yet most of them verify compliance by occasional manual sampling with handheld meters that are rarely calibrated. Between two checks an alkaline or high-salt surge passes unnoticed, and the first person to notice is usually the pollution-control inspector — by which time the unit faces a show-cause notice, or worse, a closure direction. Operators also lack temperature data, which affects both the pH reading itself and the process records. There is a clear need for a fixed, low-cost monitoring panel that measures pH, TDS and temperature continuously, displays them in engineering units, alarms against the consent limits, and can trigger a corrective action such as acid dosing — at a cost a small unit can afford and a diploma team can build.
Synopsis
Abstract
Small textile dyeing and processing units in Tamil Nadu operate under strict effluent norms, and their ETPs fail audits most often for the simplest reason: process parameters are checked occasionally, by hand, with a portable meter that may itself be uncalibrated. This project builds a fixed monitoring panel that continuously measures pH, TDS and temperature of the treated effluent, compares them against consent limits, and alarms before an out-of-spec discharge happens. It is built around the AT89S52, ADC0809 and low-cost probes, and demonstrated on a safe bench rig.
Introduction
Tamil Nadu's dyeing clusters, from Tirupur to Erode, have been through closures and zero-liquid-discharge mandates precisely because untreated or badly treated effluent damages rivers and farmland. A unit that installs common or in-house ETP machinery still depends on knowing, hour by hour, what the water leaving it actually contains. The panel this project builds gives that visibility at a parts cost under ₹3,000, using the microcontroller, sensor-interfacing and simulation skills the diploma curriculum already teaches.
Existing System
Operators spot-check pH with a handheld pen meter or litmus paper a few times a shift; TDS is checked with a pocket meter or not at all.
Readings are written in a register when someone remembers; there is no alarm between checks, so an alkaline surge is discovered at the next sampling — or at the board's inspection.
Handheld meters drift and are rarely buffer-calibrated, so even the recorded values are questionable.
Limitations: no continuous indication, no audible alarm, no temperature data for compensation or records, no automatic response such as dosing.
Proposed System
Continuous pH measurement with a glass electrode and conditioning board, calibrated at pH 4, 7 and 9.2 buffers, displayed to 0.1 pH.
Continuous TDS measurement through a conductivity probe, with readings shown in ppm and calibrated against a standard solution.
Temperature measurement with an LM35, used both for display and for temperature compensation of the pH reading.
Norm alarms: green lamp inside limits, red lamp plus buzzer when pH leaves the 5.5–9.0 band (CPCB general discharge standard) or TDS crosses the consent limit (2,100 ppm as our working value).
Automatic dosing demo: when the sample tank exceeds pH 9, a relay runs a peristaltic pump dosing dilute acid until the pH returns inside a deadband — a safe, scaled demonstration of neutralisation control.
Error codes for a dry or unplugged electrode, verified by pulling the probe in the rig.
Feasibility Study
Technical: electrode interfacing, ADC use, LCD displays and relay driving are all within the 34052 and 34066 course work; the conditioning circuits are simulated in Multisim / TINA before purchase.
Economic: the bill of materials is about ₹2,300–₹2,800 including the pump and probes, versus thousands for a commercial online analyser.
Operational: calibration takes ten minutes with standard buffers and solutions — the exact routine an operator already knows — and the panel runs from a 12 V adapter.
Objectives
01Interface a pH glass electrode through a signal-conditioning board to the ADC0809 and display pH from 0.0 to 14.0 with 0.1 resolution on a 16x2 LCD.
02Calibrate the pH channel at three points (pH 4, 7 and 9.2 buffer sachets) and store the calibration in firmware.
03Measure TDS through a conductivity probe and module, calibrated against a standard solution, and display the reading in ppm.
04Measure sample temperature with an LM35 and use it for temperature compensation of the pH conversion.
05Compare readings continuously against the pH 5.5–9.0 discharge band and the 2,100 ppm working TDS limit, driving green/red lamps and a buzzer accordingly.
06Demonstrate automatic neutralisation: energise a peristaltic dosing pump through a ULN2003-driven relay when pH exceeds 9.0, and stop it inside a 0.5 pH deadband.
07Detect probe faults (electrode unplugged or dry) and show an error code instead of a misleading reading.
08Simulate the conditioning and relay circuits in NI Multisim / TINA, then verify the assembled panel with prepared synthetic samples in the lab rig.
Scope
In scope
A bench demo rig: three sample tanks (alkaline, high-TDS, neutral) made from safe synthetic materials — diluted detergent and common salt — never real trade effluent.
Continuous pH, TDS and temperature display; norm alarms; peristaltic-pump dosing demonstration on the alkaline tank.
Three-point pH calibration, TDS calibration, temperature-compensation routine and probe-fault detection, each with recorded test results.
Out of scope (v1)
No BOD/COD/SS measurement — those need lab analysis beyond a bench panel; we log them as future work.
No GSM/SCADA link to the board's systems; data logging is manual from the LCD in v1.
No real trade effluent handling, and no dosing of concentrated acids — the demo uses dilute solution and small volumes with gloves and goggles.
No zero-liquid-discharge machinery design; the panel monitors, it does not treat.
Methodology
The project follows a phased build-and-test plan with hardware milestones matched to the M-scheme reviews: Review I after design and simulation, Review II after the working breadboard panel.
Phase
Weeks
Activities
Deliverable
Study & specification
1–2
ETP visit/interaction, norm study (CPCB general standards, consent limits), fix display formats and thresholds
Requirement sheet + test plan
Circuit design & simulation
3–4
pH conditioning, TDS module interface, LM35 chain, 2.56 V reference, pump driver; simulate in Multisim / TINA
Simulation results, component list
Breadboarding
5–6
Power supply, ADC0809–AT89S52 interface, LCD and alarm lamps
Sensor chains verified with meters
Firmware
7–9
Embedded C in Keil: multi-channel ADC read, three-point pH maths with temperature compensation, TDS conversion, alarm and dosing logic with deadband, error codes
Flash-tested firmware
Probe calibration
10
Buffer calibration (4/7/9.2), TDS standard-solution calibration, compensation verification at warm and cool samples
Calibration tables
Rig integration & testing
11–12
Assemble panel and sample tanks; run alarm-threshold tests, dosing demo, probe-fault tests, 2-hour soak
Testing approach: every channel is validated against a reference — buffers for pH, a standard solution and a handheld meter for TDS, a lab thermometer for temperature. Threshold behaviour is tested at the band edges (5.4/5.6 pH, 8.9/9.1 pH, 2,050/2,150 ppm), the dosing deadband is verified for overshoot, and probe-fault codes are triggered deliberately. Every case goes into the report's expected-vs-observed table.
Architecture & tech stack
2 diagrams · 9 technologies · 2 min read
8051 microcontroller (AT89S52)
Embedded C
ADC0809 8-channel ADC
pH glass electrode with signal-conditioning board
Conductivity/TDS probe and module
LM35 temperature sensor
16x2 LCD (HD44780)
NI Multisim / TINA circuit simulation
12 V peristaltic dosing pump with relay driver
The panel is organised as three sensing channels, one conversion-and-control core, and an output stage — a conventional instrumentation layout the examiners can follow at a glance.
flowchart LR
A["12 V adapter"] --> PS["5 V regulated supply (7805)"]
P["pH glass electrode"] --> PC["pH conditioning board (high-impedance buffer)"]
T["Conductivity/TDS probe"] --> TC["TDS module (oscillator + rectifier)"]
M["LM35 in sample tank"] --> MC["RC filter"]
PC -->|"CH0"| AD["ADC0809, Vref 2.56 V"]
TC -->|"CH1"| AD
MC -->|"CH2"| AD
PS --> AD
AD -->|"8-bit data, EOC handshake"| U["AT89S52 (8051)"]
PS --> U
U --> L["16x2 LCD"]
U --> GL["Green lamp"]
U --> RL["Red lamp + buzzer"]
U --> DR["ULN2003 + relay"] --> PM["12 V peristaltic dosing pump"]
pH channel. A glass electrode develops a tiny Nernst voltage (about 59 mV per pH unit at 25 °C) at extremely high impedance, so the conditioning board's first stage is a high-input-impedance buffer; its output spans the ADC's 2.56 V window. Because electrode slope drifts with age and temperature, the firmware applies a two-point slope correction from the last buffer calibration, plus an LM35-based compensation term.
TDS channel. The conductivity module drives the probe with an AC excitation (so electrodes do not polarise), rectifies the result, and hands an analogue voltage to CH1. The firmware converts counts to ppm using the calibration factor and displays it alongside pH.
Control core. Firmware in Embedded C cycles through the three channels with the standard ALE/START/EOC handshake, averages eight samples, and refreshes the LCD every 500 ms.
flowchart TD
S["Main loop (every 500 ms)"] --> R["Read pH, TDS and temperature; average 8 samples"]
R --> C["Convert with calibration + temperature compensation"]
C --> D["Update LCD and lamp states"]
D --> Q{"pH above 9.0?"}
Q -->|Yes| P1["Run dosing pump; red lamp + buzzer"]
Q -->|No| Q2{"Inside 5.5 to 9.0 and TDS within limit?"}
Q2 -->|Yes| G["Green lamp steady"]
Q2 -->|No| P2["Red lamp + buzzer (no dosing for TDS)"]
P1 --> Q3{"pH below 8.5 (deadband)?"}
Q3 -->|Yes| S
Q3 -->|No| P1
G --> S
P2 --> S
Output stage. The dosing pump runs only while the pH is above 9.0 and stops when it falls below 8.5 — a deadband that prevents the pump from hunting around the set point, exactly as an on-off neutralisation loop behaves on a real ETP.
Modules
6 modules
Module 01
pH Channel & Buffer Calibration (Member 1)
Member 1 selects the electrode and conditioning board, verifies the high-impedance buffering in Multisim / TINA, performs the three-point buffer calibration (pH 4, 7 and 9.2), derives the slope-and-offset correction the firmware applies, and writes the pH section of the calibration report.
Module 02
TDS Channel & Temperature Compensation (Member 2)
Member 2 builds the conductivity/TDS chain, calibrates it against a standard solution and cross-checks with a handheld meter, implements the LM35 temperature display and the compensation term applied to the pH conversion, and prepares the synthetic alkaline and saline samples for the rig.
Module 03
Controller, ADC & Display Firmware (Member 3)
Member 3 wires the ADC0809 to the AT89S52 (channel select, ALE/START/EOC handshake, data Port 0 with pull-ups), writes the Embedded C routines for cyclic conversion, eight-sample averaging and the 500 ms LCD refresh, and implements the error-code logic for dry or unplugged probes.
Module 04
Alarm & Dosing Control
Jointly owned by Members 1 and 3: the limit-comparison logic against pH 5.5–9.0 and the 2,100 ppm working limit, the green/red lamp and buzzer patterns, and the on-off dosing loop with its 0.5 pH deadband that runs the peristaltic pump only above pH 9.0 and stops it below 8.5.
Module 05
Power, Pump Driver & Rig Construction
The ULN2003-driven relay feeding the 12 V peristaltic pump with flyback protection, the 7805 supply for the panel, and the physical rig — three sample tanks, tubing, probe holders and lamp panel — assembled so the examiner can see every reading and output clearly during the demo.
Module 06
Calibration Records & Test Report
The whole team runs the formal test set — band-edge threshold tests at 5.4/5.6 and 8.9/9.1 pH, TDS tests at 2,050/2,150 ppm, dosing overshoot check, probe-fault triggers and a two-hour soak — and records expected versus observed results for every case in the report's test tables.
Slides
12 slides · titles free · bullets, notes and the .pptx unlock
Slide 1
pH & TDS Monitoring Panel for a Model Effluent-Treatment Plant
Slide 2
Introduction
Slide 3
Problem Statement
Slide 4
Existing vs Proposed System
Slide 5
Objectives
Slide 6
System Block Diagram
Slide 7
Sensing Channels
Slide 8
Control Logic
Slide 9
Calibration & Testing
Slide 10
Results & Cost Estimate
Slide 11
Safety & Limitations
Slide 12
Conclusion & Future Scope
Bullets, speaker notes and the .pptx · ₹2,000
The titles above are the real outline. The rest is what you present from.
Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.
01Concept
How does a pH glass electrode actually produce a voltage?
The electrode is a thin glass membrane whose surface exchanges ions with the solution, developing a potential that follows the Nernst equation — about 59 millivolts per pH unit at 25 °C — between the inside buffer and the sample. Because the internal resistance of that membrane is in the hundreds of megaohms, the very first stage after it must be an extremely high input-impedance buffer, which is why our conditioning board exists.
02Concept
Why does your panel measure temperature at all when the brief only asks for pH and TDS?
The Nernst slope itself changes with temperature, roughly 59 mV per pH unit only at 25 °C, so the same sample reads differently when warm or cool. The LM35 feeds the temperature to the firmware, which applies a compensation term to the pH conversion, and we also display the value because operators must record it for process and inspection purposes. We verified the compensation by reading the same buffer at two different temperatures.
03Concept
What is the difference between conductivity and TDS, and how does your panel relate them?
Conductivity measures how well the solution conducts electricity in microsiemens, which depends on all ions present; TDS is the mass of dissolved solids in parts per million. The panel's module measures conductivity with AC excitation — so the probe electrodes do not polarise — and the firmware converts it to ppm using the calibration factor, typically near 0.5 to 0.7 depending on the salt mix, which we fixed against a standard solution.
+12 more questions, with answers
Try the free ones out loud first. Your examiner will not accept “it's in the PPT”.
Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin D. McKinlay, The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2nd ed., Pearson
A. K. Sawhney, A Course in Electrical and Electronic Measurements and Instrumentation, Dhanpat Rai & Co.
OnlyProjects. (2026). Microcontroller-Based pH and TDS Monitoring Panel for a Model Effluent-Treatment Plant: Diploma (Polytechnic) Chemical Engineering project bundle [Educational resource]. https://onlyprojects.online/projects/diploma-chem-etp-ph-tds-monitoring-panel
Future scope
1 min read
Add a microSD or EEPROM data logger so the unit keeps an hour-by-hour compliance record for inspections.
A GSM module that SMSes the operator when an alarm persists beyond a set time.
BOD/COD estimation support through timed sampling of the rig's outlet for lab analysis.
Flow measurement with a paddle-wheel sensor so the panel computes pollutant load, not just concentration.
A PID-style proportional dosing loop instead of on-off control, for smoother neutralisation.
A weatherproof field enclosure and solar-backed supply for mounting at the actual ETP outflow point.
Keep browsing
More Diploma (Polytechnic) Chemical Engineering projects
Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.
Cylinder and toggle sizing from bending and shear forces, two-hand safety control, shop-floor build and a stopwatch comparison with hammer-and-drill work.
CAD drawings (2D AutoCAD / 3D modelling) and ISO 1219 pneumatic circuit symbols
Double-acting cylinder, 5/2 valves, FRL unit, flow-control valves