Hi,
I have trouble with connecting Arduino with Puredata. I want to send series of 13 integers and receive those values in Puredata over serial port...
I've tried all solutions from Arduino Playground - PD, but all with major problems :
- SimpleMessageSystem :
The problem is proper parsing of messages in Puredata, since integers can be sent by various lengths (up to 5 chars) and coresponding patch doesn't seem to be dealing with this ok - so numbers more look like a mess - also when parsing group command is used in PD that probably assumes fixed length of messages... ?
- Pduino: I'm basically doing this :
setup:
Firmata.setFirmwareVersion(0, 1);
Firmata.begin(115200);
loop:
currentMillis = millis();
if(currentMillis - previousMillis > samplingInterval) {
previousMillis += samplingInterval;
while(Firmata.available()) {
Firmata.processInput();
}
for(pin = 0; pin < 5; pin++) {
analogValue = (int)values[pin];
Firmata.sendAnalog(pin, analogValue);
}
}
but it just does nothing... Shouldn't be sending values to PD ?
- Arduino PureData Message System
It seems the simplest, but Puredata patch doesn't parse integers from ascii text properly. It insers space after each digit, so reconstruction of integers is impossible to me...
I'd kindly ask for any guidance, pointer to more info or any experience with this... I'd just like to transfer set of 13 integers from Arduino to PD continuously..
Thanks in advance,
regards,
Bulek.