dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec
GNU General Public License v3.0
168 stars 41 forks source link

BMP280 and Ibus #61

Closed erwann56 closed 2 years ago

erwann56 commented 2 years ago

I quickly tested the "BMP280 module 3.3V (6 pins, I2C/SPI)" with GPS and voltage. I have 3 additional sensors which appear TEMP1, 00Gp and Vspd). Temp1 displays 40° and the others are at 0. GPS and voltage are OK. I connected the BMP280 to the arduino nano at 3.3v, GND, A4 and A5. Did I forget something?

dgatf commented 2 years ago

Fixed now. Flash updated code

erwann56 commented 2 years ago

I always have the BMP values ​​at 0 except TEMP1 at -40. I did a scan of the i2c port, I can't find my sensor. I do not understand why. I'll keep you informed.

erwann56 commented 2 years ago

The i2c scan finds it with the address 076. (dry solder on A4) The telemetry is always identical temp1 -40 and alt at 0.

For the BMP280, what address should you put 76 or leave 119 (default on Gui)?

dgatf commented 2 years ago
erwann56 commented 2 years ago

I will test again but everything seems OK at the sensor level. For the I2C address, should I leave 119 or put 76?

sensor test

dgatf commented 2 years ago

If using lua script, use a decimal number 118 If using config.h, use either a hex 0x76 or decimal 118

For the I2C address, should I leave 119 or put 76?

Note that 119 is 0x77, not 0x76

Usually BMP280 is either 0x76 (118) or 0x77 (119). Try both

erwann56 commented 2 years ago

1644603573840

It was an address problem. I had to put 118. However, there is a lag for temperature. Instead of 21°c I have -18°c.

dgatf commented 2 years ago

Temperature and sat formats fixed.

Also added vario for gps.

erwann56 commented 2 years ago

Everything is perfect.