Go Down

Topic: Guide to gyro and accelerometer with Arduino including Kalman filtering (Read 313 times) previous topic - next topic



Hi mate, I've seen you videos on Youtube and thats how I've got here!

I need a 2 axis gyro and 2 axis accelerometer for what I need, wich board do you suggest?




One of the most popular at the moment is the MPU-6050 from InvenSense: http://www.invensense.com/mems/gyro/mpu6050.html. I got a one as well and the performance is pretty good and you can also do a lot of advances stuff with it.
There is a breakout board available form Sparkfun: https://www.sparkfun.com/products/11028 and a lot of other places like ebay.

Here is a basic example sketch I wrote: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/MPU6050

If you need to work with the onboard DMP, I recommend the following library: https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050


What is the Arduino that you used for this project and do you think that there would any problems with coding the gyro/accelerometer module that you used for a Nano v3.0?


I originally used a Duemilanove, but I have since used the same code for Arduino Uno, Mega etc.
You can use it with a Nano just fine.

Go Up