Sparkfun Environmental Combo Shield with ENS160 and BME280

Overview

The Sparkfun Environmental Combo Shield features a ScioSense ENS160 Digital Metal Oxide Multi-Gas Sensor, a Bosch BME280 Humidity Sensor and two Qwiic connectors. It measures temperature, humidity, pressure, CO2 and VOC (volatile organic compounds).

Sparkfun Environmental Combo Shield

Sparkfun Environmental Combo Shield (Credit: Sparkfun)

Requirements

This shield can be used with boards which provide an I2C connector, for example STEMMA QT or Qwiic connectors. The target board must define a zephyr_i2c node label. See Shields for more details.

Pin Assignments

Shield Pin

Function

SDA

ENS160 and BME280 I2C SDA

SCL

ENS160 and BME280 I2C SCL

INT

ENS160 interrupt output

To use the interrupt output from the ENS160, you need to connect a wire from the shield INT output to a suitable GPIO on your microcontroller board, and to modify the devicetree settings. See sciosense,ens160 for options.

See also bosch,bme280 for the BME280 sensor.

Programming

Set --shield sparkfun_environmental_combo when you invoke west build. For example when running the BME280 humidity and pressure sensor sample:

# From the root of the zephyr repository
west build -b adafruit_qt_py_rp2040 --shield sparkfun_environmental_combo samples/sensor/bme280

You can also use the Sensor shell sample:

# From the root of the zephyr repository
west build -b adafruit_qt_py_rp2040 --shield sparkfun_environmental_combo samples/sensor/sensor_shell