Book Image

Raspberry Pi Pico DIY Workshop

By : Sai Yamanoor, Srihari Yamanoor
Book Image

Raspberry Pi Pico DIY Workshop

By: Sai Yamanoor, Srihari Yamanoor

Overview of this book

The Raspberry Pi Pico is the latest addition to the Raspberry Pi family of products. Introduced by the Raspberry Pi Foundation, based on their RP2040 chip, it is a tiny, fast microcontroller that packs enough punch to power an extensive range of applications. Raspberry Pi Pico DIY Workshop will help you get started with your own Pico and leverage its features to develop innovative products. This book begins with an introduction to the Raspberry Pi Pico, giving you a thorough understanding of the RP2040's peripherals and different development boards for the Pico designed and manufactured by various organizations. You'll explore add-on hardware and programming language options available for the Pico. Next, you'll focus on practical skills, starting with a simple LED blinking project and building up to a giant seven-segment display, while working with application examples such as citizen science displays, digital health, and robots. You'll also work on exciting projects around gardening, building a weather station, tracking air quality, hacking your personal health, and building a robot, along with discovering tips and tricks to give you the confidence needed to make the best use of RP2040. By the end of this Raspberry Pi book, you'll have built a solid foundation in product development using the RP2040, acquired a skillset crucial for embedded device development, and have a robot that you built yourself.
Table of Contents (17 chapters)
1
Section 1: An Introduction to the Pico
6
Section 2: Learning by Making
10
Section 3: Advanced Topics

Using public data sources for air quality data

In this section, we are going to discuss retrieving air quality data using publicly available data, namely the AirNow API provided by the United States Environmental Protection Agency (US EPA). API is the acronym for Application Programming Interface. Here, it refers to the interface provided to retrieve air quality data. An API typically comes with specifications for access. Here, it is a program that aggregates data from federal, state, and local agencies to report the Air Quality Index (AQI). We are going to test the API and then discuss the code needed to retrieve the air quality data using the Pico:

Data Sources Outside the United States

If you live outside the United States, we recommend using the local data source in your region. If one doesn't exist, we recommend checking out the Interfacing a CO2 sensor on a Pico section of this chapter.

The steps to retrieve air quality data using publicly available data are as...