Hi! I'm working on a project in collaboration with jewelry design. We want to use two accelerometers to track a dancer's arms. We are using MMA8452Q accelerometers. For now we are trying to make one work.
The idea is to have the data from the accelerometers go to Pure Data, where the artist can select the sound he/she likes the best (the sound part is already covered in PD). The problem I have is I don't understand much on how the arduino is getting the data from the accelerometer. So far I get the values in the serial monitor, but I have to send that to PD (for which we will add a wifi module, since the idea is the dancer to move freely).
My question is, how do I send the data to PD? from what I can see in the example, provided by sparkfun, what is being printed is:
xdata "/t" (I understand that part in the code as a space) ydata "/t" zdata
In my interpretation that is not creating an array of the data is sending one by one separated by a space. Here comes my question, how do I create an array with the x,y,z data? How is it sent (ASCII, char, float...)?
I will really appreciate any possible help, thank you!