Joy-IT SEN-MQ-2 Gas Sensors Instruction Manual

June 9, 2024
JOY-It

Joy-IT SEN-MQ-2 Gas Sensors

Specifications

  • Brand: Joy-IT powered by SIMAC Electronics GmbH
  • Model : SEN-MQ
  • Manufacturer Address: Pascalstr. 8, 47506 Neukirchen-Vluyn
  • Website: www.joy-it.net

Product Information

The gas sensor SEN-MQ is designed to measure various gases depending on the specific sensor type. It requires a warm-up phase to provide accurate readings. The digital output sensitivity can beadjusted using the blue potentiometer on the board.

Device Overview

There are different types of MQ gas sensors available:

  • SEN-MQ-2: LPG, Butane, Propane, Methane, Hydrogen, Alcohol, Smoke
  • SEN-MQ-3: Ethanol, Alcohol, Hydrogen Concentration
  • SEN-MQ-4: CNG, Methane
  • SEN-MQ-5: LPG, Propane, Methane, Butane, Natural Gases
  • SEN-MQ-6: LPG, Butane, Propane, Methane, Combustible Gases
  • SEN-MQ-7: Carbon Monoxide (CO), Hydrogen
  • SEN-MQ-8: Benzol, Ammoniak, Sulfid, Smoke, Nitrogen Oxides
  • SEN-MQ-135: Air Pollutants

Product Usage with Raspberry Pi

The gas sensor is an analog sensor and requires an analog-to-digital converter (ADC) and a logic-level converter to connect to a Raspberry Pi. Follow the provided instructions for setup and connection:

  1. Connect Raspberry Pi to ADC and logic level converter as per the diagram and table provided.
  2. Install necessary dependencies and set up a virtual environment for ADC library installation.
  3. Download the code example from the provided link and execute it to start using the gas sensor with Raspberry Pi.

FAQ

  • Q: What should I do if I encounter unexpected problems during product use?
  • A: If you face any unexpected issues while using the product, please contact us for assistance.
  • Q: Can the sensitivity of the digital output be adjusted for all sensor types?
  • A : Yes, the sensitivity of the digital output can be adjusted using the blue potentiometer on the board for all sensor types.

GENERAL INFORMATION

Dear customer,
thank you for purchasing our product. In the following, we will show you what you need to bear in mind when commissioning and using. Should you encounter any unexpected problems during use, please do not hesitate to contact us.

DEVICE OVERVIEW

  • Please note that the sensor requires a warm-up phase in order to provide accurate readings.

There are many different MQ gas sensors, which differ mainly in the gases they measure. Connection and programming are the same for all sensors. Here is an overview of the different MQ gas sensor types:

  • The sensitivity of the digital output of the sensors can be adjusted using the blue potentiometer on the board.

USE WITH THE RASPBERRY PI

  • These instructions were written under Raspberry Pi OS Bookworm for the Raspberry Pi 4 and 5. It has not been checked with newer operating systems or hardware.
  • This gas sensor is an analog sensor and since the Raspberry Pi has no analog inputs, you must use an analog-to-digital converter. You will also need a 3V to 5V logic-level converter. In this example, the ADC COM-KY053 and the logic level converter COM-KY051 from Joy-it are used.

Connect the sensor as shown in the diagram and the table.

Raspberry Pi COM-KY051 ADC Sensor
GND GND GND GND
5 V VCCb VDD VCC
3 V VCCa
GPIO 17 A3
B3 D0
A0 A0
SCL / GPIO3 A2
B2 SCL
SDA / GPIO2 A1
B1 SDA

Code example:

To use the ADC, some dependencies must first be installed. To do this, carry out the following steps one after the other. Enter the following command to access the Raspberry Pi Config at

Navigate to the Interfacing Options item and activate the I2C interface. Now install pip3 with the following command

Next, you need to set up a virtual environment to install the ADC’s library. To do this, enter the following commands:

Now install the Adafruit-Circuitpython-ADS1x15 library with the following command:

Now you can download the prepared code example with this command:

wget https://joy-it.net/files/files/Produkte/SEN-MQ2/SEN-MQ-Python.zip

Now unpack the .zip file and remove the .zip file again with the following command:

You can now execute the example with the following command:

Alternatively, you can copy the code example here manually and paste it into your Python file

The higher the analog input signal, the higher the corresponding gas value of the sensor. The value range extends from 0 to 5 V. The D0 pin of the sensor is automatically set to LOW when the limit value is reached. You can set the limit value using the blue potentiometer on the circuit board.

USE WITH THE ARDUINO

Connect the sensor as shown in the diagram and the table.

Copy the following code example into your programming environment and upload it to your Arduino. Alternatively, you can also download the code example here download.

The higher the analog input signal, the higher the corresponding gas value of the sensor. The value range is from 0 to 1023. The D0 pin of the sensor is automatically set to LOW when the limit value is reached. You can set the limit value using the blue potentiometer on the circuit board.

INFORMATION & TAKE-BACK OBLIGATIONS

Our information and take-back obligations under the German Electrical and Electronic Equipment Act (ElektroG)

Symbol on electrical and electronic equipment:

This crossed-out garbage can means that electrical and electronic appliances do not belong in household waste. You must hand in the old appliances at a collection point. Before handing them in, you must separate used batteries and accumulators that are not enclosed by the old appliance.

Return options
As an end user, you can hand in your old appliance (which essentially fulfils the same function as the new appliance purchased from us) for disposal free of charge when purchasing a new appliance. Small appliances with no external dimensions greater than 25 cm can be disposed of in normal household quantities regardless of whether you have purchased a new appliance.

Possibility of return at our company location during opening hours

SIMAC Electronics GmbH, Pascalstr. 8, D-47506 Neukirchen-Vluyn

Return option in your area

We will send you a parcel stamp with which you can return the device to us free of charge. To do so, please contact us by e-mail at Service@joy- it.net or by telephone.

Packaging information
Please pack your old appliance securely for transportation. If you do not have suitable packaging material or do not wish to use your own, please contact us and we will send you suitable packaging.

CONTACT

SUPPORT

We are also there for you after your purchase. If you still have any questions or problems arise, we are also available by e-mail, telephone and ticket support system.

  • E-Mail : [email protected]
  • Ticket-System: https://support.joy-it.net
  • Phone : +49 (0)2845 9360 – 50 (Mon – Thur: 09:00 – 17:00 o’clock CET,
  • Fri: 09:00 – 14:30 o’clock CET)
  • For further information, please visit our website:
  • www.joy-it.net
  • Published: 2024.04.17
  • SIMAC Electronics GmbH Pascalstr. 8 47506 Neukirchen-Vluyn

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

JOY-It User Manuals

Related Manuals