HI fellow nerds ;),
I am trying to connect a gsr sensor, route the data to the analogue 0 and 1 of the Arduino BT and then send it via the serial port to Max MSP to do interesting stuff with it there.
However, it seems that the Arduino hogs the serial port (even if Arduino is shut down) and Max/MSP can't access it. The Arduino Code is:
int analogPin =0;
int analogData =0;
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print(255, BYTE); // ff header
for(analogPin=0; analogPin<2; ++analogPin)
{
analogData = analogRead(analogPin);
Serial.print(analogData >> 2, BYTE);
Serial.print((byte) analogData & 0x7F, BYTE);
}
Serial.print(255, BYTE);
delay(4);
}
Can you see what the problem is?? Any help appreciated, I'm a bit of a newbie. Thanks! x