Skip to main content
pjbumbur
Associate
October 30, 2016
Question

STM32 + MPU6050 / BMP 180 wrong data

  • October 30, 2016
  • 1 reply
  • 953 views
Posted on October 30, 2016 at 21:36

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)
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    October 31, 2016
    Posted on October 31, 2016 at 02:46

    If it is sensitive to the capacitor, then make sure you have solid power/ground connections, not thin/long wires.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..