Skip to main content

Pi Zero Portable Air Quality Sensor — Construction in 10 “simple” steps.

Instructions on how to wire the RPi Sensor. This process takes ~2h for a first attempt. These are generic instructions related to the Born In Bradford project on measuring the air quality …

Image for post

1. Gather all the components and tools

Image for post
The component layout of the sensor

Component list:

Additional Equipment:

Pi Zero GPIO-pin Schematic

Image for post
RPI pin layout — NOTE: this is the other way round if you are looking at the pi upside down or backwards…

2. Prepare the equipment

3. Setting up the power switch for GPS and the OPC

Image for post

2N2222 Transistor

Transistor Schematics

Image for post

Resistance & some basic mathematics

( 3.3V (GPIO Pin) - 1.6V (Base) ) / 0.05 = 34 Ω
Image for post
It is always worth prototyping with a breadboard before soldering anything on.

Putting it all together

4. Adding the GPS unit

Image for post

Testing the unit

Image for post
A quick test using the 3.3v output on the PI

5. Connecting the OPC

Image for post
Flat taping the wires helps to preserve order

Alphasense OPC-R1

Image for post

6. Connect the transistor to a driving pin

GPIO pin numbers: 4 7 8 9 10 11 14 15 17 18 22 23 24 25 27 30 31

7. Temperature & RH module

Image for post

8. Flash the Micro SD card

9. (Optional) Boot the device and check all is working with the Bluetooth app

10. Enjoy, Plot and Visualise!