I recieved the Pi 3 weeks ago and the IMU about a week ago. I had to rework he dashboard code for color as the desktop it was developed on used 24 bit color and the Pi is only capable of 16 bit color. I had hard coded the color values in the code my bad so it did not port properly to the Pi.
The IMU as a more difficult integration. This works on the i2c bus on the Pi, but there is little code around on dealing with the raw data. I ave managed to use the code from BerryIMU as a template, qiute a frustrating experience I might add. The long and short of it being that I currently have the Roll (Heel) and Pitch outputs in degrees. The output seems stable to about 2.5 tenths of a degree sitting on a flat surface. It still seems like a lot of drift to me. Perhaps its hardware or maybe my code needs further tweaking.
I'm still waiting on a 20 character by 4 line LCD display which will be the ultimate cockpit display for the dashboard.
Anyone interested in the code leave a note and I will post it here.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
may not be of value but just in case https://github.com/richardstechnotes/RTIMULib2 has IMU code for a variety of IMU devices that may be worth perusing. It has ideas for self calibrating and I used it for an earlier project and found it worked well.
Are you sure? yes | no