We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Ascii Parser | Sparkfun WiTilt BT 3axis accelero:.
Page Index Toggle Pages: 1
Ascii Parser | Sparkfun WiTilt BT 3axis accelero:. (Read 2470 times)
Ascii Parser | Sparkfun WiTilt BT 3axis accelero:.
Mar 11th, 2007, 9:49am
 
Hello, here is an example of how to parse the Ascii Data sent by the SparkFun WiTilt board. This runs on a Macbook Pro with Processing 0124. This example let you move a 3D cube in space according to the 3 axis of the accelero.

The code is not very well written, but it is a start ;) Any comments or improvements welcomed...

j*b

The .pde file here
http://insitu.lri.fr/~labrune/pub/BioscopeNew.pde
Re: Ascii Parser | Sparkfun WiTilt BT 3axis a
Reply #1 - May 8th, 2007, 10:53pm
 
Hi j*b,

I couldn't get your example to work Sad
Any chance you could list your WiTilt configuration?

Apart from that, thanks for sharing this!

-h
Re: Ascii Parser | Sparkfun WiTilt BT 3axis a
Reply #2 - May 9th, 2007, 12:11am
 
my witilt config is ASCII mode (gravity mode) at 135 Hz...

On mac you can use Zterm to check that everything is ok. You can also program it in processing with port.write but it's not that convivial...

Also, at the beginning, i had a problem with the voltage... I was giving less than 4V to the board (3,3 v cell battery) and it was not working... Now i'm using either 4 AA or directly a modified USB cable that gives 5/6 Volts directly to the board. It's been two month and the board is still on Smiley

My friend leah buechley is also using soft battery, you can find them at Sparkfun i think...

I'm currently working on optical-inertial tracking and still struggling with Extended Kalman Filters, any help would be cool Wink

cheers,
j*b

--

Ps: here is my console output


Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
/dev/tty.JbNokia-Dial-upnetworki-2
/dev/cu.JbNokia-Dial-upnetworki-2
/dev/tty.K750i-Dial-upNetworking-2
/dev/cu.K750i-Dial-upNetworking-2
/dev/tty.JbNokia-NokiaPCSuite-1
/dev/cu.JbNokia-NokiaPCSuite-1
/dev/tty.SparkFun-BT-COM0-1
/dev/cu.SparkFun-BT-COM0-1
/dev/tty.Bluetooth-PDA-Sync
/dev/cu.Bluetooth-PDA-Sync
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
/dev/tty.K750i-SerialPort-1
/dev/cu.K750i-SerialPort-1

RXTX Warning:  Removing stale lock file. /var/lock/LK.002.010.007

Voici le device attach? : /dev/cu.SparkFun-BT-COM0-1
+++++++++++++++++ Init WiTilt normal
+++++++++++++++++ Init WiTilt anormal
+++++++++++++++++ Init WiTilt anormal
+++++++++++++++++ Init WiTilt anormal
Experimental:  JNI_OnLoad called.
Page Index Toggle Pages: 1