nRF Connect SDK Hands-on Part 2: File Structure and Sensor Integration

Nordic Semiconductor

Summary:

This video, the second part of a hands-on series, details the nRF Connect SDK application development process, focusing on file structure and sensor integration.

  • The video first explains the nRF Connect SDK's file structure, emphasizing the separation of source code, software configurations (Kconfig files), and hardware configurations (Devicetree files) for scalability and portability.
  • It then demonstrates how to integrate both simulated and real sensors into an application using the unified Sensor API.
  • The process involves creating new source files for a sensor data collection thread, updating the CMakeLists.txt for the new files, and configuring Kconfig and Devicetree overlay files.
  • The simulated sensor provides temperature, humidity, pressure, and accelerometer data.
  • The video shows connecting physical BME688 environmental and BMI270 IMU sensors via I2C.
  • It highlights the ease of switching between simulated and physical sensors with minimal code changes due to the standardized Sensor API.

Overview of a typical Bluetooth LE application with environmental and IMU sensors connected to an nRF SoC, communicating wirelessly with a smartphone.
Overview of a typical Bluetooth LE application with environmental and IMU sensors connected to an nRF SoC, communicating wirelessly with a smartphone. [ 00:00:20 ]

Understanding nRF Connect SDK Application File Structure [00:00:21]

Diagram illustrating the nRF Connect SDK file structure, emphasizing the separation of source code, software configurations (Kconfig), and hardware configurations (Devicetree).
Diagram illustrating the nRF Connect SDK file structure, emphasizing the separation of source code, software configurations (Kconfig), and hardware configurations (Devicetree). [ 00:00:40 ]

Sensors in nRF Connect SDK and Zephyr [00:08:00]

Slide introducing sensor integration in nRF Connect SDK, featuring the BME688 environmental sensor and BMI270 6-DoF IMU.
Slide introducing sensor integration in nRF Connect SDK, featuring the BME688 environmental sensor and BMI270 6-DoF IMU. [ 00:07:59 ]

Implementing a Simulated Sensor [00:09:33]

Integrating Real Sensors (BME688 & BMI270) [00:17:39]

Summary of Benefits [00:22:18]

An overview of the Bluetooth LE application, showing environmental and IMU data, along with sampling interval, being transmitted wirelessly to a smartphone.
An overview of the Bluetooth LE application, showing environmental and IMU data, along with sampling interval, being transmitted wirelessly to a smartphone. [ 00:23:09 ]