MQ-2-gas detector
szpuszi·MQ-2-gas-detector·hardware/gas_detector.kicad_pcb
About the MQ-2-gas detector PCB
MQ-2-gas detector is an open source AVR/Arduino PCB design by szpuszi, published on GitHub under the MIT license. It is a 2-layer board measuring 65.8 × 68 mm, with 15 components from 9 distinct parts.
Its main chip is the ATMEGA328P-P, from the AVR/Arduino family. By type, the board carries 6 capacitors, 4 resistors, 2 connectors and 1 IC.
From the project
just a gas detector lol
I made this because I wanted to practice making PCBs and create a practical safety device. I use it by letting it sit and monitor gas levels in my room to ensure I'm in a safe environment.

Main components on the MQ-2-gas detector
MQ-2-gas detector bill of materials (BOM)
15 components, 9 distinct parts — part numbers from the project's BOM.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | ATMEGA328P-P ATmega328P-P | DIP-28_W7.62mm | U1 |
| 1 | ISP | PinHeader_2x03_P2.54mm_Vertical | J1 |
| 1 | CONN_01X08 Conn_01x08 | PinHeader_1x08_P2.54mm_Vertical | J2 |
| 1 | 16MHz | Crystal_HC49-U_Vertical | HC-49 |
| 1 | MQ-2 | PinHeader_1x04_P2.54mm_Vertical | MQ-2 |
| 4 | 100NF 100nF | C_Disc_D5.0mm_W2.5mm_P5.00mm | C1, C2, C5, C6 |
| 2 | 22PF 22pF | C_Disc_D5.0mm_W2.5mm_P5.00mm | C3, C4 |
| 3 | 220R | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R3 |
| 1 | 10K | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4 |
MQ-2-gas detector design files
The KiCad project lives in the szpuszi/MQ-2-gas-detector repository on GitHub; these links point at the commit this page was built from.
MQ-2-gas detector: common questions
What microcontroller does the MQ-2-gas detector use?
The MQ-2-gas detector is built around the ATMEGA328P-P, from the AVR/Arduino family.
How big is the MQ-2-gas detector PCB?
The MQ-2-gas detector measures 65.8 × 68 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the MQ-2-gas detector?
15 components, from 9 distinct parts, with part numbers taken from the project's own BOM. The full bill of materials is listed on this page.
Where can I download the MQ-2-gas detector design files?
From the szpuszi/MQ-2-gas-detector repository on GitHub, which has the KiCad layout, the schematic and the BOM; the links under Design files point to each one.
Can I use the MQ-2-gas detector design in my own project?
Yes, under the terms of its MIT license, which szpuszi chose for the repository.
Can I test firmware for the MQ-2-gas detector without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
Similar boards
AVR/Arduino
Magspoof
samyk
35 × 29 mm11 parts2LNo license4.2kAVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
Labrador
espotek-org
36.8 × 34.7 mm75 parts2LNo license1.2kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0k