Forums > MaxMSP

maxmsp disconnect from arduino

February 27, 2010 | 8:17 pm

I have a stationary bike connected to a an imac with maxmsp on it. When I begin biking the movie goes from black to playing a random movie located in a folder on my desktop. When I stop the movie stops and screen goes black. When I begin biking again the another movie will play randomly from the folder. This is how it is supposed to work. This will work for sometime but after a few days a video will begin playing randomly and slowly without anyone riding the bike. When looking at the MaxMsp interface the voltage reader is frozen at a certain number. I have tried the reset button on the arduino but it does not reregister the numbers. If logout and reset I am good for a little longer does anyone know why the connection between maxmsp and arduino is failing?

Please help totally desperate.

This is the tutorial I used to develop the project

This is the board I am using


This example reads three analog sensors (potentiometers are easiest)
and sends their values serially. The Processing and Max/MSP programs at the bottom
take those three values and use them to change the background color of the screen.

The circuit:
* potentiometers attached to analog inputs 0, 1, and 2

created 2 Dec 2006
by David A. Mellis
modified 14 Apr 2009
by Tom Igoe and Scott Fitzgerald

This example code is in the public domain.

const int redPin = 0; // sensor to control red color
const int greenPin = 1; // sensor to control green color
const int bluePin = 2; // sensor to control blue color

void setup()

void loop()


Viewing 1 post (of 1 total)

Forums > MaxMSP