Gaming PC

How To Build an Air Quality Alert Light with Raspberry Pi Pico

Air quality is a big concern. We take the air we breathe for granted, but sometimes that air is full of pollution. Forest fires in Canada and hill fires in the UK are all recent examples of fires polluting our air, but how can we be sure it’s safe to go out?

In this how-to, we will build a project that uses air quality data. OpenWeather API You can know the air quality before leaving your home. Data is visualized using the Raspberry Pi Pico W, a $6 microcontroller that can go online to retrieve data and display it using strips of NeoPixel RGB LEDs.

circuit construction

(Image credit: Tom’s Hardware)

The circuit consists of two sections. input and output. The input is a simple push button connected to GPIO14 and the 3V3 pin on the Pico W. The normal state of GPIO14 is pulled to ground (effectively 0V). Pressing the button connects the 3V3 pin to GPIO14 and pulls the pin high (3.3V). This state change is what the code looks for. The output is a NeoPixel strip connected to 3V3, GND, GPIO16. GPIO16 is used to send data to the NeoPixel and change colors as needed.

Related Articles

Back to top button