Servers by jDrones

Compass and Baro Error

I have a Trex 450 Running Arducopter 4 Traditional Heli. The copter is flying well in Stabilise, Alt Hold and Loiter but get the following errors in the logs.

Baro-4 and Compass-4 errors

The Hardware is a Matek F450 wing and a 3DR GPS which is rotated at 270 Degrees. I have calibrated the compass at several different locations and get constants offsets.

Below are Logs and a picture of the setup.

David Ardis

@ardisd Hi David,
Sorry it took me so long to get back to you. I was able to enlist @tridge help on this. He went through quite a bit of different things to figure out the issue. Here is what he thought could be the issue
Poor quality power being supplied to the board
RF interference from an antenna ( you could remove any antennas and see if the problem goes away)
Wiring to GPS causing a problem on I2C (if there is a long wire run to the GPS, you could use a shorter wire and temporarily move the GPS and install the GPS closer and see if the problem goes away)

Looking at the errors, both the compass and baro errors were occurring at exactly the same time which leads us to think it is a communication problem

he asked whether you could reproduce the problem on the bench using a LOG_DISARMED set to 1 and fast logging.

The other thing he suggested was seeing if you saw a similar problem if you put the same set up on another matek same model board. If you could reproduce the problem that way then it could be a board issue.

Along the lines of the problem being an I2C problem, he wondered if you installed a pull up on the I2C. He said that the directions on how to do it are provided by the manufacturer.

Sorry about the uncertainty of the diagnosis but there wasn’t any data that could point us to conclude on what the issue is.

Again I apologize for taking so long to get back to you.

Bill @bnsgeyer

Don’t worry about the delay its not a problem.
Based on the suggestions detailed above I did a few tests.

Power appears to be quite good enclosed is a link to a screenshot from the scope. This was done across the power pins of the GPS Module

The only antenna on the Trex 450 is the Radio receiver I had already removed everything else. I shortened the GPS cable by 150mm and it made no difference.

On the bench I enabled fast logging and set log-disarmed to i and got a lot of BIN files

I don’t have another F405 board but could get one.

On the Pull Up resistor issue I don’t see any reference to installing a pull up resistor. perhaps you have a link

I also did a put the scope on the I2C clock and data line below are links to the sreenshots
Clock looks good. But I think there might be an issue with the data. There is a sharp peak, the voltage might be low and the noise.



Thanks again
David Ardis

Servers by jDrones