Skip to content
OnlyProjects
Diploma (Polytechnic) · Chemical EngineeringFor educational purposes only

Microcontroller-Based pH and TDS Monitoring Panel for a Model Effluent-Treatment Plant

Continuous pH, TDS and temperature indication with norm alarms and an acid-dosing demo for a small dyeing-unit ETP

Mapped to your syllabusDOTE Tamil Nadu M-scheme (N-scheme rolling in) · 34067 (ECE) Project Work · Semester 6

Overview

1 min read

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.

Relevant for
Tamil Nadu
Level
Intermediate · 14 weeks · team of 3
Common at
DOTE Tamil Nadu, SBTET AP
Updated
Oct 2026

Syllabus alignment

DOTE Tamil Nadu · M-scheme (N-scheme rolling in)

34067 (ECE) · Project Work · Semester 6 · internal 25 (Review I 10 + Review II 10 + attendance 5) + board 75 (viva 30, report & demo 35, written test 10)

Subjects this project applies
  • 34052 Microcontroller (8051 architecture, ports, timers, ADC interfacing)
  • 34066 Embedded Systems practical (LCD, relay and sensor interfacing)
  • PSPICE / Multisim / OrCAD / TINA circuit simulation
  • C programming (Embedded C for 8051)
How it is evaluated

See your department's project guidelines.

Also fits: SBTET AP C-23.

What's in the box

10 parts · 5 free · 2 previewed · 3 unlock for ₹2,000

Problem & synopsis

5 min read

Problem statement

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

  1. 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.
  2. 02Calibrate the pH channel at three points (pH 4, 7 and 9.2 buffer sachets) and store the calibration in firmware.
  3. 03Measure TDS through a conductivity probe and module, calibrated against a standard solution, and display the reading in ppm.
  4. 04Measure sample temperature with an LM35 and use it for temperature compensation of the pH conversion.
  5. 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.
  6. 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.
  7. 07Detect probe faults (electrode unplugged or dry) and show an error code instead of a misleading reading.
  8. 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.

PhaseWeeksActivitiesDeliverable
Study & specification1–2ETP visit/interaction, norm study (CPCB general standards, consent limits), fix display formats and thresholdsRequirement sheet + test plan
Circuit design & simulation3–4pH conditioning, TDS module interface, LM35 chain, 2.56 V reference, pump driver; simulate in Multisim / TINASimulation results, component list
Breadboarding5–6Power supply, ADC0809–AT89S52 interface, LCD and alarm lampsSensor chains verified with meters
Firmware7–9Embedded C in Keil: multi-channel ADC read, three-point pH maths with temperature compensation, TDS conversion, alarm and dosing logic with deadband, error codesFlash-tested firmware
Probe calibration10Buffer calibration (4/7/9.2), TDS standard-solution calibration, compensation verification at warm and cool samplesCalibration tables
Rig integration & testing11–12Assemble panel and sample tanks; run alarm-threshold tests, dosing demo, probe-fault tests, 2-hour soakTest-case report
Documentation13Report chapters, photographs, cost estimate, safety notesDraft report
Review & dry run14Final report, PPT, live demo rehearsalSubmission set

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  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.

  6. 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

  1. Slide 1

    pH & TDS Monitoring Panel for a Model Effluent-Treatment Plant

  2. Slide 2

    Introduction

  3. Slide 3

    Problem Statement

  4. Slide 4

    Existing vs Proposed System

  5. Slide 5

    Objectives

  6. Slide 6

    System Block Diagram

  7. Slide 7

    Sensing Channels

  8. Slide 8

    Control Logic

  9. Slide 9

    Calibration & Testing

  10. Slide 10

    Results & Cost Estimate

  11. Slide 11

    Safety & Limitations

  12. 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.

Unlock for ₹2,000

Viva questions & answers

3 of 15 answered free · 12 unlock

Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.

  1. 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.

  2. 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.

  3. 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”.

How to carry it out

8 steps · unlocks with the project

Unlocks with the project · ₹2,000

8 steps

Every step to carry the project out with the tools in the tech stack, in order.

Unlock for ₹2,000

READMEFIRST

291 words · unlocks with the project

What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.

Unlocks with the project · ₹2,000

291 words · ~1 min read

The checklist of things to rename, re-seed and re-think so the project reads as yours.

Unlock for ₹2,000

Instructions

348 words · unlocks with the project

How to study it, adapt it and walk your examiner through it, step by step.

Unlocks with the project · ₹2,000

348 words · ~2 min read

Report structure, formatting rules and the submission checklist your department will grade.

Unlock for ₹2,000

References

7 sources

  1. Central Pollution Control Board (CPCB), India — general standards for discharge of environmental pollutants
  2. Tamil Nadu Pollution Control Board (TNPCB) — environmental standards and consent management
  3. Microchip (Atmel) AT89S52 8-bit Microcontroller with 8K Bytes In-System Programmable Flash — datasheet
  4. Texas Instruments ADC0808/ADC0809 8-Bit µP Compatible A/D Converters with 8-Channel Multiplexer — datasheet
  5. Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin D. McKinlay, The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2nd ed., Pearson
  6. A. K. Sawhney, A Course in Electrical and Electronic Measurements and Instrumentation, Dhanpat Rai & Co.
  7. Metcalf & Eddy / AECOM, Wastewater Engineering: Treatment and Resource Recovery, 5th ed., McGraw-Hill

Cite this bundle

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

Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.

Diploma (Polytechnic)

Mechanical Engineering

Pneumatic Bending-cum-Punching Fixture with Toggle Booster for a Rajkot Grill Fabrication Shop, with Cycle-Time Study

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
  • Two-hand control valve arrangement for punching
  • +3

intermediate14 wk4 students