Skip to the content
2 layers68.6 × 53.3 mmShieldProject, the printed circuit board in 3D

Gas sensor project

Size
68.6 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
43
Pads
86
Tracks, vias
132, 0
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
30 Nov 2018
Updated
30 Nov 2018

Overview

ShieldProject is an open-source printed circuit board by MOSH-Insa-Toulouse, from the MOSH-Insa-Toulouse/Delorme_Mendes_Gas_Sensor repository on GitHub. It is a 2-layer board of 68.6 × 53.3 mm with 24 parts on 43 nets, routed with 132 tracks and 0 vias.

It is built around the LTC1050CP. Its parts include 8 connectors, 5 resistors, 4 capacitors, 2 ICs and 1 diode.

Main components

1

README

README.md

KiCad Project

Damaris Mendes Ferreira and Margot Delorme.

Introduction

In the MOSH (Microcontroller and Open Source Hardware) course we developed a gas sensor shield for an Arduino Uno board. The goal of this project is to construct a PCB that contains a gas sensor, LEDs, a buzzer and a LoRa module. This system should be capable to monitor the level of CO2 in a room and then send this information to a LoRaWAN using The Things Network site. The gas sensor is going to measure the level of CO2 and the Arduino is going to evaluate this level by taking a threshold as comparative. If the quantity of this gas crosses this threshold, a buzzer is activated and a red LED is fired. When the level of gas returns to its normal state, the buzzer is turned off and a green LED is turned on indicating a normal situation.

The followings sections are going to show all the results that we obtained in this project to make the final PCB layout.

Assemblage and tests

The first step of this project was to assembly all the components on a protoboard to make sure that our system works. In order to validate our circuit and to make sure it works, we first assembled the electronic elements using a protoboard.

After that, we built the communication between our Lora module and The Things Network site. To do that, we added some configurations in the web site. We created our device in the web site, we configured the Device EUI to our Lora module and we configured the code on the Arduino using the Application EUI and the App Key according to the web site. The configurations were done as followed:

Once we made sure the LoRa communication was working, we tested the circuit on the protoboard. We managed to get live information from the circuit to The Things Network site:

When the CO2 threshold is crossed, the buzzer is activate and the red led is fired. When the CO2 level goes back to normal, the buzzer is stop and the green led is fired. Our circuit was working properly:

The LoRa module send the information about the level of gas to the web site all the time. When the Level of gas is too high, LoRa sends and alert message.

The Arduino code is available in the “Arduino Code” folder.

Shield construction on KICAD

To design our PCB, we used the KICAD open-source software that was used to make the electric scheme and the routing for the PCB. The following sections are going to explain the results that we obtained.

Complete PCB

First, to create the PCB, we wanted to use as all the listed elements whether mandatory or optional: the leds, the resistances, the capacitors, the buzzer, the LoRa, the amplificator, and all the electronic elements. To do so, we used Kicad and created a first draft of the PCB. So, we drew the graphs and then selected the different items we wanted to use for each element.

The hardest part for us was to place the electronic elements on the PCB and routing it without the routes crossing and using as much as possible only one side of the PCB. For routing, on this first draft we routed on 2 different sides of the PCB.

Once we finished this first version of the PCB, we wanted to go further and have the routing on only one side of the PCB. We used the previous version of our PCB and rearranged it. In order to do this, we had to get rid of a few elements: one led and one button. We chose these 2 elements because the PCB still works without them.

So that you could have an overview of our work, we sent you both PCB. The folder called “Complete Version” contains the PCB with all the components. The folder called “Final Version” is the latest version of the project. This version of the PCB has just one face of routing (the one abiding by the guidelines) and we are going to show the results of this version in the next sections.

Final PCB
Schema

First of all, we created the project based into an Arduino UNO template. After that, we started to construct our components. We created the LTC1050 library that is located in the “\MesLibrairies\LTC1050.lib” that is an operational amplifier that is going to be used to amplificate the signal of the gas sensor. After that, we constructed our second library, the RN2483 that is our LORA module. This library is located in the “\MesLibrairies\RN2483.lib”.

Finally, we connected all the elements into a schema as we can see in the following figure.

This schema is called “SchieldProject.sch”. We divided the schema into 5 different blocks. The first one is the circuit to amplificate the signal of the gas sensor. After that we have 2 minors blocks: the buzzer and the LED. The fourth block is composed by the Lora module and to finish we have the Arduino block.

The gas sensor block is composed by a non-inverting amplifier that is going to amplify the analog signal of the gas sensor that is going to be treated by the ADC of the Arduino. The output of the circuit was connected to the A0 pin. The signal is also filtered by this circuit in its entry and in its output to eliminate the noise.

The buzzer was connected into the pin 6 of the Arduino and the LED was connected in the pin 13. For the Lora module, we connected TX in the pin 10, Rx in the pin 11 and RST in the pin 12. This is a really important part of the circuit that is going to enable us to communicate with the TTN (The Things Network).

Layout

After doing the circuit schema, we created some footprints that we needed. The first one was the Lora module footprint that is available in the folder “\MesEmpreintes\Module_LoRa_RN2483.kicad_mod”. After that, we modified the footprint of the component TO-5-4 to match the specification of our gas sensor. This footprint is available in the folder “\MesEmpreintes\TO-5-4.kicad_mod”.

Then, we associated the components with their respective footprints and we made the routing of the PCB. The result is shown in the following figure.

3D top view of the PCB:

3D bottom view of the PCB:

Conclusion

To conclude, we created our PCBs using Kicad, Arduino and The Things Network. We created 2 PCB, one with all the elements (mandatory and optional). Then we created our final version of the PCB thanks to this first draft but using only one side of the PCB.

What we think could be improved in our PCB is the number of electronic components. We decided to create our final version with only one side of the PCB routed. In order to do so, we got rid of 2 elements.

Parts

24
QtyValueFootprintReferences
4CONN_01X01Socket_Arduino_Uno:Arduino_1pinP5, P6, P7, P8
3100nCapacitor_THT:C_Rect_L7.0mm_W2.5mm_P5.00mmC1, C2, C3
2100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R3
210kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR5, R7
2RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalRcal1, Rcal2
110kMesEmpreintes:TO-5-4Rsensor1
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR6
11uCapacitor_THT:C_Rect_L7.0mm_W2.5mm_P5.00mmC4
1AnalogSocket_Arduino_Uno:Socket_Strip_Arduino_1x06P2
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1DigitalSocket_Arduino_Uno:Socket_Strip_Arduino_1x08P4
1DigitalSocket_Arduino_Uno:Socket_Strip_Arduino_1x10P3
1LEDLED_THT:LED_D5.0mm_FlatTopD1
1LTC1050Package_DIP:DIP-8_W7.62mm_LongPadsU2
1PowerSocket_Arduino_Uno:Socket_Strip_Arduino_1x08P1
1RN2483_BreakoutMesEmpreintes:Module_LoRa_RN2483U1

Similar boards

  • 2 layers68.6 × 53.3 mmProject kicad, the printed circuit board in 3D

    Project kicad

    MOSH-Insa-Toulouse/2023-2024_4GP_NGO-TRAN

    INSA 4GP MOSH Project - NGO/TRAN

    23 parts1MIT
  • 2 layers75.5 × 65.8 mmProjet capteur, the printed circuit board in 3D

    Projet capteur

    MOSH-Insa-Toulouse/2024-2025-4GP-oetham-axellgp

    Projet Capteur - Mathéo HAHN et Axel LONGEPIERRE

    21 parts1GPL-3.0
  • 2 layers68.6 × 53.8 mmCapteur Graphite, the printed circuit board in 3D

    Capteur Graphite

    Daniel-Mael/2023-2024-4GP-PeralesRios-LeBlanc

    Daniel Perales Rios - Maël Le Blanc

    24 partsGPL-3.0
  • 2 layersKicadTestv1, the printed circuit board in 3D

    KicadTestv1

    eferrandi31/ProjectGasSensor

    18 parts
  • 2 layers165 × 92.5 mmGas Sensor V1, the printed circuit board in 3D

    Gas Sensor V1

    JonathanPleuron/Smart-Devices

    This project was realised in the IoT growing context. It introduces a solution of smart gas sensor using the emerging LoRa technology.

    45 parts
  • 2 layers68.6 × 53.3 mmShield Arduino MOSH, the printed circuit board in 3D

    Shield Arduino MOSH

    Khomat/GIRIBALDI-DUBOIS_MOSH_Project

    The goal of this project is to build a connected gas sensor and build the interface around the sensor.

    23 parts
  • 2 layers68.6 × 57 mmSchield, the printed circuit board in 3D

    Schield

    lm-hotton/ProjetCapteurGraphite2022-LM-TL

    Nous avons également créé un APK Android permettant d'afficher la valeur de la résistance mesurée sur un smartphone.

    22 parts
  • 2 layers68.6 × 53.3 mmCapteur Graphite, the printed circuit board in 3D

    Capteur Graphite

    LucaPaccard/INSA_ProjetCapteur

    L'ensemble des étapes menées pour réaliser ce capteur, en allant du design jusqu'à la réalisation en passant par le codage seront détaillées dans ce dossier.

    22 parts

Questions

How big is the ShieldProject PCB?

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

What parts does the ShieldProject use?

24 parts, built around the LTC1050CP. 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 ShieldProject KiCad files?

From the MOSH-Insa-Toulouse/Delorme_Mendes_Gas_Sensor repository on GitHub, at the commit this page was made from: the board is Final Version/ShieldProject.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the ShieldProject design in my own project?

Its repository states no licence, so its author keeps all rights: ask MOSH-Insa-Toulouse before reusing the design.