Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The barometer integrated on GEPRC's GPS is not working - the solution #10442

Open
YI-BOYANG opened this issue Oct 31, 2024 · 1 comment
Open

Comments

@YI-BOYANG
Copy link
Contributor

YI-BOYANG commented Oct 31, 2024

Hello everyone, I am a staff member of GEPRC. Long ago, we found that there is no integrated barometer in the FC launched by some brands, which has no impact on the firmware of Betaflight. However, the lack of barometer will cause some functions of INAV firmware to be unable to be used normally.
We found this pain point, so have developed the GEP-M10 and GEP-M1025 GPS series, in the GPS integrated DPS310 or MS5611 barometer, just connect SCL and SDA can add to the flight control barometer, very popular with players, this is their product introduction link.


However, we found that the FC design of some brands is quite different, so that the barometer integrated on our GPS can not be activated normally in these FCS. Through the feedback of users, we summarized the following reasons:

1.The barometer definition is not added to target
In most cases where the barometer cannot be turned on normally, we found that the FC target they used did not add the corresponding barometer definition, just add the definition of DPS310 or MS5611 to target.h, and then recompile the firmware to work properly.
define USE_BARO_DPS310
define USE_BARO_MS5611

2.FC defines two I2C buses, but the barometer and magnetometer are not set on the same I2C bus
Some FCS have 2 I2C buses, I2C1 for the external magnetometer and I2C2 for the internal FC barometer, e.g. GEPRCF405(this is a historical issue....) . You need to set the magnetometer and barometer to work on the same I2C bus, and then recompile the firmware to use the barometer integrated on GPS.
image

3.The I2C address of the barometer conflicts
The default I2C address of BMP280, DPS310, and SPL06 is generally 0x76. If the three models of barometers are integrated in the FC and the GPS integrated with DPS310 is connected to the FC, the I2C addresses of the FC and GPS barometers will conflict, resulting in the failure of the two barometers to work properly.


We recommend that users have FC integrated with these barometric timings, which can be purchased with integrated MS5611 or GPS without a barometer. If you have already purchased a GPS integrated with DPS310, we offer two solutions:

  1. Turn off the barometer on your GPS
    Remove the 0R resistor next to the barometer, you can turn off the power supply of the barometer, so that it no longer works, so that the I2C address conflict will not be caused, and the barometer integrated on the FC can be used normally. When it is necessary to reactivate the barometer on the GPS, it is only necessary to add a tin short at the position of the 0R resistance.
    image

  2. Change the I2C address of the DPS310 barometer on the GPS
    If you must use the DPS310 barometer on the GPS, you need to remove a resistor next to the DPS310, so that the DPS310 I2C address will be changed to 0x77, so that there will be no I2C address conflict with the FC integrated barometer.
    Then change the I2C address of DPS310 in common_hardware.c to 0x77, and then recompile the firmware for normal use.
    BUSDEV_REGISTER_I2C(busdev_dps310, DEVHW_DPS310, DPS310_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0);
    image

If you have other problems with GPS use, please mention them in this issue, thank you.

@YI-BOYANG YI-BOYANG changed the title GEPRC's GPS integrated barometer solution does not work The barometer integrated on GEPRC's GPS is not working - the solution Oct 31, 2024
@thidas1290
Copy link

I'm using speedybee f405 mini FC and it's inbuilt DPS310 barometer is not working correctly. So I'm planning to use Geprc m10 dq gps module. if I understood correctly there's no software based method to disable inbuilt barometer, since it's on the same I2c bus and both have same address, therefor either I should remove the inbuilt barometer or should change the address of the DPS310 on gps module ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants