Multiple Serial objects, arduinos receiving other serial ports data
Hi all,
I'm wondering if anyone has experienced this strange behavior: we have 3 arduino megas setup to communicate with max using the serial object component in max. Each mega is using 9 of its PWM pins to control 3 sets of RGB strip lights.
When we plug them in one at a time they work fine, the problem arises when we have all 3 plugged in at once: simply put, when we change the color of a single strip light, for example the first one on the first arduino, the other 2 arduinos are receiving this information as well and changing their color as well!
I have each of the arduinos setup in max using its respective port (a, b and c) and from what I understand about serial communication this means that each of them should not be aware of any of the other arduinos data.
Hardware wise each arduino and its lights are isolated from the other arduinos, so its not current leaking from one circuit over to the other...
At a loss and the professor I'm working on this for is leaving supposed to be taking it to Germany in a day or two if anyone has any ideas would love to hear them!
I guess your problem is the "v holding" object in the 3 subpatchers. If you send a list to one of them, all with the same name store the same list. Did you try to rename the second and third one with other names (f.e. "v holding2", "v holding3")?
Thanks, that fixed it! I'm actually not the MAXMSP person on the project (arduino/other stuff here) so not familiar with what the person was doing. Thanks for straightening that out!
http://www.youtube.com/watch?v=-KjYy1ofMeE link to a video of the problem we're no longer having... :)