I2C

STM32 I2C Tutorials

24 Articles

Interface AHT20 Sensor with STM32 Using I2C

Learn how to interface the AHT20 temperature and humidity sensor with STM32 using I2C. Includes circuit diagram, datasheet-based code, and project files.

Port U8G2 Graphics Library to STM32 – Step‑by‑Step

Port U8G2 Graphics Library to STM32 – Step‑by‑Step

Discover how to port the U8G2 monochrome graphics library to STM32 with hardware SPI, I2C, and software SPI methods. CubeMX setup, callbacks &...

Interface SH1106 1.3″ OLED with STM32 via I2C

Interface SH1106 1.3″ OLED with STM32 via I2C

Learn to interface a 1.3″ SH1106 OLED with STM32 via I2C. Includes wiring on STM32 I2C pins, CubeMX setup, init code, text, bitmaps...

Interface I2C-LCD1602 (AIP31068) with STM32

This tutorial covers how to interface the AIP31068 based Builtin I2C LCD display with STM32. The display needs only 4 pins to connect...

STM32 as I2C SLAVE || PART 7

This is the 7th tutorial in the STM32 I2C slave series. This tutorial covers clock stretching, General Call and Dual Address Acknowledgement.

STM32 as I2C SLAVE || PART 6

This is the 6th tutorial in the series, which covers how to write an I2C slave driver for the STM32. The slave sends...

STM32 as I2C SLAVE || PART 5

This is the 5th tutorial in the series, which covers how to write an I2C slave driver for the STM32. The master writes...

STM32 as I2C SLAVE || PART 4

This is the 4th tutorial in the series, which covers how to write an I2C slave driver for the STM32. The master send...

STM32 as I2C SLAVE || PART 3

This is the 3rd tutorial in the series, which covers how to write an I2C slave driver for the STM32. Slave starts processing...