Jump to content
I2Cdevlib Forums

Recommended Posts

Hi Jeff,

I have calibrated acceleration x/y - axis, as z was already calibrated. I made changes in your raw file and attached it
Do you think this is good correction factor that i did?

This give me accuracy of +/- .01 unit in both the x and y axis.
 

MPU6050_raw.ino

PS:- Sorry forgot to mentioned this code uses deque to get RMS values for correction. 
link:- https://github.com/maniacbug/StandardCplusplus 
 and add  #include<deque>

and use SIZE to make it more smooth.

Edited by Sidharth4053
Forgot to mention few detials
Link to comment
Share on other sites

Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"

MPU6050_raw.ino: In function 'void loop()':
MPU6050_raw.ino:136:40: error: 'getCorrectionFactor' was not declared in this scope
MPU6050_raw.ino:141:37: error: 'getCorrectionFactor' was not declared in this scope
Error compiling.

  this the error i am getting when compiling code can u help 

Link to comment
Share on other sites

It is actual declare in the scope, I have checked the brackets.

Still anyways

Try this code attached below. Because if I am right things are going in correct manner.

Output URL:

IMG_7465.jpg


Sorry for my bad drawing, please consider asymptote touch at peak points of graph.

I have edited in only X-axis direction. move the chip toward X-axis and check the respective values.

Text (1).txt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...