AnsweredAssumed Answered

STM32 + MPU6050 / BMP 180 wrong data

Question asked by jamrozowicz.przemysl on Oct 30, 2016
Latest reply on Oct 31, 2016 by Clive One
Hi,
I have STM32F103C8T6 and I've bought gyroscope + accelerator (MPU6050) as well as barometer (BMP180).

I am using HAL libraries from the website https://stm32f4-discovery.net/ with some modifications to be able to use it on STM32F1 board.

I can connect to both these devices, they seem to work but the data is really messy.
Barometer:
I am not touching it and once it says there is pressure 1000hPa and in the next reading it says there is 1012 hPa.

Gyro + acc:
This one gives even worse data, again - I'm not touch it at all and the values it returns jump a lot! I read that it could be because of the wrong capacitor (https://forum.arduino.cc/index.php?topic=394691.0) but I checked my board and it's 'the older one' from this thread so that's shouldn't be the case.

I wanted to use this devices to build simple drone but I won't manage to do it with such bad data.

Could anyone advise me what should I do? Are my devices faulty or it's a normal behavior and I should use some libraries to filter the data I receive? (I guess I can but filters won't do much if the data is that messy)

Outcomes