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?
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.
* potentiometers attached to analog inputs 0, 1, and 2