Can't read I2C on NucleoF103

Post here first, or if you can't find a relevant section!
Post Reply
UsamaMechE
Posts: 3
Joined: Sun Dec 19, 2021 5:43 pm

Can't read I2C on NucleoF103

Post 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?
by fpiSTM » Sun Dec 19, 2021 6:36 pm
Add a pullup resistors (4,7k) on each i2c line.
Go to full post
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Can't read I2C on NucleoF103

Post by fpiSTM »

Add a pullup resistors (4,7k) on each i2c line.
UsamaMechE
Posts: 3
Joined: Sun Dec 19, 2021 5:43 pm

Re: Can't read I2C on NucleoF103

Post by UsamaMechE »

this worked.
Post Reply

Return to “General discussion”