Copter - 4.6-beta4 TBS Lucid H7 and GEP M10DQ compass not detected

Hi all,

I know this is beta software. For GEP M10DQ with external magnetometer QMQ5883L, I wired this up, but external compass is not detected at all. The external Barometer on the same GPS module is detected. Is there a cause for this?

Thanks,

On this Module both the magnetometer and the barometer are attached to the same bus.
So either the module is defect, (you can check if the barometer is really assembled, as the GEP M10Q is basically the same module but the barometer is not assembled)
Or in your FC firmware is the driver for the DPS310 barometer is missing. I don’t believe this.

Hi Juergen-Fahlbusch, For external barometer, I used DPS 280 driver, and I didn’t use the driver for DPS310. I can still get a reading from the external barometer with DPS 280 driver. The module is new, so it should work.

These are two very different, contradictory statements. I don’t know what you have or what you’re trying to do.
Does the second statement mean that you can evaluate the barometer data with the DPS280 driver? What kind of driver and setup is that? Was the module connected to the FC with which firmware, or how did you test this?
According to the manufacturer, a DPS 310 was used. I can’t say whether and how the corresponding drivers differ.

I am trying to get both Compass and Barometer working with the GPS.

Yes. I have evaluated the barometer data briefly. I set baro_probe_ext = 64 which is DPS 280. And I can see the data from the external barometer. I see two barometer in the Status tab.

However, the compass page is blank. The Compass_External was set to 0 by default. I changed all values to 1. Still not detecting any compass. Maybe this is a power issue since I am powering the whole board with ELRS receiver and GPS compass with USB Only. Also, there are two I2c bus. I wired to one, and only external baro works. I can try the other one.

First sorry sorry sorry.! I missread your first article. I thought the baro is missing but you clearly said that the compass is missing.
But also the magnetometer is something usual which is normally detected by the ardupilot firmware. And as both the baro and the magnetometer are using the same I2C bus on module side i Don’t believe it is a wiring problem.
Also I don’t think of a power problem. All parts of the GEP Module uses the same power.
So either configuration on FC side or still a defective GEP module. Also this can sometimes happen on this cheap modoles even it is a brand new one.

Hi All,

The issue is fixed by rewiring the SCD2 and SCL2 instead of SCD1 and SCL1.

Not sure why that is.

Thanks all (and to Juergen-Fahlbusch),

1 Like

Its probably because I2C2 is marked as internal, but then I don’t know why it found the baro but not the compass.

Hi Andyp1per,

I marked the compass external, and that did not work. I have the Matek H743 slim v3 and GEP M10DQ on another quad. That one, both barometer and Magnetometer work well.

When I rewire the GPS with magnetometer and barometer to SCD2 and SCL2, now compass works and barometer does not work. I need the compass to work and additional barometer is not as important.

When I wired the GPS with magnetometer and barometer to SCD1 and SCL1, barometer worked and compass does not work.

Maybe TBS Lucid I2c2 setup is not complete. Not sure why.

Is this GEP M10DQ the same or another module of same type?
If it is another did you tried to exchange the modules?

Yes. Same type. I tried exchange the modules, and the results are same. I think the software for TBS Lucid H7 is missing something.

Are you able to check on which bus the internal baro is connected and which adress is used. Is this different from external baro.

There are apparently no pull-ups on I2C1 - I suspect this could be the cause.

The external baro bus has to set to 1. When it is set to -1, the documentation is confusing. It says disabled, but documentation says probe all external baros.

In the status page, I can see two baros working.

This is because there are no pull-ups on the I2C bus. If you add a 4k7 resistor between 5v (or 4v5 depending on how you have your device powered) then it will work. I jerry-rigged something for my compass:

Thanks, Andyp1per. I think this board is not very good quality. I don’t recommend this at all. It is paper thin and many issues.

We’ll see - I just put it on my Chimera. There is a software fix for the pullups in hwdef you can try - AP_HAL_ChibiOS: add pullups to I2C bus on TBS LUCID H7 by andyp1per · Pull Request #29674 · ArduPilot/ardupilot · GitHub