Go Down

Topic: MPU6050 library, how to reduce code size? (Read 247 times) previous topic - next topic

steveh2112

i'm using the library from jeff rowberg
https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050
which works great but is a bit large in program memory space

i'm now at a 99% program memory usage and have more stuff to add so thinking maybe there is another library that a bit smaller but works just as well. any suggestions?

i'm only interested in pitch and roll, down't care about any of the other stuff

thx

alesam

You can try tiny MPU6050 lib - https://github.com/gabriel-milan/TinyMPU6050

But what about other parts of your design? May you can save much more somewhere else?

vbshightime

Perhaps mentioned below library will help you out

https://github.com/ControlEverythingCommunity/MPU-6000/blob/master/Arduino/MPU-6000.ino

steveh2112

actually this one is very little code at all and runs really fast and seems to work really well
https://github.com/jarzebski/Arduino-MPU6050

Ardy1234

How long should it take for the mpu.Calibration() call to run? Mine's been sat here for a good 10 minutes and still reporting as calibrating.

Go Up