I am working on a project in which two dancers will be wearing belts rigged with flex sensors that connected to a Lilypad/Xbee combo.
Right now I am running StandardFirmata on the two arduinos which are wirelessly communicating with processing using Xbee modules. The values from the analoginputs are being used in processing to trigger audio samples.
If I only turn on one of the Arduinos, the sketch runs fine. Turning on both results in the readings mixed readings between the signals from the two devices. I am familiar with the idea of using a Start byte, but I do not know how to implement them, where to implement them, or even if they are the most efficient/easiest solution to my problem.
Also another important piece of information is that I tried to pre-empt this issue by using analog pins 0-2 on arduino A and 3-5 on arduino B (each device has 3 flex sensors hooked up to it). This means that at all times, pins 0-2 on A have a higher value then 0-2 on B which read at zero. The same is true for 3-5 on device B. I am not sure if this provides a useful workaround, but though it might be good to know.
I have attached my processing sketch, and like I said both the Arduinos are running StandardFirmata(with a modified baud rate of 9600).
Thank you in advance!
WACIS_AllSensors.zip (1.06 MB)