Skip to main content
BlogNewsTop News

Using a BMP280 with the BBC Microbit V2 and Zephyr RTOS

By September 21, 2021No Comments

Written by Frank Duignan, Electronics Engineer and Lecturer at TU Dublin, Ireland

This blog originally ran on the Frank’s website at ioprog.com. For more content like this, click here

I wanted to continue my investigation of the Microbit V2 and Zephyr by adding an external I2C device. The BMP280 module I chose is able to report back temperature and atmospheric pressure. I thought it would be nice to combine this with the earlier ST7789 example to produce a live reading of temperature and pressure on the display. This required a slight modification to the ST7789 setup as it is not possible to use both I2C1 and SPI1 in the same NRF52833 (microbit) project. This was easily fixed as the NRF52833 has SPI interfaces 0 to 2. I chose SPI1 which led me to write the following app.overlay file:

Code is available on Github: https://github.com/fduignan/zephyr_bbc_microbit_v2

Zephyr Project