Skip to the content
2 layers42.3 × 24.5 mmMq7adapter, the printed circuit board in 3D

MQ7 Adapter Board

Size
42.3 × 24.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
7
Pads
29
Tracks, vias
74, 0
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
1 Jan 2025
Updated
3 Jan 2025

Overview

Mq7adapter is an open-source printed circuit board by fablab-paderborn, from the fablab-paderborn/mq7-adapter-board repository on GitHub. It is a 2-layer board of 42.3 × 24.5 mm with 15 parts on 7 nets, routed with 74 tracks and 0 vias.

It is built around the IRLML2502. Its parts include 5 resistors, 1 capacitor, 1 IC, 1 transistor and 1 connector.

Main components

1

README

README.md

MQ7 Adapter Board

This board implement the circuit proposed by home assistant to enable the proper cycling of the sensor: https://devices.esphome.io/devices/MQ-7

It provides a cleaner and easier to accomplish (in some regards) solution compared to modifying the original breakout board. You can also source the parts without the original board.

This board does not include a power led that is lit when 5V is present as I did not find that particular useful.

Notes

There are a few design choices for the board. Some of them them, e.g. the selection of R1 also apply if you do the modification on the original breakout board.

Selection of R1

The MQ7 and MQ7B require different resistors for R1. The 75Ω used in the circuit here will result in 1.5V voltage across the heating element in the MQ7 when HEAT input is low, which is the required value for the MQ7B. If you are using a MQ7, the voltage should be 1.4V. This requires R1 to be 82Ω or 86Ω assuming 33Ω for the heater itself.

It should also be possible to leave R1 unpopulated and use PWM with a duty cycle that is equivalent to 1.4V/1.5V instead and save the 160mW that this resistor burns but I have not tested that.

Selection of R5

When going with the original schematics, R5 is 0Ω and just be bridged by solder. If you want to play a bit safer and protect the IO pin of ESP, it is recommended to use something like 100Ω here.

Order of pins

Please note that VCC and GND are reversed in comparison to the common MQ7 breakout board that constantly heats the sensor.

Holes for the MQ7 sensor

The holes for the MQ7 are 1mm. This is enough for new sensors. If you desoldered an MQ7 sensor, you might need to enlarge the holes a bit to fit a desoldered sensors or adjust the hole sizes in the project.

Finished board

image

Schematics

image

Bill of materials

QtyReferenceValueNotes
1C1100nF
1J1Conn 1x4
1Q1IRLML2502Or other SOT23 N-channel mosfet, e.g. SL2310
1R175or 82Ω/86Ω. See Note on selection of R1
2R2,R31k
1R4470
1R5100Or 0Ω See note on R5
1U1MQ-7

The IRLML2502 transistor is the one that I had on hand and used. The original modification recommends the SL2310. But any N-Channel mosfet with V_GS < 3.3V that can handle the ~150 mA should work fine.

License

This project is licensed under the CC BY-SA 4.0 license

Parts

15
QtyValueFootprintReferences
4MountingHole_PadMountingHole:MountingHole_2.5mm_PadH1, H2, H3, H4
21kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2, R3
10Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR5
1100nFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1
1470Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR4
175Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1IRLML2502Package_TO_SOT_SMD:SOT-23_HandsolderingQ1
1MQ-7Sensor:MQ-6U1

The 13 most common of 15 parts.

Similar boards

  • 4 layers60 × 28 mmRailLink, the printed circuit board in 3D

    RailLink

    Misaka0x2730/RailLink

    Compact isolated version of J-Link v9.

    83 parts134
  • 8 layers120 × 60 mmDFTBoard, the printed circuit board in 3D

    DFTBoard

    juliancoy/zynqPCB

    An 8-layer board in Kicad built upon Xilinx Zynq Chip. Includes sound output, HDMI, DDR3, and Arduino Uno style header for screen connection

    299 parts75MIT
  • 2 layers92.5 × 82.8 mmRifle and sensors, the printed circuit board in 3D

    Rifle and sensors

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    268 parts16
  • 4 layers122.2 × 115.1 mmScan controller kicad, the printed circuit board in 3D

    Scan controller kicad

    fwachsmuth/Filmkorn-Raw-Scanner

    The Filmkorn Raw Scanner, turning 8mm and 16mm films into lossless 12-bit CinemaDNG

    170 parts13MIT
  • 2 layers68 × 81.5 mmController, the printed circuit board in 3D

    Controller

    orlopau/coffee-scale

    Scale for espresso and filter coffee.

    55 parts11
  • 2 layers158 × 34 mmTaggerMainboard, the printed circuit board in 3D

    TaggerMainboard

    Infinitag/Hardware

    Files for the INFINITAG hardware

    75 parts6
  • 2 layers30.5 × 119.1 mmPlantWatering, the printed circuit board in 3D

    PlantWatering

    MadsBornebusch/PlantFriends

    Soil moisture sensor and plant watering with an ESP8266

    19 parts6GPL-3.0
  • 2 layers21.4 × 25.2 mmCicada pwm esc, the printed circuit board in 3D

    Cicada pwm esc

    mars2860/cicada

    The quadcopter based on ESP8266 wifi module

    32 parts6GPL-3.0

Questions

How big is the Mq7adapter PCB?

It measures 42.3 × 24.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Mq7adapter use?

15 parts, built around the IRLML2502. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Mq7adapter KiCad files?

From the fablab-paderborn/mq7-adapter-board repository on GitHub, at the commit this page was made from: the board is mq7adapter.kicad_pcb and its schematic mq7adapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mq7adapter design in my own project?

Its repository states no licence, so its author keeps all rights: ask fablab-paderborn before reusing the design.