Comments (3)
Hello Daara-S,
The calibration has to be performed when the MPU6050 is in upside-up position (and not upside-down)!!! If you do so with your MPU upside-down, the accelerometer reads approximately +1g on the Z axis, whereas it should be -1g (multiplication by -1 of the values, whereas the calibration supposes only an offset).
What you can do: Save the calibration whereas the MPU6050 is upside-up, and use these calibration values when it is started upside-down. The library will state that your MPU is upside-down, but with correct angular ranges. Tell me if this solves the issue.
What I can do: Add a upside-down mode that reverts the Z axis. So your MPU6050 can work upside-down as if it was upside-up.
Kind regards,
Romain
from mpu6050_light.
I just added a new feature to manage upside-down mounting. Please download the new library from github. Don't update the library from the Arduino library manager (in case you use it) since I didn't push the new version yet on the Arduino library manager.
Then have a look at the the new getAngle.ino example. There is a line to uncomment to manage upside-down mounting. The MPU6050 will behave as if it was mounted upside-up.
Please tell me if this solves your issue.
Romain
from mpu6050_light.
Hi Romain,
Thank you for the quick response, as well as the quick fix. The new feature works perfectly, I'm getting the same expected response as when the sensor is the right way up.
Best wishes,
Daara
from mpu6050_light.
Related Issues (20)
- Without Decimal place ?! HOT 1
- Issue with ESP32
- Suggest replacing use of math functions with float versions instead of double versions HOT 1
- GetAngle works fine alone but "hangs" up when embedded in other sketch HOT 2
- calcOffsets not working if being called outside of setup? HOT 3
- Fustion with magnetometer HOT 1
- Yaw angles are constantly drifting or increasing/decreasing rapidly HOT 2
- Pitch value changes with change in GyroZ HOT 2
- 5 MPU6050s HOT 1
- Trouble using 2 mpu HOT 1
- Using 2 MPU6050 HOT 1
- reset angle values to zero in void loop
- Angle Z gyro drifting HOT 3
- how to reset all for a status = writeData(MPU6050_PWR_MGMT_1_REGISTER, 0x01) = 0 again
- Angles problem
- Sensor in vertical position: would like to start the angle reading (0,0,0)
- question regarding the source code and the documentation
- Angle Z drifting HOT 1
- Interrupt capabilities
- Temperature sensor calculation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpu6050_light.