Our GIT repository has been updated with an Arduino sketch which calculates angles using a complementary filter. The heading is also calculated using the magnetometer.
Detailed Guides and Tutorials
In this order;
Guide to interfacing a Gyro and Accelerometer with a Raspberry Pi
Guide to interfacing a Gyro and Accelerometer with a Raspberry Pi – Kalman Filter
Create a Digital Compass with the Raspberry Pi – Part 1 – “The Basics”
Create a Digital Compass with the Raspberry Pi – Part 2 – “Tilt Compensation”
Create a Digital Compass with the Raspberry Pi – Part 3 – “Calibration”
These cover both BerryIMU and displaying graphics with SDL on a Raspberry Pi;
How to Create an Inclinometer using a Raspberry Pi and an IMU
6 thoughts on “BerryIMU code for Arduino – Accelerometer, Gyroscope and Magnetometer”
Where do you buy one of these? More importantly, whats the method for programming/using?
You can purchase one here;
You can use C or Python to program it, example code here;
Interesting read and appreciate your work but i’m failed to understand difference between those sensors? Can you provide more details or any exact source on this?
i want the code of berrygps-imu-v3
in raspbery pi or arduino
I couldn’t run imu on arduino with the codes in this link. How can I make changes?