Close

The Pi and IMU have arrived.

A project log for Raspberry Pi based chartplotter

RPi 3 based chart plotting navigation

brinakeithbrina_keith 09/27/2016 at 00:521 Comment

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

Jonathan Kelly wrote 09/27/2016 at 01:35 point

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