I am a visual arts student, and I would need some help with using Max MSP in conjunction with Arduino. I am developing my final project, and this is my first time working with Arduino and Max MSP. I have no prior experience in computer programming. For my project, I creating an interactive piece with video wherein a ping distance sensor causes the switch from one video clip to the next in response to the distance values of the ping detector (for this, i would have to associate specific distance ranges of valuess with a corresponding video clip).
I would need help to create my patch for Max MSP so that it can read the data from Arduino (that would be data from a ping sensor that measures distance), and, according to the distance measured by the ping sensor, play a specific video clip.
When there is no data measured, a continuous video loop would play, such that only when an obstacle is detected at a specific distance does Max MSP play a particular video (I want to associate different distance ranges to different video clips).
Here is a picture of the Max patch that I have so far:
I have the Arduino2MAX patch already that I'm working with (on this page: Arduino Playground - HomePage).
I need help with 3 things:
How to make a specific range of distance data from the sensor cause a specific video to play in Max/Msp (that's the part I can't figure out given my very limited time before project due date)
I have this ping sensor http://www.digikey.ca/product-detail/en/28015/28015-ND/1774419
which sends a digital signal; but I need distance values, so I must find a way to convert digital input into distance values
- Every time I close MAX/Msp, my videos are no longer uploaded, so I need to re-upload the videos each time. I must find a way to save the videos onto max so that i don't need to re-upload each time.
I appreciate your help. Thanks.