How to use I2C Communication in STM32 Microcontroller

preview_player
Показать описание

Overview of I2C Communication in STM32 Microcontrollers:
Comparing 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. STM32 has Two I2C bus while Arduino Uno only has one I2C bus and STM32 is faster than Arduino.

Рекомендации по теме
Комментарии
Автор

Is it possible to do it the other way around? I am trying to have an Arduino UNO as the master, and the STM32F1 as slave, but when I compile the sketch for the SMT32 I receive an error saying "'class TwoWire' has no member named 'onReceive'". This doesn't happen when the Arduino is the slave. Thanks!

artuesquivel
Автор

CAN you make a video on how to upload blue pill (stm32f103c8) with USB as you showed in the video with com port

kebabsharif
Автор

one question i see u have used SoftWire.h with wire.h cant we use the inbuilt Hardware i2c lib
also how to use i2c 2 which is on PIN (B11 & B10)
this method is only valid for using I2C 1
do you know how to use i2c 2 using TwoWire method

sumitjadhav
Автор

That's great, thank you for the demonstration 👍

Loopyengineeringco
Автор

hi, i'm trying to communicate arduino(slave) and blue pill(master) with i2c using wire library on both devices. on slave reset, blue pill master seems hang. but not if i use arduino as master. anyone know why?

ijash-yt
Автор

how to choose the pin from some of the i2c pins? does it work for all I2C pins? . And do we need to avoid other I2C pins for other purposes?

maulanawahyudi
join shbcf.ru