Arduino sketch to sample analog and digital inputs and send over serial
Version: Beta 0.22 By Nicholas Ward, Michael Gurevich, Miguel Ortiz and Javier Jaimovich for the Sound Interactive Modules at the Sonic Arts Research Centre (SARC) circa 2009
Download or clone repository
Upload sketch (.ino) to your Arduino
Open SARCduino.maxpat in Max/MSP
Make sure you don't open the serial port in both applications at the same time.