Go Down

Topic: Arduino to Pure Data via serial - how to unpack data from accelerometer? (Read 754 times) previous topic - next topic

AlexE92

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?

mace

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?

Go Up