rtlopez / esp-fc

Flight controller software for hobbyist
MIT License
250 stars 58 forks source link

Baro BMP280 not recognized #81

Closed skimans closed 1 year ago

skimans commented 1 year ago

Hi friends i have install baro BMP280 with connection 3.3v GND SCL(I22) SDA (I21) but not work. I have connected the 3.3V and GND directly to 3.3V and GND of MPU6500.

IMG20230906225906

rtlopez commented 1 year ago

HI @skimans please specify "not works". How do you verify it? Double check connections. Go to the CLI, type status command, and then reboot and paste result here. Also you can flash board with arduino i2c scanner sketch to verify if device responds at 0x77 address. Keep in mind, that baro reading is only informational, can only be logged to blackbox, it is not used in any flight mode, so altitude hold is not possible yet.

skimans commented 1 year ago

hi @rtlopez the external module baro BMP280 not recognized on the yellow panel icons . Now i checked with Arduino and this is the result:

Scanning... I2C device found at address 0x76 ! done

rtlopez commented 1 year ago

Hi @skimans This module documentation says

The I2C interface uses the following pins: • SCK: serial clock (SCL) • SDI: data (SDA) • SDO: The I2C address decides the pin. If SDO connects to GND(0), the address is 0x76, if it connects to VDDIO(1), the address is 0x77. In this module, we have connected it to VDDIO, so the address should be 0x77. • CSB: Must be connected to VDDIO to select I2C interface.

Is anything connected to SDO pin?

This module supports SPI, you can share bus with gyro, only need separate CS line. Connect CSB pin to baro_cs pi then, 13 by default.

skimans commented 1 year ago

Hi @skimans This module documentation says

The I2C interface uses the following pins: • SCK: serial clock (SCL) • SDI: data (SDA) • SDO: The I2C address decides the pin. If SDO connects to GND(0), the address is 0x76, if it connects to VDDIO(1), the address is 0x77. In this module, we have connected it to VDDIO, so the address should be 0x77. • CSB: Must be connected to VDDIO to select I2C interface.

Is anything connected to SDO pin?

This module supports SPI, you can share bus with gyro, only need separate CS line. Connect CSB pin to baro_cs pi then, 13 by default.

the SDO is free. anything connected. i dont understand what can i do for have 0x77 and connect it to I2c.....VDDIO ??

bsvdoom commented 1 year ago

I think this was an issue for me too, had to lookup the source code to find out that #define BMP085_DEFAULT_ADDRESS 0x77

the SDO is free. anything connected.

Do not leave these binary pins floating, look at the datasheet and connect to VCC (HIGH) or GND (LOW).

So in general: CSB and SD0 pins have to be connected to VCC = VDDIO = 3.3V .

image

rtlopez commented 1 year ago

@skimans take multimeter and ensure if there is no short-circuit to GND or other pin. If there isn't, you can safely connect it to 3.3V, otherwise you can burn LDO or even chips on boards. Normally there shoud be pull-up resistors on SDO and CSB, but it is not guaranted. Your BMP listen on 0x76 address just because SDO level is 0.

skimans commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

IMG20230907204422 IMG20230907204435

bsvdoom commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

I am sure if you donate to him he will work on it tomorrow =)

skimans commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

I am sure if you donate to him he will work on it tomorrow =)

do you have already donate....right ?

bsvdoom commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

I am sure if you donate to him he will work on it tomorrow =)

do you have already donate....right ?

yes, code :) and time to solve your issues :)

skimans commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

I am sure if you donate to him he will work on it tomorrow =)

do you have already donate....right ?

yes, code :) and time to solve your issues :)

OK. Allora fatti i cazzi tuoi. (use Goggle Translate for this..)

bsvdoom commented 1 year ago

@rtlopez now you must work for add GPS :) thanks much!!

I am sure if you donate to him he will work on it tomorrow =)

do you have already donate....right ?

yes, code :) and time to solve your issues :)

OK. Allora fatti i cazzi tuoi. (use Goggle Translate for this..)

Woah dude, you welcome for all my help. Write your own gps then. Chill and grow some humility, no one said any wrong to you. Also you should try to solve your problems before flooding the issues, and close all your solved issues here, thats another way how you can help the maintainer!