Can't connect BMP280

Hi,

I'm trying to connect BMP280 to Arduino Uno r3. But when I run bmp280test from Adafruit bmp280 library (github here)

I get

(the same thing happens when I'm not conneting sensor at all)
I am using this sensor

https://pl.aliexpress.com/item/1005003358305901.html?spm=a2g0o.order_list.0.0.496d1c24P81cL8&gatewayAdapt=glo2pol

and I connected

BMP280 Arduino
VCC 3.3V
GND GND
SCL 13
SDO 12
SDA 11
CSB 10

As I see, you have some confusion with the connection. Signals SDA & SCL refer to i2c bus, but Uno pins 10-13 - to SPI bus.
Do your sensor has I2c or SPI interface?

Product page says that sensor supports I2C and SPI

Yes, but usually it sells configured to one interface. Can you show link to the seller or your photo of the sensor?

link to seller: https://www.aliexpress.com/item/1005003358305901.html?spm=a2g0o.order_list.0.0.496d1c24P81cL8&gatewayAdapt=4itemAdapt
Sensor

(sorry for image quality)

Thanks, I've looked. your sensor does indeed support two types of connections. Now try to connect it via i2c

Did the OP solder the header pins onto the BMP module?

The BMP module as pictured can use the I2C or SPI buss.

@b707 when i connect it to I2C i get this

sensor arduino
VCC 3.3V
GND GND
SDA A5
SDO A4

When you ran the I2C scanner did you get a device detected?

@Idahowalker I'm not sure what you mean (I'm a begginer)
if header pins is this


then no

I think I'm doing something wrong I got an error
image

How is the BMP being connected to the micro-controller? Post an image.

That,

is a problem that must be fixed before any other issue.

Hi stanleeey,

A few observations -

1. The connections to the BMP 280 as shown in your photo within post #13 really need to be soldered to the board. As you will never be able to guarantee a reliable connection by just poking the pins into the via holes of the BME280!!!

2. The Arduino connections shown in your photo within post #8 A5 & A4 are not the Arduino Uno r3's SDA & SCL (I2C) connections - If you look at the Pinout Diagram shown for the Arduino r3 you will see that the I2C port resides on pins D19 (SCL) & D18(SDA)

You need to have reliable connections to the correct port or this never going to work!

1 Like

This are the same pins. If you look at the schematic on your own link -
you will see that pins A5 A4 on Uno are directly connected to pins D19 D18.
Moreover, on the Nano there are no separate pins for SDA and SCL, and I2c bus is located on the pins A4 A5

I will try to solder the connection, but I don't have acces to soldering iron right now so it is going to take while.

I've soldered the pins but it does not change anything (same error).

Ps. Itwas my first time soldering sothis might be the issue (it probably is)

I'd say the soldering job is an issue.

Agree with Idahowalker

Also, you seem to have more wires connected this time. As you are using I2c you only need to connect wires to VCC, GND, SCL & SDA