

Mq7adapter
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
1README
README.mdMQ7 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

Schematics

Bill of materials
| Qty | Reference | Value | Notes |
|---|---|---|---|
| 1 | C1 | 100nF | |
| 1 | J1 | Conn 1x4 | |
| 1 | Q1 | IRLML2502 | Or other SOT23 N-channel mosfet, e.g. SL2310 |
| 1 | R1 | 75 | or 82Ω/86Ω. See Note on selection of R1 |
| 2 | R2,R3 | 1k | |
| 1 | R4 | 470 | |
| 1 | R5 | 100 | Or 0Ω See note on R5 |
| 1 | U1 | MQ-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| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole_Pad | MountingHole:MountingHole_2.5mm_Pad | H1, H2, H3, H4 |
| 2 | 1k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R2, R3 |
| 1 | 0 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R5 |
| 1 | 100nF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C1 |
| 1 | 470 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R4 |
| 1 | 75 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1 |
| 1 | Conn_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | IRLML2502 | Package_TO_SOT_SMD:SOT-23_Handsoldering | Q1 |
| 1 | MQ-7 | Sensor:MQ-6 | U1 |
The 13 most common of 15 parts.
Similar boards
- 4 layers60 × 28 mm

- 8 layers120 × 60 mm

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 mm

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 mm

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 mm

- 2 layers158 × 34 mm

- 2 layers30.5 × 119.1 mm

PlantWatering
MadsBornebusch/PlantFriends
Soil moisture sensor and plant watering with an ESP8266
19 parts6GPL-3.0 - 2 layers21.4 × 25.2 mm

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.