Installing requisite libraries
In this " section, we will install the requisite libraries needed for this chapter, including the stepper motor, the CO2 sensor, and the wireless pack to the Raspberry Pi Pico. The libraries are all a part of the Adafruit CircuitPython bundle. The latest bundle can be downloaded as a ZIP file from https://circuitpython.org/libraries. We used the bundle version meant for CircuitPython 6.x.x.
After downloading the ZIP file, extract its contents so that we can copy the libraries we need for the project.
Stepper motor
We need the adafruit_motor
library to control the stepper motor (shown in the following figure). The stepper motor has a needle that is used to point at the corresponding air quality category. Copy the adafruit_motor
library to the lib
folder of your Pico.
Next, we will review installing libraries for the wireless pack.
Wireless pack
We need the...