Reading string data in arduino from serial port (MaxMSP)

Hi,
I'm using the software MaxMSP to send 0 and 1 to control some stuff using arduino

the data I'm sending is a string with a name "motor1" "motor2" etc follow by 0 or 1
see picture for demonstration

how can I take that data inside arduino and control the gpio pins with that? (switching them on and off)

Thanks

See Serial input basics - updated

1 Like

No experience with maxMSP; I did find http://www.noisemantra.com/Physical%20Computing/arduino-MaxMSP%20communications%2011.pdf which might get you on track.

Be aware that certain Arduinos might reset when you open a serial connection to them (Uno, Nano, Mega); something to be aware of. Using "normal" software you can prevent this. I do not know about maxMSP but found MaxMSP - serial communication problem that might show you how to prevent it from happening if the need arises.

Which Arduino are you using?

Thanks I will look into that,
and yes - I'm aware the serial windows can't be open while transmitting data between max to arduino.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.