Which board are you using? Serial (version 2 or 3), USB or NG?
USB
When it stop working, what happens if you press reset, instead of re-upload the sketch?
Just pressing reset doesn't fix it. It will not change it's behavior until I re-upload the sketch. And of course things like restarting Max/MSP and restarting the computer have been attempted.
When running the same sketch, but not connected to computer, it stops working too?
All it does is send data to the computer via USB so I don't know (plus that's how it's powered).
How many Arduino Pins are you using?
- 4 digital pins output to control the multiplexers (MC14067) (connected in parallel to control all 3 multiplexers at the same time)
- 2 analog pins input for 2 of the multiplexers
- 1 digital pin input for the 3rd multiplexer
- 7 additional digital pins input connected directly to switches (i.e. not multiplexed)
So - all digital pins except pins 0 & 1 plus 2 analog pins. I'm reading a total of 26 potentiometers and 26 switches.
What kind of power source are you using?
USB (either directly to the computer or through a powered hub - both ways have experienced problems).
This problem happened before, or it's the first time it happens?
The 3 examples I mentioned in my original post happened on three different occasions spanning a matter of months. I haven't been using it a lot lately so I don't have a huge sample set. Strangely, I don't think I've ever experienced problems at home, only when I'm on the road (of course it's natural that it will only go down at a gig...). Most of the time it works just fine, but when it goes weird only re-uploading the sketch seems to fix it.
Thanks for your help.