Go Down

Topic: The most reliable way to communicate with the a x86 workstation (Read 817 times) previous topic - next topic


I have a x86 based workstation which has linux on it (ubuntu for example). I would like to have an arduino mega 2560 connect to this workstation and receive instructions from this workstation. The connection between this arduino device and the workstation can be perminent.

What's the most reliable way of doing this?  Just use usb of the arduino? If that is the case, will the comunication program on the linux easy to write? Will that be very reliable?

Another one is just use the serial port from the workstation and connect that to several pins of the arduino and use the soft or hard serial port of the arduino? 

Use a eithernet sheid and connect them with an eithernet cable?

In general, the simplest system is the most reliable one, so the reliability is serial> usb > eithernet> wireless ....


One factor to consider is the distance. You basically can't use USB over long distances.

Robin has written several tutorials on communication with a PC. For the PC side see https://forum.arduino.cc/index.php?topic=225329.0 at the top if this forum section.

The matching Arduino side is in the aerial input basics thread.

Note that the demobstrated principles amcan be used regardless of the medium of transmission.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.


This link has a more recent version of the Simple Python - Arduino demo

And the other link is Serial Input Basics  (not aerial :) )

This laptop I am typing on is running Linux Mint and it is what I use for all my Arduiino programming. I have never had a communication problem using USB. I often use a 2 metre USB extension cable (for about 3.5 metres total), also without problems. For many of my Arduino projects I use 500,000 baud successfully.

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

Go Up