Skip to content
mikeshub edited this page Jun 20, 2016 · 12 revisions

Welcome to the Pololu_Open_IMU wiki!

I recommend not using the arduino IDE any more. I have moved to this:

http://eclipse.baeyens.it/

Follow the installation instructions on the website. Adding libraries is a little tricky. You have to put them in the right folder with the right format.

To find the directory to add libraries go to the install directory (probably eclipseArduino) -> arduinoPlugin -> Libraries

For your libraries to be usable in eclipseArduino properly you need to follow the rules for the folders. That is to say the files with the c and h extension must be in a folder with some version number. For clarification check out how the libraries in your arduino "IDE" installation are in folders vs how the libraries in eclipseArduino are in folders. For this project to work with eclipseArduino you will need to add Pololu's drivers for the IMU:

https://github.com/pololu/lsm303-arduino

https://github.com/pololu/lsm303-arduino

https://github.com/pololu/lsm6-arduino

https://github.com/pololu/lis3mdl-arduino

The current state of the project uses the Mahoney filter. I am going to add to the project the Madgwick filter for use with the 32 bit boards. I also plan add a basic attitude estimator for the 10dof units as well as integral feedback for the standard Madgwick filter.

To get the DUE to work with arduinoEclipse I had to add an environment variable that was A.TOOLS.BOSSAC.SERIAL.PORT.FILE with the value ${JANTJE.COM_PORT}

window -> preferences -> C/C++ -> Build Variables -> Add

Variable name: A.TOOLS.BOSSAC.SERIAL.PORT.FILE

Type: String

Value: ${JANTJE.COM_PORT}

I used this program to generate the ellipsoid fit for the magnetometer:

https://sites.google.com/site/sailboatinstruments1/home

For the accelerometer the offset of each axis is 1/2 * (max + min) . The scale factor is 9.8 / (max - offset) which will be use for the coming altimeter. The filter normalizes the measurement vectors.

Use the defines to output the magnetometer readings needed for the ellipsoid fit and accelerometer readings for the max and min values.

Clone this wiki locally