Altitude hold quadcopter BMP180

Hi there,
i'm working on a quadcopter to hold an altitude. i'm using the bmp180, so i want to make a pid to hold an altitude.
the problem is the bmp180 verry noisy, so i wonder how to filter those noise and make the sensor smooth.
i heard there is some company who buikt drone, they fusion the barometer with z accelerometer. bit i have no idea to do this, i'm looking on the internet but no solution i find.
if someone did a altitude hold, i would like to give me some advises to make the bmp180 smooth.

Thanks :slight_smile:

Hi,
Watch following videos. The source code is provided in video description:

Thanks for the link, i saw this video, but the author doesn't give the altitude hold stabilty i told him 2 months ago, but he ddid't want to give me the code :slight_smile:

I think the ArduPilot is open sources but you have to digout the code for it...

it's verry complicated, what i want it's not reading barometer value, i want to filter the nbarometer from the noise, and it's not easy, we have to implement kalman filter and other tricks

Here's a source of free filter software.

And here's the ArduPilot software.

Hi thanks for thos elink, so could you tell me waht is the best filter for altitude hold stability
please

There are numerous filters that would work but you have a lot of interacting parameters. You have to consider several frequencies, the noise source, ADC sampling, motor update rate, filter corner. I would first look at the documentation for ArduPilot and see how it was handled. You also have to consider how much of a work load the CPU can handle.

Thanks for all those informations :slight_smile: