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

8051-Based Mine Air-Quality Monitor with Automatic Exhaust-Fan Control

Watches gas, carbon monoxide and temperature in a mine panel or quarry workshop and starts the exhaust fan before conditions turn unsafe

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

Overview

1 min read

8051-Based Mine Air-Quality Monitor with Automatic Exhaust-Fan Control is a diploma Mining Engineering hardware project built around a problem our survey kept finding in the stone-aggregate quarries and semi-mechanised workshops around our district: air quality is watched by human noses, not by instruments. Diesel loaders and compressors fill enclosed workshop bays with carbon monoxide, blasting and welding fumes linger longer than they should, and the exhaust fan is switched on only after someone feels uncomfortable.

Our fixed-point monitor continuously reads three parameters — combustible gas (MQ-2), carbon monoxide (MQ-7) and temperature (LM35) — through an ADC0808 analogue-to-digital converter into an AT89S52 microcontroller. When any reading crosses its alarm threshold, the firmware starts the exhaust fan through a relay driver, sounds a buzzer and names the culprit on a 16x2 LCD; the fan runs until every reading recovers below the clear threshold, with hysteresis so the relay never chatters. A stuck-sensor routine flags a channel that reads flat, because an air-quality instrument that silently dies is worse than none.

Every circuit block is simulated in Multisim or TINA before assembly on veroboard, and the gas channels are bump-tested against known sources (incense smoke for CO, a brief unlit LPG puff for combustible gas). The bundle carries the block diagram, control flowchart, Embedded C structure, bill of materials in rupees and a testing table the team fills with their own readings.

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
  • Microcontroller (8051 architecture, ports, timers and interfacing)
  • Embedded systems practical (sensor, ADC, LCD and relay interfacing)
  • PSPICE / Multisim / TINA circuit simulation
  • C programming (Embedded C firmware)
  • Mine Ventilation and environmental monitoring (branch theory)
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

6 min read

Problem statement

In the stone-aggregate quarries, mine workshops and semi-mechanised bays around our district, air quality is monitored by human observation. Diesel equipment produces carbon monoxide, which has no smell; blasting, welding and LPG use accumulates gases in enclosed spaces; and the exhaust fan is switched on only after workers feel discomfort. Handheld gas detectors are expensive and only help if someone carries one, while industrial fixed multi-gas systems cost several lakhs, so small operators go without.

The consequence is a predictable pattern: ventilation starts late, workers are exposed to CO and combustible-gas build-up that no nose can detect, and there is no record of what the air contained. The problem is to design a low-cost, continuously available fixed-point monitor that measures combustible gas, carbon monoxide and temperature, compares them against defined alarm thresholds, starts the exhaust fan automatically when a threshold is crossed, keeps the fan on until readings recover, and flags sensor faults — using the microcontroller, ADC and interfacing skills of the diploma syllabus.

Synopsis

Abstract

Small mines and quarries in India depend on manual observation for air quality, while fixed gas-monitoring systems priced for large mechanised mines remain out of reach. This project designs and builds a low-cost, fixed-point air-quality monitor on the 8051 microcontroller. MQ-2 and MQ-7 sensor channels, an LM35 and an ADC0808 feed the AT89S52, which compares every reading against defined alarm thresholds, starts an exhaust fan automatically on alarm, and displays live values and fault states on a 16x2 LCD. The circuits are simulated in Multisim/TINA and assembled on veroboard; sensor channels are exercised by bump tests with known sources, and the prototype is demonstrated with a 12 V fan standing in for the ventilation circuit.

Introduction

Under the Mines Act 1952, the Directorate General of Mines Safety (DGMS) requires mine air to be kept within safe limits for gases, and ventilation is the primary engineering control. Diesel equipment produces carbon monoxide; blasting produces fumes that need clearance time; and in gassy workings methane is a constant hazard. Large mines deploy approved multi-gas systems; at the small quarries and workshops our team visited, the fan starts when someone notices the smell.

Existing system

  • Manual observation: depends on human senses, which adapt quickly and fail dangerously — carbon monoxide has no smell at all.
  • Handheld portable detectors: effective but costly per unit, and useless when nobody happens to be carrying one into the room.
  • Industrial fixed systems: approved and reliable, but priced in lakhs, which small leaseholders do not spend.
  • Limitations: no continuous display, no automatic response, and a long delay between hazard and ventilation.

Proposed system

  • Three sensing channels: MQ-2 (combustible gas as a methane/LPG proxy), MQ-7 (carbon monoxide) and LM35 (ambient temperature).
  • Digitisation through the ADC0808 with a stable reference, so thresholds are real engineering values.
  • Two-level thresholds with hysteresis: a warning level sounds the buzzer, an alarm level starts the exhaust fan; the fan stops only when all channels recover below their clear levels.
  • A stuck-sensor check that flags a channel whose reading never changes.
  • LCD showing each channel, buzzer alarm and a test/reset switch, with the fan driver demonstrated on a 12 V fan.

Feasibility

  • Technical: the 8051, ADC, LCD and relay interfacing are exactly the Microcontroller and Embedded Systems practical syllabus; the gas sensors are standard modules with published datasheets.
  • Economic: indicative component cost is about ₹2,900–3,300 including the fan and contactor — a small fraction of any industrial fixed system.
  • Operational: the unit mounts on a wall, runs from one mains adapter and needs no operator.
  • Schedule: fits the 14-week project semester, with simulation in the first half and hardware and calibration in the second.

Safety boundary

This is an educational prototype. A real mine installation requires DGMS-approved, intrinsically safe equipment and statutory procedures, and the report states this boundary clearly — the project demonstrates the engineering method, not a certified safety product.

Objectives

  1. 01Design signal-conditioning circuits for MQ-2 (combustible gas), MQ-7 (carbon monoxide) and LM35 (temperature) sensing channels.
  2. 02Digitise all three channels with an ADC0808 and a stable reference voltage into an AT89S52 microcontroller.
  3. 03Write Embedded C firmware with two-level alarm thresholds, hysteresis, a stuck-sensor check and relay-based fan control.
  4. 04Simulate the sensor buffers, ADC interface and relay driver in Multisim or TINA before hardware assembly.
  5. 05Assemble the prototype on veroboard and demonstrate automatic exhaust-fan start and stop on a 12 V fan.
  6. 06Bump-test each gas channel against a known source and record response and recovery times in a testing table.
  7. 07Prepare a bill of materials in rupees and present the system within the statutory boundary set by the Mines Act and DGMS.

Scope

In scope

  • One fixed monitoring point with three channels: MQ-2, MQ-7 and LM35.
  • Two-level thresholds (warning, alarm) plus a clear level, with hysteresis on each channel.
  • Automatic exhaust-fan control demonstrated on a 12 V DC fan through a relay, with the 230 V contactor stage explained and tested with a lamp load under supervision.
  • LCD display of live values and fault states, buzzer alarm, test/reset switch.
  • Bump-test calibration, response/recovery time table and cost estimate.

Out of scope

  • Certified, intrinsically safe mine equipment, DGMS approval, or installation in a live mine — this prototype is demonstrated only in the laboratory.
  • Methane-specific catalytic or infrared sensing; the MQ-2 is used only as a combustible-gas proxy for demonstration.
  • Data logging to memory card, wireless alerts and multi-point networks (future scope).
  • Respirable-dust concentration measurement, which is a separate instrument class; the report discusses it as an extension.

Methodology

We follow a design, simulate, build, test sequence organised as a V-model: every design block has a matching verification planned before it is built.

PhaseWeeksActivitiesOwner(s)Output
Problem study1–2Visit two quarries and one mine workshop; interview the foreman and electrician about fan practice; list requirementsAllSurvey notes, requirement list
Threshold study2–3Collect DGMS-published limit values and sensor datasheets; fix warning, alarm and clear thresholds per channelMember AThreshold table
Block design3Block diagram, component selection, sensor circuit sketchingAllDesign document
Simulation4–6Sensor buffer, ADC reference and relay driver simulated in Multisim/TINA; 8051 logic checked in the simulator's MCU moduleMember A, Member CSimulation screenshots
Firmware5–8Embedded C in Keil µVision: ADC polling, calibration factors, threshold logic, LCD, buzzer, relay and stuck-sensor timerMember BHex file, flowchart
Hardware8–10Veroboard assembly: power supply, MCU, ADC, sensor modules, relay stage, enclosureMember A, Member CPrototype
Calibration and testing11–12Burn-in and baselines; bump tests with incense smoke (CO) and a brief unlit LPG puff (combustible gas); response and recovery times; fan start testAllFilled testing table
Documentation13–14Report, BOM, PPT, viva and written-test rehearsalAllFinal submission

Threshold table (fixed for the demonstration, justified from datasheets and DGMS literature): CO warning 50 ppm-scale reading, alarm 100 ppm-scale; combustible gas warning 20 per cent of the MQ-2 span, alarm 35 per cent; temperature warning 45 °C. A 10 per cent hysteresis between alarm and clear levels prevents relay chatter. Testing approach: stage-wise voltage checks, logic tests by forcing thresholds with known sources, response-time tests with a stopwatch, and repeatability over five trials per channel; every case is recorded with input, expected, observed and status in the report, and each objective maps to at least one test case.

Architecture & tech stack

2 diagrams · 8 technologies · 2 min read

  • 8051 microcontroller (AT89S52)
  • Embedded C
  • Keil µVision C51 compiler (industry-standard extra)
  • NI Multisim / TINA / PSPICE
  • ADC0808 8-channel A/D converter
  • MQ-2 and MQ-7 gas sensor modules
  • LM35 temperature sensor
  • 16x2 LCD, relay and exhaust-fan driver

The monitor is organised in five blocks around the AT89S52.

  1. Power supply: 230 V to 12-0 V step-down transformer, bridge rectifier, filter capacitor, 7812 for the relay stage and 7805 for the microcontroller, ADC and sensors. The MQ-7 heater cycle is driven from a transistor switch on a dedicated port pin.
  2. Sensing: the MQ-2 and MQ-7 modules output an analogue voltage that falls with gas concentration, and the LM35 gives 10 mV/°C. Each channel passes through an RC filter and an op-amp buffer (LM358) into the ADC0808's multiplexer.
  3. Digitisation: the ADC0808's address lines are latched to select a channel; the MCU issues start-of-conversion, waits for end-of-conversion and reads the eight-bit result. Its clock comes from the 8051 ALE pin.
  4. Microcontroller: AT89S52 with 11.0592 MHz crystal; Port 1 for ADC data, Port 2 for the LCD in 4-bit mode, Port 3 for buzzer, MQ-7 heater switch, relay driver and switches.
  5. Output stage: BC547 driving a 12 V relay with a 1N4007 flyback diode; the relay contact energises the fan circuit (demonstrated on a 12 V fan, with the 230 V contactor stage tested separately under supervision).
flowchart TD
  PS["Power supply (12 V and 5 V)"] --> MCU["AT89S52 microcontroller"]
  MQ2["MQ-2 combustible gas module"] --> BUF["RC filter + LM358 buffer"]
  MQ7["MQ-7 carbon monoxide module"] --> BUF
  LM["LM35 temperature sensor"] --> BUF
  BUF --> ADC["ADC0808 8-channel A/D converter"]
  ADC -->|"8-bit data + EOC handshake"| MCU
  MCU -->|"heater cycle control"| MQ7
  MCU --> LCD["16x2 LCD display"]
  MCU --> BZ["Buzzer alarm"]
  MCU --> RD["Relay driver with flyback diode"]
  RD --> FAN["Exhaust fan: 12 V demonstration / contactor for 230 V"]
  SW["Test and reset switches"] --> MCU
flowchart TD
  S["Read all channels and convert"] --> C{"Any channel above alarm level?"}
  C -->|"Yes"| FANON["Relay ON, buzzer ON, show channel"]
  C -->|"No"| W{"Any channel above warning level?"}
  W -->|"Yes"| BZON["Buzzer ON, fan unchanged"]
  W -->|"No"| CL{"Fan ON and all channels below clear level?"}
  CL -->|"Yes"| FANOFF["Relay OFF, buzzer OFF"]
  CL -->|"No"| ST{"Any channel unchanged for 5 min?"}
  ST -->|"Yes"| FLT["Show SENSOR FAULT on LCD"]
  ST -->|"No"| S
  FANON --> S
  BZON --> S
  FANOFF --> S
  FLT --> S

Firmware structure (Embedded C, Keil C51): a main loop reads each ADC channel three times 20 ms apart and takes the median; calibration factors convert counts to engineering units; the control routine implements the state machine above; Timer 0 provides the MQ-7 heater's 60 s high / 90 s low cycle and the stuck-sensor timer. Alarm and fan decisions require three consecutive readings above threshold, so a passing vehicle's exhaust puff cannot start the fan on its own.

Modules

4 modules

  1. Module 01

    Sensing, Signal Conditioning and Simulation (Member A)

    Selects and mounts the MQ-2, MQ-7 and LM35 channels, designs the RC filters and LM358 buffers, fixes the ADC reference, and simulates every analogue block in Multisim/TINA. Owns the threshold table and the sensor datasheet summary presented at Review I.

  2. Module 02

    Microcontroller, ADC and Firmware (Member B)

    Wires the ADC0808 to the 8051 (address latch, SOC/EOC handshake, ALE-derived clock) and writes the Embedded C firmware in Keil µVision: median filtering, calibration factors, the alarm state machine with hysteresis, the MQ-7 heater cycle on Timer 0, LCD routines and the stuck-sensor check. Burns the hex file with an ISP programmer.

  3. Module 03

    Fan Switching, Enclosure and Testing (Member C)

    Designs the relay driver with flyback diode and the 230 V contactor interface, simulates the driver, assembles the wall-mount enclosure, and tests the contactor stage with a lamp load under supervision. Owns the bump-test procedure, response-time measurements and the final testing table.

  4. Module 04

    Assembly, BOM and Documentation (Shared, led by Member C)

    Veroboard soldering and wiring are shared among all three members. Member C maintains the bill of materials in rupees and the test log, while each member writes the report chapter for their own block so individual work is visible at Review I and Review II.

Slides

11 slides · titles free · bullets, notes and the .pptx unlock

  1. Slide 1

    8051-Based Mine Air-Quality Monitor with Automatic Exhaust-Fan Control

  2. Slide 2

    Problem

  3. Slide 3

    Objectives

  4. Slide 4

    Existing vs proposed system

  5. Slide 5

    Block diagram

  6. Slide 6

    Circuit design

  7. Slide 7

    Firmware

  8. Slide 8

    Calibration and testing

  9. Slide 9

    Safety boundary

  10. Slide 10

    Cost estimate

  11. Slide 11

    Conclusion and 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 16 answered free · 13 unlock

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

  1. 01Concept

    Why is carbon monoxide especially dangerous in mine workshops, and how does your monitor detect it?

    CO is colourless and odourless, binds to haemoglobin far more strongly than oxygen, and is produced by diesel engines and incomplete combustion, so a worker gets no sensory warning at all. Our monitor detects it with an MQ-7 sensor, whose tin-dioxide layer changes resistance with CO concentration; we read that as a voltage, convert it in the ADC0808 and compare it against alarm thresholds.

  2. 02Concept

    Why did you choose the 8051 and the ADC0808 for this project?

    The AT89S52 has enough ports for the ADC data bus, LCD, relay, buzzer and switches, built-in timers for the MQ-7 heater cycle and stuck-sensor timing, and it is the microcontroller our microcontroller subject covers. The ADC0808 offers eight channels, so three sensor channels plus spare capacity fit one chip, and its microprocessor-style handshake is exactly what the syllabus teaches.

  3. 03Concept

    What is hysteresis in your alarm logic and why is it necessary?

    The fan starts when a channel crosses the alarm level but stops only when all channels fall below a lower clear level, with a 10 per cent gap between them. Without this gap, a reading hovering exactly at one threshold would switch the relay on and off rapidly, chattering the contacts and shortening the life of the relay and fan contactor.

+13 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

307 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

307 words · ~2 min read

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

Unlock for ₹2,000

Instructions

333 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

333 words · ~2 min read

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

Unlock for ₹2,000

References

9 sources

  1. Muhammad Ali Mazidi, Janice Gillispie Mazidi and Rolin D. McKinlay, The 8051 Microcontroller and Embedded Systems Using Assembly and C, 2nd ed., Pearson
  2. Kenneth J. Ayala, The 8051 Microcontroller, 3rd ed., Cengage Learning
  3. Microchip (formerly 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. Texas Instruments, LM35 Precision Centigrade Temperature Sensors — Datasheet
  6. Hanwei / Pololu, MQ-2 Semiconductor Sensor for Combustible Gas — Datasheet
  7. Hanwei MQ-7 Carbon Monoxide Gas Sensor — product page with datasheet (Pololu)
  8. Directorate General of Mines Safety (DGMS), Ministry of Labour and Employment, Government of India — circulars and technical publications
  9. Directorate of Technical Education, Tamil Nadu — M-scheme curriculum

Cite this bundle

OnlyProjects. (2026). 8051-Based Mine Air-Quality Monitor with Automatic Exhaust-Fan Control: Diploma (Polytechnic) Mining Engineering project bundle [Educational resource]. https://onlyprojects.online/projects/diploma-mining-mine-air-quality-monitor-exhaust-fan-control

Future scope

1 min read

  • Data logging to a memory card or serial EEPROM so the office can review trend charts, not just alarms.
  • GSM or Wi-Fi alerts to the foreman's phone on alarm or fault.
  • Dust (PM10/PM2.5) channel using an optical dust sensor, since respirable dust is the other statutory exposure.
  • Multi-point monitoring with several units reporting to one display over RS-485.
  • PLC integration, since larger operations already run PLC-based ventilation circuits — the monitor could feed one input to the existing PLC.
  • Methane-specific sensing with a catalytic or infrared sensor for gassy seams, moving from proxy to real measurement.

Keep browsing

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