inav icon indicating copy to clipboard operation
inav copied to clipboard

OmniNXTF7 external BMP280 barometer module not working.

Open ninja-zx11 opened this issue 8 years ago • 12 comments

Board and Version

OmniNXTF7 INAV/OMNIBUSF7NXT 2.0.0 Jul 14 2018 / 22:41:52 (f2cf315ad)

Behavior

External Bmp280 connected to i2C bus doesn't work.

The inbuilt barometer ST LPS25HB doesn't look precise.It comes up as 'FAKE' in the configuration menu.It works but not as precise as BMP280 or MS5611.So i tried to install external BMP280 module on SCL and SDA but it's not working and showing up as Red.No sensor readings.

Diff: `# diff

version

INAV/OMNIBUSF7NXT 2.0.0 Jul 14 2018 / 22:41:52 (f2cf315ad)

resources

mixer

servo mix

servo

feature

feature GPS

beeper

map

serial

serial 5 2 115200 57600 0 115200

led

color

mode_color

aux

adjrange

rxrange

osd_layout

master

set acc_hardware = MPU6000 set mag_hardware = NONE set baro_hardware = BMP280 set pitot_hardware = NONE set gps_sbas_mode = WAAS

profile

profile 1

battery_profile

battery_profile 1

` dump.txt

ninja-zx11 avatar Aug 05 '18 04:08 ninja-zx11

Is I2C properly terminated/does it have pullup resistors?

Tygrys-1 avatar Aug 05 '18 11:08 Tygrys-1

I m not sure but I tried connecting external bmp280 baro, OLED screen and external hmc5883L compass all at same time and both OLED and compass are working except this baro.My bmp280 module is tested working on F3 board.

ninja-zx11 avatar Aug 05 '18 12:08 ninja-zx11

Maybe check for I2C adress conflict? Devices sometimes try to mimic other devices and you cannot have two devices with the same I2C adress.

Tygrys-1 avatar Aug 06 '18 14:08 Tygrys-1

How can i check I2C address conflict?Sorry i am not an expert but can do with guidance.Thanks

ninja-zx11 avatar Aug 06 '18 16:08 ninja-zx11

Each I2C devide has it's own unique adress. For BMP 280 it is AFAIR 7A or 79. If the emulated Baro has the same adress as the external one it will be a conflict.

Tygrys-1 avatar Aug 06 '18 16:08 Tygrys-1

After searching i found that LPS25HB I2C address is 0x5C(92).So it should not conflict.Unless the baro is fake and it has a I2C address same as BMP280.

Another question:Why Inav configurator is showing baro as 'FAKE' if its LPS25HB?but if i use status command then it says LPS.

ninja-zx11 avatar Aug 06 '18 19:08 ninja-zx11

Because the configurator has not caught up with the firmware. Raising an issue on the configurator github may accelerate update.

stronnag avatar Aug 06 '18 19:08 stronnag

Ahh! Ok I will create an issue on Inav configurator. Is there any way to look up inside a firmware for the programed address of Lps baro?I don't know how it works but could it be that omninxtF7 has 2 i2c busses and it's not programed to see external barometer on second i2c bus as it has inbuilt baro?

ninja-zx11 avatar Aug 06 '18 20:08 ninja-zx11

I'm no expert but (in target.h) it seems that only the I2C1 bus is defined and that only supports mag, pitot and rangefinder. No support for any other baros other than the built in LPS25H on the SPI bus.

crashfrequently avatar Aug 06 '18 20:08 crashfrequently

That makes sense.I think you have found the reason why bmp280 is not working.

ninja-zx11 avatar Aug 06 '18 21:08 ninja-zx11

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar Oct 05 '18 21:10 stale[bot]

Automatically closing as inactive.

stale[bot] avatar Oct 19 '18 22:10 stale[bot]