Objective
This experiment uses the MiCS5524 gas sensor to measure the concentration of oxygen in the air.
Required Components
- MiCS5524 Gas Sensor
- Arduino Board (e.g., Arduino Uno)
- Jumper wires
- Breadboard
Working Principle
The MiCS5524 sensor detects oxygen levels by monitoring changes in its resistance in response to the gas's presence in the air.
Circuit Wiring
Follow the steps below to connect the MiCS-5524 gas sensor to the Arduino board:
- Connect the VCC pin of the MiCS-5524 sensor to the 5V pin of the Arduino.
- Connect the GND pin of the MiCS-5524 sensor to the GND pin of the Arduino.
- Connect the AIN (analog output) pin of the MiCS-5524 sensor to the A0 analog pin of the Arduino.
- If using the DOUT (digital output) pin for threshold-based detection, connect it to any available digital pin on the Arduino (e.g., D2).
Make sure to use a breadboard and jumper wires for secure and organized connections. Verify all connections before powering the circuit to prevent any short circuits.
Arduino Code
/*
* Oxygen Level Detection with MiCS5524
* This code reads the oxygen concentration from the MiCS5524 sensor.
*/
const int sensorPin = A0; // MiCS5524 sensor connected to analog pin A0
int sensorValue = 0;
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the sensor value
Serial.print("Oxygen Level: ");
Serial.println(sensorValue);
delay(1000); // Wait for 1 second before the next reading
}
Results
The serial monitor will display the oxygen concentration detected by the sensor.
Applications
- Air quality monitoring
- Medical respiratory systems
- Oxygen level detection in confined spaces
Conclusion
The MiCS5524 gas sensor is a useful tool for detecting oxygen levels, with applications in air quality monitoring, medical systems, and confined space safety.