38. MQ5 Analog Gas Sensor Brick

38.1. Introduction

MQ-5 Gas sensor has a good sense to liquefied gas, natural gas and coal gas that are widely used in cities, but it doesn’t work on ethanol or smoke.

../../_images/04029_01.png

38.2. Characteristics


  • Standard 3-pin GVS port is easy to plug.

38.3. Specification


Item Parameter
SKU EF04029
Connections Type Analog
Pins Definition S-Sigal V-VCC G-GND
Working Voltage 3V
Size 38x27mm

Size:

38.4. Outlook and Dimension


../../_images/04029_02.png

38.5. Quick to Start


Materials required and connections diagram


  • Connect to P1 port as the picture shows.

Take sensor:bit for example

../../_images/04029_03.png

Program as the picture shows

../../_images/04029_04.png

Reference

Link:https://makecode.microbit.org/_KJVXj9Co2UXU

You can also download it directly below:

---

Result

  • Preheat it for 3 minutes after connections, detect the gas by approaching the probes to the gas while the returned value is almost stable.

  • With the change of the Carbon Monoxide’s concentration, the returned value gets bigger with the growing of it.

38.6. Revelent Case


38.7. Technical File