Zephyr and Nordic nRF Connect SDK - 03b Reading temperature, pressure and humidity from a Bosch BME280 (over I²C and using a driver)
nRF Connect SDK is the new SDK from Nordic Semiconductor and replaces the old nRF5 SDK. It is based on the Zephyr real-time operating system. Zephyr supports multithreading. The hardware is configured via a device tree and components are activated or deactivated via a configuration file. Internal and external resources such as I²C-bus or sensors can be controlled via drivers. The nRF connect SDK supports the network technologies OpenThread, ZigBee, BLE and Matter. Visual Studio Code can be used as a development environment. In this video we read out the temperature, pressure and humidity from a Bosch BME280 I²C-sensor with Zephyr. We will do this on two ways. First we send direct I²C commands and second we using the devicetree and a sensor driver.
You can support me at Patreon:
www.patreon.com/WSNandIoT
##Hardware###########
Developer board nRF52840-dk:
www.nordicsemi.com/Products/Development-hardware/nrf52840-dk
Adafruit BME280 I2C or SPI Temperature Humidity Pressure Sensor
www.adafruit.com/product/2652
00:00 Introduction
01:20 Pin connections and I2C-address
01:13 Compensation registers
07:29 Measurement registers
08:20 Data structure for bme280
08:58 Buffer arrays
10:16 Reading chip ID
11:36 Reading temperature compensation registers
12:55 Reading pressure compensation registers
13:58 Reading humidity compensation registers
15:39 Reading uncompensated temperature, pressure and humidity
16:46 Compensation functions
23:43 Outro
28 окт 2022