Pages: [1]   Go Down
Author Topic: Arduino to Pure Data via serial - how to unpack data from accelerometer?  (Read 734 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a MMA 7660 3-axis Accelerometer and, using the library available here (http://www.timzaman.com/?p=1089), am able to read the x,y and z values from the accelerometer in the Arduino terminal.

Using the [comport] object in Pure Data (Pd), I am also able to get these values coming in there. However, in Pd they come in as a single stream of numbers of all 3 axes combined - the unpack object has no effect. Does anyone know how I might go about unpacking the separate x,y and z values from this stream?
Logged

Helsinki
Offline Offline
Newbie
*
Karma: 0
Posts: 31
A librarydude
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This article about Pd messages seems relevant for your question. How are you sending the messages over from Arduino to Pd, are you using directly the code from the website you linked to?
Logged

Pages: [1]   Go Up
Jump to: