Skip to the content
PCBKitNew board
2 layers100 × 100 mmGas sensor, the printed circuit board in 3D

Arduino compatible gas sensor

Size
100 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
37
Nets
34
Pads
158
Tracks, vias
389, 43
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
4 Dec 2018
Updated
31 May 2019

Overview

Gas sensor is an open-source printed circuit board by Hackuarium, from the Hackuarium/gas-sensor repository on GitHub. It is a 2-layer board of 100 × 100 mm with 37 parts on 34 nets, routed with 389 tracks and 43 vias.

It is built around the ATMEGA328P-AU, DHT22 and DS18B20, with the MQ-4 among its other parts. Its parts include 7 capacitors, 7 connectors, 6 resistors, 4 ICs and 3 diodes. It belongs with the sensors and measurement boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

4

README

README.md

gas-sensor

The goal is to create a box allowing the determination of the gas composition of a bioreactor. The sensor that will be available are: CO2 (MH-Z19), H2 (MQ-8) and methane (MQ-4) as well as temperature (DS18B20) and humidity (DHT-22).

The board will be compatible with arduino Lilapad Pro using a dedicated PCB.

Need to compensate for humidity and temperature ???

Cloning the project

This project uses SUBMODULES

In order to clone use:

git clone --recurse-submodules https://github.com/hackuarium/gas-sensor

To update the submodules

git submodule update --recursive --remote

Sensors

name_pinfunctionmodelArduino library
CH4CH4MQ-4
H2H2MQ-8
CO2CO2MH-Z193.3v (for RX / TX) + 5v!!!!https://github.com/crisap94/MHZ19
TEMPtemperatureDS18B20
HUMhumidityDHT-22https://github.com/adafruit/DHT-sensor-library

Gaz sensor: http://www.china-total.com/Product/meter/gas-sensor/Gas-sensor.htm

Gaz sensor on sparkfun: https://www.sparkfun.com/products/8891 https://www.sparkfun.com/products/9404

Gaz sensor on mysensors: https://www.mysensors.org/build/gas

Drying the air / pumping Particulate or Coalescing Filters http://www.pneumaticplus.com/pneumaticplus-saf4000-series-particulate-air-filter-1-2-npt-with-bracket/ https://www.aliexpress.com/item/15L-M-12V-dc-electric-diaphragm-brush-small-air-compressor-pump/1790013118.html

Fans

https://www.pelonistechnologies.com/micro-fans

Pneumatic https://www.alibaba.com/product-detail/A102-China-sup

Pinout

n° Arduinoportpin
A0PC0A0H2
A1PC1A1H2_ON
A2PC2A2CO2_RX
A3PC3A3CO2_TX
A4PC4SDASlave I2C
A5PC5SCLSlave I2C
A6ADC6A6CH4
A7ADC7A7CH4_ON
0PD0RXFTDI
1PD1TXFTDI
2PD2D2/
3PD3D3PWM_MH-Z19PWM
4PD4D4TEMPERATURE
5PD5D5HUMIDITYPWM
6PD6D6LCD RSPWM
7PD7D7/
8PB0D8LCD E
9PB1D9LCD LEDPWM
10PB2D10LCD1PWM
11PB3MOSI D11LCD2PWM
12PB4MISO D12LCD3
13PB5SCK D13LCD4

n.b: Two pins (PD2 and PD7) are free and could be used to add a fourth sensor.

Power supply

  • plug for 5V
  • MCP1703-33 for µC power supply

Schematic

Here is the schematic of the main components of the project:

ATMega328P:

Sensors:

Others (LCD, crystal and voltage regulator):

List of components

Type Value QuantityFootprint
Resistor1M10805 Handsolder
Resistor10k20805 Handsolder
Resistor4.7k20805 Handsolder
Resistor4.710805 Handsolder
Potentiometer1TRIM_3362R-1-222
Capacitor10µF20805 Handsolder
Capacitor100nF30805 Handsolder
Capacitor18pF20805 Handsolder
Diode Shottky3D_SOD-123
BSP752SOT-223-3_TabPin3
Crystal8Mhz1Crystal_SMD_5032 Handsolder
MCP-1703A1SOT-23
ATMega328P-AU1TQFP-32_7x7mm_P0.8mm
5V power source1BarrelJack_Horizontal 
RJ121RJ12_Amphenol_54601
LCD Screen1WC1602A
MHZ-19 (CO2)1footprints: MHZ-19
MQ-4 (CH4)1footprints: MQ-4
MQ-8 (H2)1footprints: MQ-8
DHT22 (Hum)1footprints: DHT-22_HOR
DS18B20 (Temp)1TO-92_Inline

Inspiration for PCB

Get inspired from scale board

Parts

37
QtyValueFootprintReferences
4holeMountingHole:MountingHole_3.2mm_M3J3, J4, J5, J6
3100nFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC4, C5, C6
3D_SchottkyDiode_SMD:D_SOD-123D1, D2, D3
210kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR3, R5
210uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC3, C7
218pFCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderC1, C2
2BSP75Package_TO_SOT_SMD:SOT-223-3_TabPin3Q1, Q2
11MResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR1
14,7Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR2
14,7kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR6
14.7kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR4
15V_Power_sourceConnector_BarrelJack:BarrelJack_HorizontalJ7
18MHzCrystal:Crystal_SMD_5032-2Pin_5.0x3.2mm_HandSolderingY1
1ATmega328P-AUPackage_QFP:TQFP-32_7x7mm_P0.8mmU2
1Conn FT232RLConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1
1DHT22footprints:DHT22_HORU3
1DS18B20Package_TO_SOT_THT:TO-92_InlineU1
1ICSPConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalSP1
1LOGOfootprints:hackuariumG1
1MCP1703A-1202_SOT23Package_TO_SOT_SMD:SOT-23U4
1MH-Z19footprints:MH-Z19GS3
1MQ-4footprints:MQ-4GS1
1MQ-8footprints:MQ-8GS2
1RJ12Connector_RJ:RJ12_Amphenol_54601J2
1R_POTTRIM_3362R-1-222:TRIM_3362R-1-222RV1
1WC1602ADisplay:WC1602ADS1

Questions

How big is the Gas sensor PCB?

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

What parts does the Gas sensor use?

37 parts, built around the ATMEGA328P-AU, DHT22, DS18B20 and MQ-4. 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 Gas sensor KiCad files?

From the Hackuarium/gas-sensor repository on GitHub, at the commit this page was made from: the board is kicad/gas-sensor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Gas sensor design in my own project?

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

Similar boards

  • 2 layers67 × 122 mmGasmeter handheld device, the printed circuit board in 3D

    Gasmeter handheld device

    cs99x/GasMonitorLoRaCloud

    This project is a mobile and embedded application for a university course called "Mobile and Embedded Development".

    76 parts
  • 2 layers80 × 60 mmHelmeto, the printed circuit board in 3D

    Helmeto

    irfan5122/Helmeto

    A mobile application for fireforce helemt

    26 parts
  • 2 layers26.9 × 49.3 mmLight display sensor, the printed circuit board in 3D

    Light display sensor

    vatral/nodemcu_light_sensor

    NodeMCU light level sensor

    21 partsGPL-3.0
  • 2 layers85.1 × 65.4 mmTx module, the printed circuit board in 3D

    Tx module

    koushik12328/Smart_mining_helmet

    An ESP32-powered safety helmet featuring gas detection, impact sensing, and IoT connectivity

    27 partsMIT
  • 2 layers162 × 60 mmEsp shield, the printed circuit board in 3D

    Esp shield

    felixwittwer/homeassistant_automaic_greenhouse

    A cool Project to make your greenhouse smart. What about automaic irrigation and collecting enviromental data right from your garden.

    20 parts27
  • 2 layers74.9 × 40.6 mmAnavi thermometer, the printed circuit board in 3D

    Anavi thermometer

    AnaviTechnology/anavi-thermometer

    WiFi Smart Thermometer with ESP8266, DHT22, DS18B20, OLED display and slots for up to 3 I2C sensor modules

    25 parts17
  • 2 layers69 × 42 mmWeatherPV, the printed circuit board in 3D

    WeatherPV

    philipparndt/weather-station

    Features: - POE power supply - Ethernet - Custom MQTT messages - Packed in a electrical junction box

    26 parts1
  • 2 layers126.2 × 143.6 mmSciencepcb, the printed circuit board in 3D

    Sciencepcb

    Sidbit08/ABEX_PCB_v1

    A custom ESP32-S3-based PCB designed in KiCad for automated soil sample analysis, featuring drivers and interfaces for environmental sensors, peristaltic pumps, and auger drilling actuators.

    100 parts1