I have been experimenting with interfacing Max with Arduino using a potentiometer. I have tried using Arduino2Max and also Sensor Box and have successfully got both of them communicating with Max, and even more exciting using the potentiometer is giving me data as I turn it.
I am getting integer values from around 90 to 900 which is great, as this is what I want because I am going to create a patch that when the input numbers fall within a given range it triggers or turns on something like a video.
The problem I have encountered is that when I turn the potentiometer it provides gradual sliding data which is what I want. However, when the potentiometer is not being used ie: turned, the number data from the analogue input (which is currently 0) is fluctuating all over the place, and I am getting really fast numbers randomly falling between the range I get when I turn the potentiometer. Is there any way I can turn the incoming stream of data off when the potentiometer is not being turned, so that I only get the instream of data when the pot is being turned? Otherwise it is creating unwanted triggers that are not controllable. At the moment I am just experimenting with one input, but the plan is that each analogue input will have a potentiometer or other sensor attached to it, all of which will trigger something else in Max.
I have looked through the forum, and although there are many other Arduino interfacing topics I could not find any that answered my particular question.
Thank you very much in anticipation of some guidance on this.