Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

STM32 Tutorial #20 – Understanding I2C

5.4K views on YouTube

In this video we will introduce the I2C bus and the STM32 HAL libraries supporting the I2C peripheral.

Please LIKE and subscribe and comments are always appreciated. WARNING to the woke audience – I use the regular terms master and slave!

STM32World wiki: https://stm32world.com/wiki/I%C2%B2C

Project Files: https://github.com/STM32World/stm32fun

00:00 Intro and recap
02:50 The important parts – bus implementation and I2C addresses
06:12 Explaining the address bits
07:45 Introducing a random I2C breakout board
10:10 Brief look at a I2C device datasheet
13:30 Creating a STM32CubeIDE project
14:12 Internal pull-up
14:50 Looking at the code and HAL library
17:10 Scanning the I2C bus
19:55 Running the I2C bus scan
21:00 Outtro and teaser for next video