Skip to the content
2 layers92 × 46 mmRS485-Gassensor, the printed circuit board in 3D

a compact, cheap gas sensor with RS-485 connectivity

Size
92 × 46 mm
Copper layers
2
Thickness
1.6 mm
Parts
92
Nets
66
Pads
289
Tracks, vias
598, 203
Pours
7
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
3 Jul 2023
Updated
8 Feb 2024

Overview

RS485-Gassensor is an open-source printed circuit board by Sarbf1, from the Sarbf1/Gas-sens_Rs-485 repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 92 × 46 mm with 92 parts on 66 nets, routed with 598 tracks and 203 vias.

It is built around the AD8676BR. Its parts include 31 resistors, 16 capacitors, 10 connectors, 9 ICs and 2 diodes. It belongs with the interfaces and adapters and sensors and measurement boards and the STM32 boards of this library.

Main components

1

README

README.md

Gas-sens_Rs-485

a Compact, cheap gas sensor with RS-485 connectivity

Concept:

24V supplied, Gas detector with half-duplex RS-485 interface. For industrial or home use and application ready product, containing a current or voltage output for reference measurment. a sinlge LED used for showing cominucation or Error state. The small footprint makes it ready for most plastic enclosures. the PCB can be hand-solderd with a bit of skill. Use cases can be in Garage systems (linked with the vents and gas alarm system), hobbyist workshop or any other room such as Office spaces and schools.

front-view back-view

Components

A STM32G031K8 is the logical unit. Is is cheap and readily available. The very most components use standart fooprints. Thus, they are easily exchangeble in case of a shortage. All parts are SMD, except for the Sensors, DCDC converter and Connectors. All PCB components can be sourced by Mouser, except for the Gas Sensor. For developement purposes (TAG v0.1) a gas sensor type MQ-X were used (MQ-7 and MQ-135) TAG v0.2 makes use of the nemoto sensor, that uses low current and is more gas specific. The I2C conection gives a possibility, to further extend with more sensors, such as the Sensirion SHT4X.

Programming

Hardware is developed in KiCad 7.0.

everything is programmed on STM Cube IDE. The Sensor and trim potentiometers are read-in using DMA. The max and minimum values of the potentiometers can be set by the Modbus. the specific address are found in the excel-table "Modbus-memorymap" in the software folder.

Simulation

Low pass filter for the PWM (from uC to OpAmp to voltag eand current output) has been simulated using LTSpice.

next steps

  • PWM filter simulations
  • build and test prototype
  • Prgram IC for analog measurment and analog output
  • Find better sensor supplier and include it on second version PCB -> nemoto sensors
  • implement Modbus via RS-485
  • create Bill of material
  • Make second physical prototype

Parts

92
QtyValueFootprintReferences
13R10KResistor_SMD:R_0603_1608MetricR1, R2, R3, R4, R5, R6, R7, R10, R24, R25, R29, R30, R31
51kResistor_SMD:R_0603_1608MetricR9, R15, R17, R27, R28
4CAP1uFCapacitor_SMD:C_1206_3216MetricC6, C9, C10, C12
4CAP1uFCapacitor_SMD:C_0603_1608MetricC11, C13, C14, C15
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3, H4
4R_Poti_1KPCM_Potentiometer_SMD_AKL:Potentiometer_Bourns_3214J_HorizontalRV1, RV2, RV3, RV4
32.2kResistor_SMD:R_0603_1608MetricR14, R16, R19
210Resistor_SMD:R_0603_1608MetricR8, R26
210KRResistor_SMD:R_0603_1608MetricR22, R23
2470nFCapacitor_SMD:C_0603_1608MetricC4, C8
2CAP100nFCapacitor_SMD:C_0603_1608MetricC7, C16
2Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ6, J7
2Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ8, J9
2FiducialFiducial:Fiducial_1.5mm_Mask3mmFID1, FID2
2MCP6002-xMSPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3, U6
2R1KResistor_SMD:R_0603_1608MetricR18, R20
2R470Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR11, R21
2Screw_Terminal_01x06Connector_Phoenix_SPT:1071000J4, J5
2Screw_Terminal_01x08Connector_Phoenix_SPT:1862068J1, J3
1AD8676Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU9
1AP2127N-3.3Package_TO_SOT_SMD:SOT-23U5
1CAP100nFCapacitor_SMD:C_1206_3216MetricC2
1CAP10uFCapacitor_SMD:C_1206_3216MetricC3
1CAP22uFCapacitor_SMD:C_1206_3216MetricC5
1CAP4.7uFCapacitor_SMD:C_1206_3216MetricC1
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ10
1G***kibuzzard-64ECCA80kibuzzard-64ECCA80
1G***kibuzzard-650224F1kibuzzard-650224F1
1G***kibuzzard-651DD908kibuzzard-651DD908
1G***kibuzzard-650224BFkibuzzard-650224BF
1G***kibuzzard-64E925B6kibuzzard-64E925B6
1G***kibuzzard-64E958FDkibuzzard-64E958FD
1G***kibuzzard-651DD8EEkibuzzard-651DD8EE
1G***kibuzzard-650224CCkibuzzard-650224CC
1G***kibuzzard-64ECCBAEkibuzzard-64ECCBAE
1G***kibuzzard-64ECCA5Bkibuzzard-64ECCA5B
1G***kibuzzard-64E958EBkibuzzard-64E958EB
1G***kibuzzard-64E92756kibuzzard-64E92756
1IR26-21C_L110_TR8LED_SMD:LED_1206_3216MetricD2
1LOGOCustom_Library:gas-sensor_ICONG***
1LT1785xS8PCM_Package_SO_AKL:SOIC-8_3.9x4.9mm_P1.27mmU7
1OKI-78SR-5_1.5-W36-CConverter_DCDC:Converter_DCDC_Murata_OKI-78SR_VerticalU4
1R100Resistor_SMD:R_0603_1608MetricR13
1R220Resistor_SMD:R_0603_1608MetricR12
1SHT4xSensor_Humidity:Sensirion_DFN-4_1.5x1.5mm_P0.8mm_SHT4x_NoCentralPadU8
1SM712_SOT23Package_TO_SOT_SMD:SOT-23D1
1STM32G031K8TxPackage_QFP:LQFP-32_7x7mm_P0.8mmU1
1STM32G031K8UxPackage_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mmU2
1SW_DIP_x06Package_DIP:SMDIP-12_W9.53mmSW1
1Screw_Terminal_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2

Similar boards

  • 2 layers160 × 120 mmSTM, the printed circuit board in 3D

    STM

    jherkenhoff/STM

    DIY scanning tunneling microscope (STM)

    307 parts88
  • 4 layers90.5 × 56 mmPhasefreq, the printed circuit board in 3D

    Phasefreq

    rwpeterson/phasefreq

    Phase-frequency detector PCB built around AD9901

    113 parts2MIT
  • 2 layers145 × 98 mmStmshieldfull, the printed circuit board in 3D

    Stmshieldfull

    sgenomics/pcbs

    There are my personal PCBs... contact me for licensing information.

    178 parts2
  • 2 layers160 × 136.5 mmSchematic Backup 9, the printed circuit board in 3D

    Schematic Backup 9

    PickyPointer/SrE

    the SrE software suite - with more jimmies

    140 parts1
  • 2 layers102.4 × 211.3 mmHaxophone001, the printed circuit board in 3D

    Haxophone001

    cardonabits/haxo-hw

    Haxophone, an electronic musical instrument that resembles a saxophone

    92 parts674
  • 2 layers40.6 × 110 mmEuropi surface mount, the printed circuit board in 3D

    Europi surface mount

    Allen-Synthesis/EuroPi

    EuroPi: A reprogrammable Eurorack module based on the Raspberry Pi Pico

    92 parts584CC0-1.0
  • 2 layers142.5 × 101 mmHillside46, the printed circuit board in 3D

    Hillside46

    mmccoyd/hillside

    Family of split ergonomic keyboards with three rows of six or five keys and a generous thumb arc

    92 parts448MIT
  • 2 layers217.6 × 68.1 mmKeezyboost40, the printed circuit board in 3D

    Keezyboost40

    ChrisChrisLoLo/keezyboost40

    4x10 ortholinear with an LCD in the middle. Uses the Raspberry Pi Pico, as well as Rust firmware

    92 parts202CC-BY-SA-4.0

Questions

How big is the RS485-Gassensor PCB?

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

What parts does the RS485-Gassensor use?

92 parts, built around the AD8676BR. 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 RS485-Gassensor KiCad files?

From the Sarbf1/Gas-sens_Rs-485 repository on GitHub, at the commit this page was made from: the board is PCB/RS485-Gassensor/RS485-Gassensor.kicad_pcb and its schematic PCB/RS485-Gassensor/Power_Connectors.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the RS485-Gassensor design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).