
Beijing AQI

Download the files here:
http://www.signalfront.com/promptbox/aqi.zip
​
The Raspberry Pi gets the latest Beijing AQI reading from the web every 30 minutes, then displays it on a LCD.
-
You will need to connect a I2C LCD to the Raspberry Pi
-
The LCD uses 5V, not 3.3V
-
-
You will need to enable the I2C interface on the RPi
-
In terminal, “sudo raspi-config” then enable the I2C interface
-
In terminal, “sudo i2cdetect -y 0” to get the LCD’s address. Our code uses address 0x3F
-
-
There are three files
-
i2c_lib.py – this teaches the RPi how to talk to the LCD Display
-
lcddriver.py – these contain the actual commands that the LCD understands
-
AQI.py – this is the code you run for displaying the AQI
-
-
There is a potentiometer behind the LCD. You may have to adjust it to get a good contrast to see the display.

