You are on page 1of 6

EXPERIMENT-1

Reg no 21BEC1535

NameKeerthi chandrika

Date – 6/6/23

Aim: To check the Air Quality Monitoring system


Components Required:

1. Arduino Uno R3
2. Gas Sensor
3. Piezo
4. LED
5. Resistor
Software Used: Tinker Cad

Theory:

Air quality monitoring systems are designed to measure the concentration of


pollutants present in the air. With the increasing amount of pollution in the
atmosphere, there is a growing need for accurate and reliable air quality
monitoring systems. Arduino is a microcontroller platform that can be used to
build such a system.

The basic principle behind an air quality monitoring system is to measure the
concentration of pollutants in the air using sensors. The sensors used in such
systems are generally based on electrochemical, optical, or thermal principles.
The data from these sensors is then processed and analysed to provide
information about the air quality.

Arduino can be used as the platform for building an air quality monitoring
system. The system can be designed to measure various pollutants such as
carbon monoxide, nitrogen dioxide, Sulphur dioxide, and particulate matter.
The sensors used to measure these pollutants can be connected to the
Arduino board using analog or digital pins. Arduino can be used as the
platform for building an air quality monitoring system. The system can be
designed to measure various pollutants such as carbon monoxide, nitrogen
dioxide, sulphur dioxide, and particulate matter. The sensors used to measure
these pollutants can be connected to the Arduino board using analog or
digital pins.

In addition to measuring pollutants, the air quality monitoring system can also
measure temperature, humidity, and atmospheric pressure. These
parameters can be used to provide a more comprehensive picture of the air
quality.

Procedure:

1. Open the tinker cad software. And open a new circuit file and change
the name as an air quality.
2. Go to components and search the Arduino and drag to the work place.
And again, go to search box and search Gas sensor, LED, Piezo, and
Resistor. Place it as shown in below figure.
3. Connect from 5V pin Arduino to Gas sensor A1,H1,A2. and from A0 pin
Arduino to B1. Connect ground pin to H2.
4. Connect B2 to resistor, that resistor is connected to Ground pin.
5. Connect piezo positive to -5pin, piezo negative to Ground pin
6. Connect resistor to LED terminal and that resistor to Arduino 4 pin. And
connect LED cathode to gnd.
7. After the connection, Go to blocks. Now click on variables and create a
variable. Now drag the set block to work space. Go to input block and
select the read analog pin A0 and place it beside of set pin as shown in
below figure.
8. Click on output and select to serial monitor and place it below of the set
pin and place the created variable in place of hello world.
9. Go to control block and select the if else block. Now go to Math block
and select the > or equal block, and place it on if block. Again, go to
variables and place to math block.
10.Click the output block and select the set pin high and place it on below
the if block. Again, select the set pin low and place it on below the else
block. Change values according to the circuit.

Blocks:

Circuit Diagram:
Code:

// C++ code

// int air_quality

= 0;
void setup()

pinMode(A0, INPUT);

Serial.begin(9600); pinMode(4,

OUTPUT); pinMode(5,

OUTPUT);

void loop()

air_quality = analogRead(A0);

Serial.println(air_quality); if

(air_quality >= 150) {

digitalWrite(4, HIGH);

digitalWrite(5, HIGH);

} else {

digitalWrite(4, LOW);

digitalWrite(5, LOW);

delay(10); // Delay a little bit to improve simulation performance

Result:
If I place smoke far away to gas sensor, I am getting lower values.

LED is glowing if I place near to gas-to-GAS Sensor.

You might also like