Go Down

Topic: Realtime Graphing of Accelerometer/Gyroscope Data (Read 2910 times) previous topic - next topic

GlacialWanderer

I used and Arduino and and a few hundred lines of Processing code to graph out the data from some accelerometer and gyroscopes.  I think the graphing frameworks is pretty simple and can easily handle different types of sensor data.

All the code and more details about the project are at: http://www.glacialwanderer.com/hobbyrobotics/?p=261


knuckles904

#1
Jun 30, 2009, 06:22 am Last Edit: Jun 30, 2009, 06:36 am by knuckles904 Reason: 1
very cool, i was trying to learn processing to make a bar graph for gyro data but having a hard time moving to java based language. Would you mind posting a sample arduino code so i can see what the sketch expects to find with respect to serial data. It'd be great if i could use this for my I2C gyro with a little fanagling

(edit)Nevermind, saw it on your page. But I'm having problems compiling: Serial.write(*byte, int) not recognized. Im not seeing a two argument .write() in there either. What version are you using of arduino. Im using 0015.

GlacialWanderer

This feature was added in 0016.  Here is the bullet from the release notes:

* Adding write(str) and write(buf, size) methods to Print, Serial, and the
 Ethernet library Client and Server classes.  This allows for more efficient   (fewer packet) Ethernet communication.  (Thanks to mikalhart.)

There were also some other nice new features and I'm not aware of any regressions or other reasons not to upgrade.

knuckles904

Got it to work, thanks. Didnt know that 0016 made any major changes. I modified it to work with the Wii motion plus gyro. Would you mind if I post the modified version over in that exhibition post?

GlacialWanderer

That's awesome.  Feel free to post the code there.  I'll probably use it myself in the future.  I realized that I'm not going to have enough analog pins to do everything I want and this will let me share more pins.

Go Up