The MQ-3 Gas Sensor, manufactured by Hanwei Electronics (Part ID: MQ-3), is a versatile and reliable sensor designed to detect various gases, including alcohol, carbon monoxide, and methane. It operates on the principle of resistive change in the presence of target gases, providing an analog output proportional to the gas concentration. This sensor is widely used in breathalyzers, gas leak detection systems, and environmental monitoring applications.
Explore Projects Built with MQ-3 Gas Sensor
Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
This circuit is designed for environmental monitoring, featuring an Arduino UNO microcontroller interfaced with three different gas sensors: MQ-7 for carbon monoxide (CO) detection, MQ131 for ozone (O3) measurement, and MQ-135 for general air quality assessment. The sensors are powered by the Arduino's 5V output and their analog signals are read through the Arduino's analog input pins A0, A1, and A2 respectively. The embedded code reads the analog values from the sensors and outputs the readings via the serial interface, allowing for real-time monitoring of the gases.
This circuit is designed to monitor various gases using a series of MQ gas sensors (MQ-2, MQ-3, MQ-4, MQ-5, MQ-6, MQ-7, MQ-8, MQ-9, and MQ-135), each providing digital outputs to an Arduino UNO microcontroller. The Arduino is also connected to a piezo speaker for audible alerts and multiple LEDs with resistors, likely for visual status indicators. An Adafruit TCA9548A I2C multiplexer is included, suggesting the potential for I2C sensor expansion or managing multiple I2C devices.
This is a simple gas detection alarm system that uses an MQ-2 sensor to detect gas presence and sound a buzzer when gas is detected. It is powered by a rechargeable 18650 battery, with a TP4056 module for battery management and charging. A rocker switch is used to control the power to the system.
This circuit is an air quality monitoring system using an Arduino UNO microcontroller connected to three different gas sensors: MQ-7 for carbon monoxide, MQ131 for ozone, and MQ-135 for general air quality. The Arduino reads analog signals from these sensors and outputs the readings via the serial interface for monitoring purposes.
The MQ-3 Gas Sensor is designed for ease of use and integration into various systems. Below are its key technical details:
Key Technical Details
Parameter
Value
Operating Voltage
5V DC
Load Resistance (RL)
200Ω to 10kΩ
Heater Voltage (VH)
5V ± 0.2V
Heater Power Consumption
≤ 800mW
Detection Range
0.04 mg/L to 4 mg/L (alcohol)
Preheat Time
≥ 24 hours
Output Signal
Analog (voltage)
Sensitivity
High sensitivity to alcohol
Operating Temperature
-20°C to 50°C
Humidity Range
≤ 95% RH
Dimensions
18mm x 18mm x 15mm
Pin Configuration and Descriptions
The MQ-3 sensor typically comes with six pins, but only four are used in most applications. Below is the pin configuration:
Pin Number
Label
Description
1
H1
Heater pin 1 (connect to 5V)
2
A
Analog output pin (connect to ADC input)
3
B
Analog output pin (alternative, often unused)
4
H2
Heater pin 2 (connect to GND)
5
NC
Not connected
6
NC
Not connected
Note: Pins A and B are internally connected, so either can be used for the analog output.
Usage Instructions
The MQ-3 Gas Sensor is straightforward to use in a circuit. Follow the steps below to integrate it into your project:
Circuit Connection
Power the Heater: Connect pin H1 to a 5V DC power supply and pin H2 to ground. This powers the internal heating element, which is necessary for gas detection.
Connect the Output: Connect pin A (or B) to an analog input pin of your microcontroller or ADC (Analog-to-Digital Converter).
Load Resistor: Place a load resistor (RL) between the analog output pin (A or B) and ground. The value of RL can be adjusted based on the desired sensitivity and application, typically between 200Ω and 10kΩ.
Preheat the Sensor: Allow the sensor to preheat for at least 24 hours before taking accurate measurements.
Important Considerations
Preheating: The sensor requires a preheating period of at least 24 hours for optimal performance. During this time, the internal heater stabilizes the sensor's characteristics.
Calibration: For precise gas concentration measurements, calibrate the sensor in a controlled environment with known gas concentrations.
Ventilation: Ensure proper ventilation around the sensor to avoid saturation and ensure accurate readings.
Power Supply: Use a stable 5V power supply to avoid fluctuations in the heater voltage, which can affect sensitivity.
Example Code for Arduino UNO
Below is an example of how to use the MQ-3 Gas Sensor with an Arduino UNO to measure alcohol concentration:
// MQ-3 Gas Sensor Example Code for Arduino UNO
// Connect the analog output pin (A or B) of the MQ-3 to Arduino A0
// Connect H1 to 5V and H2 to GND for the heater
const int sensorPin = A0; // Analog pin connected to MQ-3 output
int sensorValue = 0; // Variable to store the sensor reading
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
Serial.println("MQ-3 Gas Sensor Test");
}
void loop() {
// Read the analog value from the sensor
sensorValue = analogRead(sensorPin);
// Convert the analog value to a voltage (assuming 5V reference)
float voltage = sensorValue * (5.0 / 1023.0);
// Print the sensor value and voltage to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.print(voltage);
Serial.println(" V");
// Add a delay for stability
delay(1000);
}
Note: The above code provides raw sensor readings and voltage. For accurate gas concentration measurements, you will need to calibrate the sensor and apply the appropriate conversion formula.
Troubleshooting and FAQs
Common Issues and Solutions
Issue
Possible Cause
Solution
No output or unstable readings
Insufficient preheating time
Ensure the sensor is preheated for 24 hours.
Incorrect or fluctuating readings
Unstable power supply
Use a regulated 5V power supply.
Sensor not responding to gas
Load resistor value is too high or low
Adjust RL to an appropriate value (200Ω–10kΩ).
Overly sensitive or saturated
Poor ventilation or high gas levels
Ensure proper ventilation around the sensor.
FAQs
Can the MQ-3 detect gases other than alcohol?
Yes, the MQ-3 can detect other gases like carbon monoxide and methane, but it is most sensitive to alcohol.
How do I calibrate the MQ-3 sensor?
Calibration involves exposing the sensor to a known concentration of gas and adjusting the load resistor or software calculations to match the expected output.
What is the lifespan of the MQ-3 sensor?
The sensor typically lasts for several years with proper usage and maintenance.
Can I use the MQ-3 with a 3.3V system?
The heater requires 5V, but the analog output can be interfaced with a 3.3V ADC using a voltage divider.
By following this documentation, you can effectively integrate and use the MQ-3 Gas Sensor in your projects.