Arduino project for testing air quality and environmental sensors with the SparkFun RedBoard Turbo.
- SparkFun RedBoard Turbo (SAMD21 based)
- Product Link: DigiKey 14812
- Microcontroller: ATSAMD21G18
- Operating Voltage: 3.3V
- I/O Pins: 3.3V logic
-
BMV080 - Air Quality Sensor
- Product: SparkFun Air Quality Sensor
- Interface: I2C (Qwiic)
- Library: SparkFun BMV080 Arduino Library
-
INA3221 - Triple-Channel Power Monitor
- Product: Adafruit INA3221
- Interface: I2C
- Library: Adafruit INA3221 Library
-
BME680 - Environmental Sensor (Temperature, Humidity, Pressure, Gas)
- Datasheet: Bosch BME680
- Interface: I2C
- Library: Adafruit BME680 Library
-
Install Arduino IDE
-
Add SparkFun Board Support
- Open Arduino IDE
- Go to
File→Preferences - Add this URL to "Additional Board Manager URLs":
https://raw.githubusercontent.com/sparkfun/Arduino_Boards/main/IDE_Board_Manager/package_sparkfun_index.json - Go to
Tools→Board→Boards Manager - Search for "SparkFun SAMD Boards"
- Install the package
-
Install Required Libraries
The output is CSV formatted with the following columns:
Timestamp(ms), PM1.0(ug/m3), PM2.5(ug/m3), PM10(ug/m3),
V_CH1(V), I_CH1(mA), V_CH2(V), I_CH2(mA), V_CH3(V), I_CH3(mA),
Temp(C), Humidity(%), Pressure(hPa), GasRes(KOhm), Altitude(m)
Example output:
2000,12.50,15.30,18.20,5.000,125.50,3.300,45.20,12.000,200.00,22.50,45.30,1013.25,150.45,10.25
using screen
screen -L /dev/ttyACM0 115200