The MQ-8 is a gas sensor designed to detect hydrogen gas concentrations in the air. Manufactured by MQ-*, this sensor is widely used in gas leakage detection systems and various industrial applications. Its high sensitivity to hydrogen gas makes it an essential component for ensuring safety in environments where hydrogen gas is present.
Parameter | Value |
---|---|
Operating Voltage | 5V |
Load Resistance | 10kΩ (adjustable) |
Heating Consumption | < 800mW |
Sensing Resistance | 10kΩ - 60kΩ (in 1000ppm H2) |
Detection Range | 100 - 10000ppm |
Preheat Time | Over 24 hours |
Sensitivity | High sensitivity to hydrogen |
Pin No. | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V) |
2 | GND | Ground |
3 | DO | Digital output (High/Low) |
4 | AO | Analog output (proportional to H2) |
// MQ-8 Gas Sensor with Arduino UNO
const int analogPin = A0; // Analog input pin for AO
const int digitalPin = 2; // Digital input pin for DO
int analogValue = 0; // Variable to store analog value
int digitalValue = 0; // Variable to store digital value
void setup() {
Serial.begin(9600); // Initialize serial communication
pinMode(digitalPin, INPUT); // Set digital pin as input
}
void loop() {
analogValue = analogRead(analogPin); // Read analog value from AO
digitalValue = digitalRead(digitalPin); // Read digital value from DO
// Print the values to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(analogValue);
Serial.print(" | Digital Value: ");
Serial.println(digitalValue);
delay(1000); // Wait for 1 second before next reading
}
No Response from Sensor:
Inaccurate Readings:
Digital Output Always High/Low:
By following this documentation, users can effectively integrate the MQ-8 gas sensor into their projects, ensuring accurate detection of hydrogen gas concentrations and enhancing safety in various applications.