Go Down

Topic: Could I write a program for control 8 arduino devices at the same time? (Read 284 times) previous topic - next topic

frank197662

Could I write a program for control 8 arduino devices (MEGA 2560 R3 )  on pc via rs 232 , that mean is control 8 com port at the same time?

larryd

A Mega has 4 hardware serial ports.

The most number of Megas I have run (at the same time) on a PC is two, but then again I only have two Megas.

Each Arduino you plug into a USB port will have a different COM number.








No technical PMs.
The last thing you did is where you should start looking.

TomGeorge

Hi,
Welcome to the Forum.

What is the application that needs 8 Megas?

Thanks.. Tom.. :)
Everything runs on smoke, let the smoke out, it stops running....

Robin2

Could I write a program for control 8 arduino devices (MEGA 2560 R3 )  on pc via rs 232 , that mean is control 8 com port at the same time?
Have you considered connecting one Mega to your PC and connecting the other Megas to the first one rather than to the PC?

If you tell us all about the project you are trying to create it will be much easier to help.

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

PaulS

Could I write a program for control 8 arduino devices (MEGA 2560 R3 )  on pc via rs 232 , that mean is control 8 com port at the same time?
You have our permission to.

That you had to ask, though, makes me suspect that the answer is that no, you can't.
The art of getting good answers lies in asking good questions.

frank197662

A Mega has 4 hardware serial ports.

The most number of Megas I have run (at the same time) on a PC is two, but then again I only have two Megas.

Each Arduino you plug into a USB port will have a different COM number.




Thank you









frank197662

My project is that my clinet has 8 buttons, if I put 1 of the button then send message to server, Server receive the button message then send message to arduino by using RS232 and let the pin to low for control machine's status. Totat 48 clients.

Paul_KD7HB

Welcome to the Arduino forum, Frank.

A block diagram of your project will help clarify what you are doing.

Paul

Robin2

My project is that my clinet has 8 buttons, if I put 1 of the button then send message to server, Server receive the button message then send message to arduino by using RS232 and let the pin to low for control machine's status. Totat 48 clients.
What sort of machines are you talking about? That can affect the type of control system that is appropriate.

How far apart are the 48 machines? Why not just use a single Mega for the complete job?

Do the 48 Arduinos have to send data back to the server?


Also, note that an Arduino does NOT use RS232 voltage levels - they can damage an Arduino. If your PC produces RS232 voltage levels then you need a MAX232 chip to convert to the Arduino's TTL voltage levels.

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

lastchancename

Signalling like RS485 is not restricted to serial comms.
You could use it to carry the switch contacts to the input pins of the Arduino's.
Experienced responders have a nose for laziness, (they were beginners once)... expecting the poster to contribute to the learning experience.

Go Up