Will Apache OS talk I2C with Bosch BME280 Sensor? (Temperature + Humidity + Air Pressure) ... Let's find out!

github.com/lupyuen/bme280-nutt

Apache OS doesn't have a BME280 Driver ... Let's test the BMP280 Driver instead (Air Pressure only)

github.com/lupyuen/bme280-nutt

has a peculiar I2C Port ... We need to send the I2C Sub Address (Register ID) separately from the I2C Data ... This might cause the BMP280 Driver to fail

github.com/lupyuen/bme280-nutt

I2C Driver expects us to provide the I2C Sub Address ... Let's patch the BMP280 Driver to pass the Register ID as I2C Sub Address

github.com/lupyuen/bme280-nutt

Here's how we patch the BMP280 Driver to send the Register ID as I2C Sub Address (instead of I2C Data)

github.com/lupyuen/bme280-nutt

BMP280 Driver says it's 29 °C with air pressure 1,006 millibars ... Yep looks right for Sunny Singapore by the Seaside 👍

github.com/lupyuen/bme280-nutt

BMP280 Driver works OK with our BME280 Sensor ... But we're missing one thing: Humidity ... Can we port the BME280 Driver from Zephyr OS? 🤔

github.com/lupyuen/bme280-nutt

Zephyr BME280 Driver looks similar to BMP280 Driver ... So porting Zephyr BME280 Driver to NuttX might not be so hard 🤔

github.com/lupyuen/bme280-nutt

Show newer
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.