Now Reading
The AirGradient DIY Air High quality Sensor (Professional Model PCB Model 3.7+)

The AirGradient DIY Air High quality Sensor (Professional Model PCB Model 3.7+)

2023-01-29 13:42:30

Please be aware that these are the instruction for the DIY PRO PCB Model 3.7+ that has a configuration button. In case you have the older model with out button, please observe these instructions.

Introduction

The AirGradient Professional DIY monitor measures PM2.5, CO2, temperature and humidity. These measures could be proven on the show and despatched to a server (e.g. the AirGradient platform or some other cloud backend) for knowledge logging.

The AirGradient Professional model has the next benefits in comparison with the DIY Fundamental Equipment:

  • Extremely extendable e.g. with a TVOC or barometric stress sensor, a battery charger, RGB LEDs, and so on.
  • Extra correct measurement for temperature because the enclosure has been designed for enhanced airflow and the temperature sensor is separated from the opposite elements.
  • Bigger OLED show permitting extra info to be displayed.

You possibly can utterly construct the monitor by yourself with the directions beneath and open-source code or, optionally you’ll be able to go to our online shop and buy it as a package that features a skilled enclosure. We additionally supply the package as a pre-soldered version for an easy meeting.

IMPORTANT: For the pre-soldered model, observe these instructions.

Totally assembled AirGradient DIY PRO package.

Expertise And Tools Required

For this venture you ought to be conversant in the next:

Talent Description
Soldering expertise A lot of the elements we use want soldering. The USB and PMS connectors are small and due to this fact troublesome to solder however these connectors are optionally available and the monitor may also be constructed with out them.
Soldering Iron & Solder To solder the part pins and cables.
Breadboard A breadboard is useful to repair the elements in place throughout soldering.
Pc A Linux, Mac, or Home windows pc with the Arduino IDE put in to flash the software program onto the D1 Mini. You may as well flash the software program straight from the browser.
USB-C Information Cable A USB-C cable for flashing the microcontroller and later powering it. For those who use the enclosure, you want a 90 diploma USB-C cable plug.

In case you might be unfamiliar with soldering or need to get the monitoring working as shortly as attainable, we even have pre-soldered kits obtainable, which could be assembled in only a few minutes with no soldering wanted.

Elements

Under is the listing of elements that you want to supply, with a hyperlink to AliExpress and typical worth ranges. Please be aware we now have no affiliation with the linked sellers and solely present the hyperlinks for example of the elements, not an endorsement of a vendor or a assure of the linked product high quality.

Part Approx. Value
Wemos D1 Mini v4 USB-C USD 4 – 6
1.3″ OLED display USD 3 – 5
Plantower PMS5003 PM Sensor USD 15 – 20
Senseair S8 CO2 Sensor USD 25 – 30
SHT31 Temperature and Humidity Sensor Module USD 3 – 5
Button < USD 1
USB-C Connector 6 Pin < USD 1
JST Connector 1.25mm 8 Pin for PMS < USD 1
Resistors 5.1KΩ (2x) and 10KΩ (1x) < USD 1
Feminine Pin Headers < USD 1
Screws PMS Sensor: M2*4.5 (Torx M6), PCB: M1.7×5 (Philips/Torx M6), Enclosure: M1.7×10 (Philips/Torx M6). The longest screws are for the enclosure. The screws with the washer are for the PCB and the remaining screws for the PMS Sensor.
USB-C Cable 90 levels USD 3 – 6
PCB See below on how one can make a PCB
Enclosure See below on how one can 3D print the enclosure
SGP 30 TVOC Sensor (Non-compulsory) USD 8 – 15 (not included within the AirGradient Equipment)

AliExpress may not ship to all international locations. In case they don’t ship to your nation, please try to supply the very same part from elsewhere.

You may as well buy the package with all required elements from our Online Store and make certain that every thing matches. We ship world-wide.

Schematics

You need to use the next schematics:

The schematics

Make Your Personal PCBs

In case you need to make your personal PCB you should utilize our Gerber files.

Direct Flashing By way of The Browser

You possibly can both manually flash the code via the Arduino software program or use the extra easy buttons beneath.

Join the D1 Mini to your pc via a data-capable cable and press the button beneath. Ensure you use the Chrome or Edge browsers in your pc for this to work.

Firmware for PCB Model 3.7+ together with code for optionally available AirGradient SGP41 TVOC / NOx Module

Your browser does not help this. Please use Chrome or Edge on Mac or PC.
You aren’t allowed to make use of this on HTTP!

As soon as the code is flashed, it should open a hotspot for 60 seconds to which you’ll be able to join after which set your Wi-Fi credentials. By default it should connect with the AirGradient Dashboard. If you wish to use one other endpoint you’ll be able to change the code with the handbook flashing methodology beneath.

If you don’t join it to Wi-Fi throughout the 60 seconds after startup it should go into the offline mode and present the air high quality parameters with out sending the info.

For those who flash with the tactic above, you’ll be able to skip the subsequent part and proceed on the part “Soldering the Components”.

Guide Flashing With The Arduino Software program

The above direct flashing is the simplest method to get the firmware onto the D1 Mini however if you wish to make modifications to the code, you can too flash the code via the Arduino software program surroundings. All software program for the AirGradient DIY sensor is open supply and thus you may make any modifications you’d like.

Please learn the next weblog publish on how one can set up the Arduino software program, arrange the D1 Mini board and the AirGradient Arduino library.

AirGradient Arduino Software Setup Instructions

Flashing Of The AirGradient Firmware

After getting the Arduino Software program setup for the D1 Mini, you’ll be able to flash it with the AirGradient firmware.

Step Description
1 Go to Instruments, Handle Libraries, after which seek for AirGradient and set up the AirGradient library.
2 As soon as it’s put in, go to File, Instance, AirGradient and choose the DIY_PRO_V3_7 code
3 Learn the directions on prime of the instance code and set up the extra libraries
4 Then flash this code the identical method you flashed the BLINK instance
5 After getting efficiently uploaded the code you’ll be able to proceed constructing the {hardware}

Configuration

With the button, you’ll be able to set the configuration of the show. Press the button on begin up and it’ll enter a menu. Within the menu you’ll be able to set the unit for PM2.5 (μg/m³ or US AQI), the temperature unit (°C or °F) and likewise rotate the show.

Soldering The Elements

Now that you’ve the firmware flashed, you’ll be able to solder the elements onto the PCB. Ensure you solder the pins within the right route.

Location of the Elements on the PCB

We advocate you begin within the following order:

OLED Show Soldering

To suit the OLED show completely into the enclosure, the pins have to be adjusted as a result of they attain out too far. Please observe these three steps:

  1. Take away the black spacer with a small screwdriver or with a small pair of pliers (see Step 1 within the determine beneath)
  2. Take the new soldering iron and push the pins inwards in order that they don’t stand out an excessive amount of anymore (see Step 2)
  3. To make sure that the pins nonetheless have sturdy contact with the show, add some solder on the bottom across the pins (see Step 3)

Steps to regulate the Show Pins

  1. Put the OLED show via the PCB and mount it into the enclosure. Ensure you tighten all 4 screws of the PCB. Transfer the OLED in order that it’s accurately aligned and use tape to briefly repair it in place.
  2. From the alternative facet, test that the show is correctly aligned.
  3. Solder the show as shortly as attainable to forestall injury to the enclosure (melting or deformation from the soldering warmth). Put the soldering iron on the lowest temperature that also ensures correct contact. After the soldering is finished, instantly use a fan to chill down the solder factors as quick as attainable.
  4. Clip off the excellent pins and thoroughly take away the tape with out damaging the show cable.

Soldering the OLED Show onto the PCB

D1 Mini Soldering

We advocate to solder all elements with pin sockets in order that it’s simpler to interchange elements or troubleshoot if one thing doesn’t work.

Vital: For those who solder the D1 straight on the board, go away sufficient house between the D1 and the PCB to be able to plug within the USB cable.

First solder the feminine pin headers onto the PCB the place it says: “Microcontroller”.

Pin Sockets on PCB

Then solder the male pins onto the D1 Mini.

D1 Mini soldering

Then you’ll be able to put the D1 Mini onto the PCB. Make it possible for the orientation is right and that each one pins go into the socket.

Soldering The SHT31 Module (Temperature and Humidity)

To solder the small pins onto the SHT31 module, you should utilize a breadboard to repair the pins into place. No must do something with the 2 pins on the highest of the sensor. Solely solder the 4 pins on the backside of the module.

Soldering Pins onto the SHT Module

Then solder feminine pin headers onto the board. The SHT is situated on the far remoted nook of the PCB to assist guarantee correct temperature measurement.

SHT placement with pin sockets

Then put the SHT31 module onto the pin socket and ensure you have it on within the right route.

Soldering The Senseair S8 Module (CO2 Sensor)

To solder the small pins onto the S8 module, you should utilize a breadboard to repair the pins into place.

Make it possible for the pins face upwards as could be seen on beneath picture.

Vital: In comparison with the smaller DIY Fundamental package, the pins listed below are soldered the alternative method to improve the accuracy and airflow across the sensor.

Senseair S8 pin header soldering

Solder feminine pin headers onto the PCB. Then put the S8 onto the pin headers.

Feminine pin headers soldering for the Senseair S8

Connecting The PMS5003 (PMS Sensor) Cable

The PMS Sensor is linked with a cable to the PCB. There are two methods to attach it. For those who can solder the small JST connector, then solder it on the board:

PMS JST Connector

Be certain that it’s soldered within the right method (as indicated with the silkscreen and could be seen within the picture above).

In case you can’t solder these small pins, you can too reduce and splice the cable and solder it straight onto the PCB.

Put together the next 4 wires as per this picture. Please ensure you reduce the right wires.

NOTE: It may be complicated that the default cable of the PMS has a black cable for VCC as usually VCC makes use of crimson colour.

Solder the cable onto the PCB. Please just be sure you solder the right cable to the right pin.

PMS PCB Connection

After you’ve got soldered the cable onto the PCB, join the PMS5003 with the opposite finish of the cable. Then screw the PMS5003 onto the PCB.

USB-C Connector

In case you are assured with soldering the small pads, you’ll be able to solder the USB-C connector onto the board.

USB C Connector and Resistors

Word that you simply can not flash the gadget via this USB-C port. It solely offers energy. To flash the D1, you want to join the cable on to the MCU.

If you wish to use the monitor with sensible energy adapters (e.g. ones offering a spread of voltages), you want to additionally solder two 5.1k resistors onto the board. For those who simply need to use a standard 5V energy adapter you don’t want to do that.

Alternatively, you should utilize the larger gap on the again of the enclosure to feed the cable in and join it on to the D1. Then you don’t want to solder the USB-C connector. Please be aware that solely a straight USB-C cable matches via the opening. So in the event you get the 90-degree cable from our package however do NOT need to solder the USB-C connector, you both must make the opening bigger or get a straight USB-C cable.

Button

It is necessary that you simply solder the button to be able to use our software program and are capable of swap completely different configurations (e.g. Fahrenheit, Celcius and so on.). A 10k resistors can also be required in order that the button works.

Button and Resistor

Non-compulsory SGP41 AirGradient TVOC / NOx Module

For those who bought the AirGradient TVOC / NOx module, you’ll be able to solder feminine pin headers onto one of many prime I2C slots and plug the module in there.

Slot for AirGradient TVOC / NOx Module

Please be aware that if you wish to use some third occasion TVOC modules, you would possibly must take away the pull-up resistors because the I2C bus already has the SHT and OLED module which each have already got pull ups. We strongly advocate you employ the AirGradient module which doesn’t have pull-up resistors.

Testing And Placing It Into The Enclosure

Now you’ll be able to energy on the gadget and you must be capable to see the show lighting up. For those who flashed the Wi-Fi model, you want to join it to the Wi-Fi. To do that open you Wi-Fi settings on the cellphone and search for a sizzling spot referred to as “AirGradient______”. Then connect with it and enter your Wi-Fi community credentials. It is going to then connect with Wi-Fi and begin displaying and sending the air high quality knowledge.

In case you’ve got any problem, test this information or get assist from the Open AirGradient Forum.

If every thing works, you’ll be able to screw the PCB into the highest cowl of the enclosure and shut the enclosure.

3D Enclosure

You possibly can obtain STL 3D printer recordsdata to print an enclosure that precisely matches the PCB. The 3D enclosure consists of three components: a prime, a backside and a again cable connection half. The ZIP file additionally comprises the STEP file to be able to make changes.

Download Enclosure STL Files

If you do not need to print, our DIY PRO Kit features a high-quality UV-resistant injection molded plastic enclosure.

3D printable PRO enclosure

Options For Colleges

AirGradient affords a classy, highly effective and responsive Air Quality Monitoring Solution for Schools. You possibly can join these DIY screens to the AirGradient platform, combine with many present manufacturers or use our skilled AirGradient ONE monitor.

In case you are excited by a free trial of the answer for colleges, please contact us.

AirGradient Dashboard

Our kits include a number of months of free subscription to the AirGradient dashboard. To attach your monitor to the dashboard, please observe these instructions.

CC BY-NC 4.0 Attribution-NonCommercial 4.0 Worldwide

This work is licensed below CC BY-NC 4.0.

This license requires that reusers give credit score to the creator. It permits reusers to distribute, remix, adapt, and construct upon the fabric in any medium or format, for noncommercial functions solely.

Copyright AirGradient Co. Ltd.

Find the code on GitHub

Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top