Multiple Serial objects, arduinos receiving other serial ports data
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")?
----------begin_max5_patcher---------- 441.3oc6V0sSCBCE9Z3onoWiKTPvg24ygwrTf5VWXsjRYNcYu6RKE2l5vpgg +DuglyO8zuy24bZYqqCLkugTAAWCtE33r00wQqRovwH6.Wg2jUfqztAY0qRI BnWqoFIJqfH01P6UxqkcZCLZKwxrET17YBRlr8Di78m36ABPgpknVgluf6L6 glqOSd5xKPgcmYarkOVRZiBjxjPO.LEylCeYqkXAdEQRDyHLbZg1Weis64LI qwpN32Hn3B3AVpnOosfBl3qzty0U8wyVBh7PCd6BnjrQmrv0fE7h7l7O3Svc nOj6Pw5k3nd4NzI4t8D1YkTRqkRNaXx7vDcxlbUWJ2Sh6exD2zs7UJvC3DfI WrZBX5ejAfAsKvz+GkzGyE+c29OjsLAAIV2xD8aokYH4GDZ+0C8SOg+OQ8Vh ypIpy1CJ5cCKnrW+WIZ.qzeLOUwqEYcmc2U9f8XNmTIoLrj175yANgNxoEz7 bB6vxYNsRUg0I76WwrFOHavS33gGa3m3eVvY7pVwVfloiG4XAZhFMzDdFqTs i83xx0DQkIjZfzbQ3RtPIF6oEorVQcDgBxZZm+W5ph1N2mAZuV+s -----------end_max5_patcher-----------
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… :)