Go Down

Topic: how to use many arduinos (at the same time) with just a single computer? (Read 7914 times) previous topic - next topic

bugbarbeq

first of all, let me cheer all of you since this is my first post on this forum.

i've found many interesting and useful information on other topics in the past, but couldn't find any previous thread about this topic even if i searched quite a bit.

i'm working on a rather large project for which splitting i/o's and routines into more than a single arduino will ease development and maintenance. i have a limited amount of data to be exchanged between arduinos, for which i planned to use i2c. i have no need for large bandwidth, high speed or real time, then no more sophisticated bus is needed (such as can bus).

now my question: is there a way i can use a single computer to upload my program on different arduinos and debug what's happening on all of them at the same time (i.e. without having to change com port on ide to connect with just one at a time)? my project will use 2x nano (w. mega328) and 2x leonardo.

at present i can work on a computer with 3x 24" monitors.

i seem to understand i cannot run more than a single instance of arduino ide (double-clicking the icon sends me to the first instance) and, consequently, a single serial monitor.
it would be necessary for me to "link" the different sketches to different serial ports (inside the same instance of the ide) or to be able to run multiple instances of the ide, each of them dealing with a different serial port.
can this be done? is there any way to do this?

i was thinking i could install a couple of virtual machines inside sun's virtual box and have some win xp's run copies of arduino ide, but it's quite some work to do and i'd appreciate if there existed an easier way to do that. it's quite difficult to give access to serial ports to virtual machines in an effective way (it seems a trivial task, but it often doesn't work well).

thanks in advance for your time and attention.

knut_ny

connecting several arduinos is no problem as they will get differnt com-ports.
Only challange you will have is to keep close eye to which is which.
For each program upload you'll have to select correct board type and com-port
Ny

Caltoa

It is possible to start new instances of the Arduino program. Each can connect to with its own Arduino board via its own COM-port.
I was told this and tried it and it worked.
Do you use the newest Arduino IDE version ? Can you try that again ? Which OS are you using (Windows/Linux/Mac) ?

bugbarbeq


It is possible to start new instances of the Arduino program. Each can connect to with its own Arduino board via its own COM-port.
I was told this and tried it and it worked.
Do you use the newest Arduino IDE version ? Can you try that again ? Which OS are you using (Windows/Linux/Mac) ?


at present i'm working with osx. it seemed to me that trying to open multiple instances of the arduino ide (latest version, i guess, but i'll check this, too) didn't work, but i'll give it another try this evening.
this would be wonderful, as i could keep a copy of the ide in my mbp monitor and another one in each of the external monitors i've connected to the notebook.

i'll tell you more this evening, as soon as i get back home.

bugbarbeq



It is possible to start new instances of the Arduino program. Each can connect to with its own Arduino board via its own COM-port.
I was told this and tried it and it worked.


at present i'm working with osx. it seemed to me that trying to open multiple instances of the arduino ide (latest version, i guess, but i'll check this, too) didn't work, but i'll give it another try this evening.


i've done a simple try: just double-click on the arduino icon in finder, but it doesn't open many copies of the ide. i still haven't had the time to try to do multiple installations in different locations: perhaps having the executable (let me call it that way, even if in osx it wouldn't be exactly like that) in different folders will make me run multiple instances.

Caltoa

Windows 8, no Java, Arduino 1.0.5, single installation, using desktop icon to start Arduino.
I can start multiple instances, and each with its own board and COM port.
When I close one, only that one closes.

bugbarbeq


Windows 8, no Java, Arduino 1.0.5, single installation, using desktop icon to start Arduino.
I can start multiple instances, and each with its own board and COM port.
When I close one, only that one closes.


thanks, i appreciate your feedback.

Robin2


Windows 8, no Java, Arduino 1.0.5, single installation, using desktop icon to start Arduino.
I can start multiple instances, and each with its own board and COM port.
When I close one, only that one closes.


I didn't know you could have the Arduino IDE without the java virtual machine (JVM)?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Caltoa

Robin2, the Windows version of Arduino has its own Java subset. But the linux Arduino has only the 'bare' Arduino files.
For Windows without installing Java, the security risk is very low, since the subset of Java inside the Arduino is not system-wide and is not connected with the browser.

Robin2

I'm very fond of the JVM concept (but not the Java language) as it allows programs to run unchanged on Linux, Mac and Windows. I like to program with JRuby.

The system you describe seems to defeat that - not suggesting it's your fault :)

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

lateAnswers

Found this through a google search and eventually figured out a solution. For anyone still looking for a solution to this for mac Apple OSx OS x hope to help some others.

-Open 'Applications' folder.
-Right-click 'Arduino', select "Show Package Contents".
-Open 'Contents' folder.
-Open 'MacOS' folder.
-Double-click 'JavaApplicationStub' to run it.

A Terminal window will open and a new instance of the Arduino IDE will pop up shortly after. Closing the Terminal window will close that instance of Arduino IDE. So minimize it or something. I can run 3 instances of Arduino IDE with no problems, possibly more, I haven't tried.


Go Up