You are currently not logged in and your progress will not be saved. Register or Log in

Lesson 6 – Serial communication (I2C)

Overview

Communicating with sensors and external components is a very common task performed by microcontrollers. The Inter-Integrated Circuit (I2C) bus is a popular protocol used to communicate with external components. In this lesson, we will go over the basics of I2C and learn how to use the I2C driver in nRF Connect SDK to interface with an external sensor.

In the exercise section of this lesson, you will need an X-NUCLEO-IKS01A3 expansion board to communicate with the STTS751 temperature sensor via I2C.

Objectives

  • Learn how to use the I2C driver in nRF Connect SDK
  • Practice using the I2C driver APIs through a hands-on exercise
  • Communicate with an external sensor using the I2C bus

Special hardware requirements