@aujas_mehta (Aujas Mehta) posted a new topic, subject "MPU 6050 data fluctuating between -1071 and 783". It read:

   My mpu6050 data is fluctuating between-1071 and 783 the connections are as follows  
    Gnd - God  
    Vcc - 5v  
    Scl - a5  
    Sda - a4

So @Idahowalker (Idahowalker) replied

    The code you posted about your fluctuating data does not have some kind of data filter involved with the processing. Nor do I see the code of your MPU calibration procedure.

So @aujas_mehta (Aujas Mehta) replied

    The code is adafruit library's example

After which, @Idahowalker (Idahowalker) added

    You may not be aware but Adafruit makes a lot of sensors and has lots of library examples.

So @jremington (jremington) replied

    Fluctuations in data values are normal and expected.
    
    For informed advice, please read and follow the instructions in the "How to get the best out of the forum" post.

@aujas_mehta (Aujas Mehta) replied

    Ok thanks

After which, @aujas_mehta (Aujas Mehta) added

    I'm talking about the mpu6050 library made by adafruit

@Idahowalker (Idahowalker) replied

    Oi! I ran that years ago. What I remember is it did not calibrate nor did it offer any data filtering schemes, and see post#5.

@aujas_mehta (Aujas Mehta) replied

    If possible could you provide a working code as I'm new to this

To which @Idahowalker (Idahowalker) replied

    Internet search using words "arduino quaternion".

@system (system) replied

    This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.


{'source': 'discourse', 'url': 'https://forum.arduino.cc/t/mpu-6050-data-fluctuating-between-1071-and-783/915177', 'title': 'MPU 6050 data fluctuating between -1071 and 783', 'views': 192, 'has_accepted_answer': False, 'word_count': 182, 'like_count': 0, 'reply_count': 6, 'participant_count': 3, 'posts': 11, 'tags': '', 'author': '@aujas_mehta (Aujas Mehta)', 'participants': '@aujas_mehta (Aujas Mehta), @Idahowalker (Idahowalker), @jremington (jremington), @system (system)', 'image_url': [None], 'created_at': '2021-10-15T14:30:51.317Z', 'last_posted_at': '2022-04-13T17:52:00.134Z'}