

RS485-Gassensor
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
1README
README.mdGas-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.
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | R10K | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4, R5, R6, R7, R10, R24, R25, R29, R30, R31 |
| 5 | 1k | Resistor_SMD:R_0603_1608Metric | R9, R15, R17, R27, R28 |
| 4 | CAP1uF | Capacitor_SMD:C_1206_3216Metric | C6, C9, C10, C12 |
| 4 | CAP1uF | Capacitor_SMD:C_0603_1608Metric | C11, C13, C14, C15 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_3.2mm_M3_DIN965_Pad | H1, H2, H3, H4 |
| 4 | R_Poti_1K | PCM_Potentiometer_SMD_AKL:Potentiometer_Bourns_3214J_Horizontal | RV1, RV2, RV3, RV4 |
| 3 | 2.2k | Resistor_SMD:R_0603_1608Metric | R14, R16, R19 |
| 2 | 10 | Resistor_SMD:R_0603_1608Metric | R8, R26 |
| 2 | 10KR | Resistor_SMD:R_0603_1608Metric | R22, R23 |
| 2 | 470nF | Capacitor_SMD:C_0603_1608Metric | C4, C8 |
| 2 | CAP100nF | Capacitor_SMD:C_0603_1608Metric | C7, C16 |
| 2 | Conn_01x02_Pin | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J6, J7 |
| 2 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J8, J9 |
| 2 | Fiducial | Fiducial:Fiducial_1.5mm_Mask3mm | FID1, FID2 |
| 2 | MCP6002-xMS | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3, U6 |
| 2 | R1K | Resistor_SMD:R_0603_1608Metric | R18, R20 |
| 2 | R470 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R11, R21 |
| 2 | Screw_Terminal_01x06 | Connector_Phoenix_SPT:1071000 | J4, J5 |
| 2 | Screw_Terminal_01x08 | Connector_Phoenix_SPT:1862068 | J1, J3 |
| 1 | AD8676 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U9 |
| 1 | AP2127N-3.3 | Package_TO_SOT_SMD:SOT-23 | U5 |
| 1 | CAP100nF | Capacitor_SMD:C_1206_3216Metric | C2 |
| 1 | CAP10uF | Capacitor_SMD:C_1206_3216Metric | C3 |
| 1 | CAP22uF | Capacitor_SMD:C_1206_3216Metric | C5 |
| 1 | CAP4.7uF | Capacitor_SMD:C_1206_3216Metric | C1 |
| 1 | Conn_01x02 | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J10 |
| 1 | G*** | kibuzzard-64ECCA80 | kibuzzard-64ECCA80 |
| 1 | G*** | kibuzzard-650224F1 | kibuzzard-650224F1 |
| 1 | G*** | kibuzzard-651DD908 | kibuzzard-651DD908 |
| 1 | G*** | kibuzzard-650224BF | kibuzzard-650224BF |
| 1 | G*** | kibuzzard-64E925B6 | kibuzzard-64E925B6 |
| 1 | G*** | kibuzzard-64E958FD | kibuzzard-64E958FD |
| 1 | G*** | kibuzzard-651DD8EE | kibuzzard-651DD8EE |
| 1 | G*** | kibuzzard-650224CC | kibuzzard-650224CC |
| 1 | G*** | kibuzzard-64ECCBAE | kibuzzard-64ECCBAE |
| 1 | G*** | kibuzzard-64ECCA5B | kibuzzard-64ECCA5B |
| 1 | G*** | kibuzzard-64E958EB | kibuzzard-64E958EB |
| 1 | G*** | kibuzzard-64E92756 | kibuzzard-64E92756 |
| 1 | IR26-21C_L110_TR8 | LED_SMD:LED_1206_3216Metric | D2 |
| 1 | LOGO | Custom_Library:gas-sensor_ICON | G*** |
| 1 | LT1785xS8 | PCM_Package_SO_AKL:SOIC-8_3.9x4.9mm_P1.27mm | U7 |
| 1 | OKI-78SR-5_1.5-W36-C | Converter_DCDC:Converter_DCDC_Murata_OKI-78SR_Vertical | U4 |
| 1 | R100 | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | R220 | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | SHT4x | Sensor_Humidity:Sensirion_DFN-4_1.5x1.5mm_P0.8mm_SHT4x_NoCentralPad | U8 |
| 1 | SM712_SOT23 | Package_TO_SOT_SMD:SOT-23 | D1 |
| 1 | STM32G031K8Tx | Package_QFP:LQFP-32_7x7mm_P0.8mm | U1 |
| 1 | STM32G031K8Ux | Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.45x3.45mm | U2 |
| 1 | SW_DIP_x06 | Package_DIP:SMDIP-12_W9.53mm | SW1 |
| 1 | Screw_Terminal_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2 |
Similar boards
- 2 layers160 × 120 mm

- 4 layers90.5 × 56 mm

- 2 layers145 × 98 mm

Stmshieldfull
sgenomics/pcbs
There are my personal PCBs... contact me for licensing information.
178 parts2 - 2 layers160 × 136.5 mm

- 2 layers102.4 × 211.3 mm

Haxophone001
cardonabits/haxo-hw
Haxophone, an electronic musical instrument that resembles a saxophone
92 parts674 - 2 layers40.6 × 110 mm

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 mm

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 mm

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).