Page 1 of 1

Can't read I2C on NucleoF103

Posted: Sun Dec 19, 2021 5:47 pm
by UsamaMechE
I'm a total beginner. Only got my device yesterday but I have a lot of experience with Arduino.

I'm using STM32duino since I'm already familiar with Arduino IDE.

I keep trying to read an I2C flow sensor on the STM32 but the board just won't recognize it.

Ran the default I2C scanner and it says that no I2C device was found. The same code works perfectly fine on Arduino.

I've inserted SCL into Pin D15 and SDA into Pin D14 as per pin mapping.

Can someone please guide me?

Re: Can't read I2C on NucleoF103

Posted: Sun Dec 19, 2021 6:36 pm
by fpiSTM
Add a pullup resistors (4,7k) on each i2c line.

Re: Can't read I2C on NucleoF103

Posted: Wed Mar 23, 2022 5:35 am
by UsamaMechE
this worked.