Arduinio FIO with XBEE and Funnel IO - Config
in
Android Processing
•
2 years ago
So. I am helping a performance artist interface some battons to Max.MSP. We have everything working great except the Funnel IO configuration of the nodes at startup\power on.
Currently we have to run and re-run the processing server code - sometimes many times - before the digital IO configuration works. This seems to be due to firmata not getting told to configure - or not being told at the right time - or similar.
Funnel IO is essentially closed source - I cannot see the code anywhere (not the current version anyway).
We are getting desperate - this thing has to travel from Chicago to NYC. I cannot move on to finishing the hardware fabrication until the prototypes work!
Has anyone gotten configurations to work correctly with procession\fio\funnel IO\ xbee ? The unpredictable nature of the problem (it takes random re-runs to get the processing funnel IO server to configure the nodes) is maddening!
Thank you! thank you! (In adavance)
Currently we have to run and re-run the processing server code - sometimes many times - before the digital IO configuration works. This seems to be due to firmata not getting told to configure - or not being told at the right time - or similar.
Funnel IO is essentially closed source - I cannot see the code anywhere (not the current version anyway).
We are getting desperate - this thing has to travel from Chicago to NYC. I cannot move on to finishing the hardware fabrication until the prototypes work!
Has anyone gotten configurations to work correctly with procession\fio\funnel IO\ xbee ? The unpredictable nature of the problem (it takes random re-runs to get the processing funnel IO server to configure the nodes) is maddening!
Thank you! thank you! (In adavance)
- The relevant code in processing: ]// Creates FIO Funnel Object
Fio fio;
PFont myFont;
// Creates MaxLink Processing to MAX/MSP interconnection Object "bouncer"
MaxLink link = new MaxLink(this, "bouncer");
void setup()
{
size(600,600);
frameRate(25);
myFont = loadFont("CourierNewPSMT-24.vlw");
textFont(myFont, 24);
int[] orbIDs = {1,2,3};
Configuration config = Fio.FIRMATA;
config.setDigitalPinMode(4,Fio.IN); // Left Glove In 1
config.setDigitalPinMode(5,Fio.IN); // Left Glove In 2
config.setDigitalPinMode(6,Fio.IN); // Right Glove In 1
config.setDigitalPinMode(7,Fio.IN); // Right Glove In 2
config.setDigitalPinMode(8,Fio.IN); // Right Glove In 3
config.setDigitalPinMode(9,Fio.PWM); // Red LED Out
config.setDigitalPinMode(10,Fio.PWM); // Green LED Out
config.setDigitalPinMode(11,Fio.PWM); // Blue LED Out
config.setDigitalPinMode(12,Fio.IN); // Left Glove In 3
fio = new Fio(this,orbIDs,config);
1