Can't connect MaxMSP 8 to Arduino? Mac OS

Duke of Fish's icon

Hi all, I'm trying to connect MaxMSP to my Arduino Leonardo.

here's my syntax in Arduino IDE:

int knobValue = 0; //Initialization, define knobValue!

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600); //standard communication speed!
}

void loop() {
  // put your main code here, to run repeatedly:
  knobValue = analogRead(0); //read sensor value sent to analog input 0
  Serial.println(knobValue); //send to MSP!
  delay(5);
}

And here's my patch in MSP:

Patch in MSP

I double checked and the port is b so that should be correct. I keep getting bsd_path and not having MSP connect to my arduino knobs. I allowed MSP to access all my computer files so that part should be fine too. In a real pickle here, does anyone have any ideas why it's not working?

Best,

Fish

Source Audio's icon

quit arduino and try again.

that way of switching port on / off is bad.

use close message, and port b, poll 10

instead.