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 #24 – HOW TO Read from and Write to I2C Slave

2K views on YouTube

In this video we will use I2C to read temperature data from the BMP085 Temperature/Pressure sensor.

Sensor documentation here: https://stm32world.com/wiki/Bosch_BMP_series_digital_pressure_sensor

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

00:00 Intro and recap
01:55 Understanding how to read temperature
03:00 Creating defines for registers and addresses
04:00 Creating the read temperature function
04:50 Writing TO the I2C device
07:27 Reading temperature raw data
08:35 Testing our stuff
13:40 Plans for the future