33chen Posted June 12, 2013 Report Share Posted June 12, 2013 Dear all, Just want to how I can change the acceleration level from 2g to 4g on the Jeff's MPU6050 code for raw data. I assume I need to change AFS_SEL = 0 to AFS_SEL = 1. But how could I do it? I didnt find anything I need to change in MPU6050.h file. Do I need to do something on MPU6050.h file? Thanks all. Ji Quote Link to comment Share on other sites More sharing options...
33chen Posted June 14, 2013 Author Report Share Posted June 14, 2013 Hi guys, Just realize it is pretty simple question and I have solved it now. Thanks for this forum. Ji Quote Link to comment Share on other sites More sharing options...
D26 Posted August 9, 2014 Report Share Posted August 9, 2014 Hi, can you help me understand how to do it ? maybe im just dump, but i dont even know how to configure that bloody mpu. I dont know what ranges i have... all i found in the code is AFS_SEL = 0, 1, 2 but i dont know what to do with it.. Quote Link to comment Share on other sites More sharing options...
mohammadmt Posted November 13, 2017 Report Share Posted November 13, 2017 On 6/14/2013 at 9:09 AM, 33chen said: Hi guys, Just realize it is pretty simple question and I have solved it now. Thanks for this forum. Ji Hi 33chen, my apologies for opening this post again it's true that it's easy to change the range in the provided code by jeff rowberg, but I couldn't find any post about it in this forum. can you please help me how to do it. thank you Quote Link to comment Share on other sites More sharing options...
mohammadmt Posted November 14, 2017 Report Share Posted November 14, 2017 I found the answer my self in case anybody needs it I'm posting it in here the default sensitivity range for the accelerometer is +-2g which is equal to 16384*2, in which 16384 LSB is equal to the gravity acceleration 9.81m/s^2 in the source code of mpu6050.cpp line 66 the range has been defined as follows setFullScaleAccelRange(MPU6050_ACCEL_FS_2); by changing the number 2 into 4 the range is also changed into +-4g and the sensitivity accordingly to 8192 lbs. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.