

The programming is similar to the Arduino code. These values are sent via I2C communication bus. To demonstrate I2C communication in STM32, we control the master STM32 LED by using slave Arduino push button value and control slave Arduino LED by using master STM32F103C8 push button value. Both boards are attached with an LED & a push button separately. In this STM32 I2C tutorial we will configure the STM32F103C8 as Master and Arduino as Slave.

STM32 has Two I2C bus while Arduino Uno only has one I2C bus and STM32 is faster than Arduino. To know more about STM32 board, check other STM32 projects.Ĭomparing I2C (Inter Integrated Circuits) in STM32F103C8 Blue Pill board with Arduino Uno, then we will see that Arduino has ATMEGA328 microcontroller in it, and STM32F103C8 has ARM Cortex- M3 in it. In this tutorial, we will use I2C bus for communication between Arduino and STM32F103C8, and will learn about SPI bus in next tutorial. So it would be great to learn about communication between STM32 and Arduino by using SPI & I2C bus. STM32 has more features than Arduino board. In this tutorial we will replace one Arduino board with the Blue Pill board that is STM32F103C8 and will communicate with the Arduino board using I2C bus. In our previous tutorials, we have learned about SPI and I2C communication between two Arduino boards.
