ArduIMU groundstation written in 'processing'

I have created a basic 'ground station' for the ArduIMU in the 'Processing' IDE

The Processing development environment is very similar to the Arduino evironment
Processing compiles into Java, it allows you to run the same code on Windows, Mac OSX and Linux.

Being a Mac user and suffering from not being able to find and run the correct version of the NI LabView runtime engine I decided to have a go at creating a ground station myself.

This version ArduIMU_v004.zipwas the result of only a couple of hours of work so is a bit rough.
NOTE: This is slightly updated from Original code uploaded - fixed 2 bugs.

It borrows some of its design from the exiting LabView example and from Jose Julio's Python(?) example

The Ground Station:
Logs All incoming Serial data to a text File
Shows raw data in real time
Displays key data in text
Displays Accel and Gyro data as bar graphs
Displays Roll Pitch and Yaw as rotating lines
Displays an 'aircraft' showing 3D orientation

Press Y to ignore Yaw
Press L to start or stop Logging
Press Q to Quit

Here it is operating (with no GPS - inside the house)

I intend to keep developing the code for my own purposes.
I'd be happy to hear any suggestions or requests for features
Please let me know what you think?

Views: 1954

Comment by Mark Colwell on November 28, 2009 at 9:50pm
Code links are not working...
Comment by Mario on November 28, 2009 at 10:11pm
Hi Mark,

The second link I posted is working for me.

To type it directly in your browser use this address:
Comment by Mario on November 28, 2009 at 10:14pm
somehow the link above was autocreated but the (2).zip part got truncated. you need to type it manualy.

Comment by Mark Colwell on December 3, 2009 at 8:43am
Work for me now.. Thanks
Comment by agmatthews on December 31, 2009 at 1:58am
Hi All,
Here is an updated version of the code with everyone's input included and a few extra 'improvements'
You can now set most of your preferences in the Setup.pde file (eg COM port, colours, etc)
There is a partially implemented HUD or instrument style view (change DrawAirCraft to 0 in Setup). This needs a bit of work still to complete but you should get the idea.
A 'GEO' log can also be saved (press G when running) this is compatible with where you can upload these logs and see your flights / trips

Latest testing has been done with the r21 firmware from Doug Weibel

Comment by Andy Geppert on January 1, 2010 at 6:38am
Thanks again Andrew! It looks and works very well. I really need to get the ArduIMU in an airplane...
Comment by agmatthews on January 1, 2010 at 7:09pm
I've been taking the ArduIMU flying in my 'real' plane to collect some evaluation data
See Dougs ArduIMU v1 hardware users - Firmware help blog for some example data


Comment by Mark Colwell on January 1, 2010 at 10:22pm
Andrew this version is great with new Setup options. Nice smooth translations. HUD is cool, but could use degree indicators on pitch & roll lines & compass dial if possible.. Thanks
Comment by Randy Varilek on January 10, 2010 at 5:24am

Thank you for posting this. Really saved me a bunch of work and is much better than anything that I could have done.

Comment by Gordon P. on March 8, 2010 at 5:03pm

Thanks for sharing your code.

1. I'm new to running processing code, I've exported the program but when I open up index.html a java prompt pops up asking if I want to disable driect draw, I select NO. Then the page loads, but shows just a white area where the applet should be. Any idea what I'm doing wrong? (Screenshot: )

2. Also where is this console you speak of that says the com ports? I know its com4 however and set it to 4 in the code.

3. Will this work with the new 9DOF razor board? That is what I have....

Thanks again,


You need to be a member of DIY Drones to add comments!

Join DIY Drones


Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service