How to build an air quality monitor using Raspberry Pi Zero W + ANAVI Infrared pHAT
Hello, I'm Takuya Matsuyama from Japan, a solo developer making a Markdown note-taking app called Inkdrop.
Knowing the air quality is useful to keep yourself productive because the bad air quality would affect your brain performance more than you'd think.
So, I built a room air quality monitor t...
Hello, I'm Takuya Matsuyama from Japan, a solo developer making a Markdown note-taking app called Inkdrop.
Knowing the air quality is useful to keep yourself productive because the bad air quality would affect your brain performance more than you'd think.
So, I built a room air quality monitor that displays the temperature, humidity, CO2 density, and barometric pressure of my home office.
It notifies with sound when the CO2 level gets more than 1,000 ppm - So, I can know when to refresh the air.
In this video, I'm gonna show you a walkthrough of how to build it.
Hope it's helpful!
▶ My equipments
* Keyboard: Keychron K2
* Computer: Mac Pro
* Display: Pro Display XDR
* Video editing: Final Cut Pro X
* Camera: Fujifilm X-T4, X-E3 & Sony ZV-1
* More detail: https://www.youtube.com/watch?v=1OFDMwDlnOE
00:00 Hello
00:31 Unbox a Raspberry Pi Zero W
00:48 SanDisk 32GB MicroSD Card
00:54 Anker 2-in-1 USB C Memory Card Reader
01:03 Download Raspberry Pi Imager
01:22 Write a Raspberry Pi OS to the SD Card
01:58 Configure your Wi-Fi network
02:31 Enable SSH server
02:39 Boot the Raspberry Pi
03:03 Check if connected to the Wi-Fi network
03:12 Log in to the Raspberry Pi via SSH
03:29 Unbox an ANAVI Infrared pHAT
04:28 Install the ANAVI Infrared pHAT to the Raspberry Pi Zero
04:40 Connect the sensors to the I2C slots
05:29 MH-Z19 - CO2 density sensor
06:00 Connect MH-Z19 to the UART slot
06:16 Check if MH-Z19 is working
06:33 Update Raspberry Pi packages
07:11 Install git & build tools
07:25 Install python-smbus and i2c-tools
07:41 Enable I2C interface
08:06 Check the I2C interface working
08:16 Get the example code for testing the sensors
08:54 Install wiringpi
09:05 Build the example code
09:43 Enable Serial interface
10:14 Install python-pip
10:33 Install a Python module for mh-z19
10:59 Put MH-Z19 outside for a while for calibration
11:17 Run ZERO point calibration
11:44 Install nginx web server
11:55 Clone a web UI
12:11 Build C programs for the sensors
12:47 Prepare test data
13:43 Configure nginx
14:21 Open the web interface from browser
14:39 Configure root's crontab to update data every 5 minutes
16:01 Put the Raspberry Pi in a cable box