SPI (Serial Peripheral Interface) is a serial transmission protocol used for communication between microcontrollers and peripheral devices such as sensors, memories or displays. It is easy to implement and offers high transmission speed, making it a common choice for many embedded systems. In diesem Video programmieren wir SPI mit Zephyr. Wir benutzen als Hardware das Nordic nRF52840-DK und den Sensor Bosch BME280.
You can support me at Patreon:
www.patreon.com/WSNandIoT
---Hardware--------
nRF52840 DK:
www.nordicsemi.com/Products/Development-hardware/nrf52840-dk
Adafruit BME280:
www.adafruit.com/product/2652
Sparkfun Logic Analyzer:
www.sparkfun.com/products/18627
---Software--------
nRF Connect SDK:
www.nordicsemi.com/Products/Development-software/nrf-connect-sdk
Logic Anlayzer PulseView:
sigrok.org/wiki/PulseView
00:00 Introduction
01:50 Connect BME280 with nRF52840-DK
06:00 Read out CHIP-ID
15:44 Read out calibration register
21:00 Set configuration register
25:00 Read uncompensated sensor values
27:40 Calculate compensated sensor values
32:40 Using chip select from Zephyr device tree
36:00 Outro
#zephyr #bme280 #spi
20 фев 2023