skip to Main Content
Rpi Airquality Station: Indepth Assembly

Rpi Airquality Station: Indepth Assembly


Assemble an RPi Airquality Station from the parts kit, and turn it on for the first time.

What you will learn:

Special considerations for connecting sensors to the airquality hat, and how each part in the kit goes together.

What you will need:

Full RPi Airquality Station kit.

Getting Started:

Here are the sensors, circuit board, raspberry pi, led panels, and the piece of wood they all attach onto.

First we’ll line up the led panels. The led matrix’s we use have a chained model, which means data enters one end, and is transmitted down a connected line of led panels until every pixel has been set. The arrows printed on the panels and the wood indicate the direction for data flow. Data originates in the raspberry pi, enters the airquality HAT, and goes from right to left through the led panels.

Seeing as we’re putting the panels upside down for assembly the arrows will be slightly different though.

But once they’re flipped vertically the arrows will match up with the ones printed on the wood panel.

Seeing as data flows from one panel to another we need to connect the two using the ribbon cables.

The cable on the right will eventually be plugged into the airquality hat, but it’s less awkward if you wait until later.


Next we’ll attach all the sensors to the airquality hat. Here is what they look like laid out before being plugged in.

The PMS sensor is oriented with the intake fan south, as pictured, make sure the screw holes are facing the wood.

It’s vital to keep cable orientation in mind when plugging these in, the cables and connectors are not polarized so if you aren’t very careful you could easily fry your entire airquality kit by plugging something in backwards.

First we’ll plug in the PMS-5003 air particulate sensor.

For this sensor the wire needs to make ONE twist, meaning the connector is oriented backwards on the board compared to on the PMS. Double check the way the sensor box is oriented and the cable while connecting these.


Next we’ll connect the BME-280 sensor which is the simplest

For this sensor, the cable should be lying flat against the wood without any twists, and plug straight into the airquality hat. This is the only one of the three sensors where the cable doesn’t need to be twisted.


Next is the MHZ C02 sensor which can be the most confusing

First check the orientation of the sensor and the hat board like in this picture. This cable has to make exactly ONE twist between the sensor and the board. You can tell if the cable is oriented correctly when the colors are flipped vertically on one side from the other. Even though it is hard to spot the twist in the above picture, you can still tell that RED is on-top on the left, and BLACK is on-top on the right; indicating that the cable has indeed made ONE twist.


Finally double check all the sensors and their connections.

Attaching sensor hat to led matrix:

Then the power cables need to be attached from the sensor-hat to the led panels.

Next the power cables need to be attached from the sensor-hat to the led panels.

Pay close attention to the polarity, the ‘GND’ text should line up with the black wires.

Screwing Everything Together:

Now that the tricky part is done we’ll start screwing everything together.

To attach the display’s to the wood you’ll need these parts here:

First attach the standoffs to the panel like this.

Although in your case they’ll be all kinds of ribbon cables in the way and the two panels are plugged into each-other.

Then use the screws though the backside of the wood to attach them like this.

Make sure to tuck the wires neatly how you want them, because the only way to adjust this later will be to take the entire thing apart again.

The final ribbon cable from earlier, coming out of the side of the led matrix needs to be plugged into the airquality hat as shown.


The ribbon cables do have a correct polarity, but this is made obvious by the latch on the connector itself.

Next we’ll attach the board and the raspberry pi to the back-plate.

Here are the parts you’ll need.

The pins in the raspberry pi will naturally line up with the socket on the airquality hat as long as the screws line up.

Here is the order that the screws and standoffs go together

This animated gif shows the assembly order.
If it’s not animated you can click on it to open it.

First screw the mini standoffs through the backplate, then the raspberry pi nestles on-top. Next the longer standoffs screw on-top of the mini-standoffs. And finally screw the sensor hat on-top of everything else.


Mounting the Sensors:

Next we’ll mount the sensors to the backplate.

First is the PMS which is the only one of the three sensors that uses screws. Here is a picture of how the screws go into the sensor box.

There are pre-aligned holes and an outline where it should go.

The other two sensors are simply stuck onto the board with sticky strips.

Here’s how everything looks screwed and glued down.

First Power On:

Before powering on it’s important to double check all the connector polarities against this guide.

Now it’s time for the first time node-red and grafana setup!:


Back To Top