Lose connection with more (7) arduino's at the same time

Mar 17, 2013 at 7:59pm

Lose connection with more (7) arduino's at the same time

Dear fellow Max MSP-ers,

We are working on a project where we use arduino’s to measure the distance that is travelled by items that hang on pulleys. We have six pulleys. Each pulley has an arduino attached to it.

We also have one arduino that controls leds based on the input it receives from the other six arduino’s.

Every arduino is connected to a hub that has its own power supply and there is only one cable to the Mac Mini that is running the software. (Connecting each arduino separately to the computer did not solve the problem)

We use Max MSP 6 on Mac OS X 10.8 for communication between the arduino’s.

Our problem: When we connect all seven arduino’s at once we keep losing connections. Everything works fine if we only connect two pulleys and the light arduino, but when we connect more pulleys it keeps losing one or more arduino’s.
If we force the Max MSP to always find the serial port again when it looses a connection, then the program crashes or the computer restarts, which is quite unfortunate because we have t climb a 3m ladder to turn it back on.

We have searched this forum for an answer and have found people with a similar problem, but no solutions. We came upon these topics: 1, 2, 3 and 4 .

Somewhere in there we also use Live because we play sounds with Ableton that are also dependant on the movement of the pulleys. So we have three components in our installation: pulleys (= movement), light and sound. Basically nothing works if we do not have a constant stream of data about the movement of the pulleys from the six arduino’s. The whole project is quite big so posting all the code would be too much.

A solution would be to connect the sensors in all the pulleys to a single arduino. However, we prefer this setup because it is neater with less wires.

So .. our question(s) is(are): Has anyone experienced losing serial port connection while trying to communicate with multiple arduino’s? Is there anyone that knows another solution? Should it not be possible to communicate with seven arduino’s without problems or is this asking to much?

Thanks!

#67114
Mar 17, 2013 at 10:25pm

Hey Bojana, are you guys picking up the Populley project again? Great! Hope this Max serial vs Arduino business gets sorted…

Greets Dieter

#241490
Mar 20, 2013 at 9:44pm

Yes we are! Need to get it working some day. So hoping someone here has the answer or at least a clue ..

#241491
Mar 20, 2013 at 11:14pm

hey, did you try out this?

>>>
The best way to make sure you don’t overflow either buffer is to make sure both the Arduino and Max are ready for new serial information. In the Arduino IDE, look at File>Examples>Communication>SerialCallAndResponse. There’s a max patch at the bottom which illustrates this “Handshake” method of communication.

#241492
Mar 21, 2013 at 8:20am

We haven’t. Thanks will give that a try! ;)

#241493

You must be logged in to reply to this topic.