General

Understanding the connections to the Arduino

userHead ChicagoBob123 2017-08-20 05:05:14 3446 Views2 Replies
Lookng for some help and conformation.
From what I surmise the Arduino is connected via COM1 to the CPU
Any I/O between and application and the Arduino occurs by
sending and receiving Serial information to and from COM1.
Is that correct?
What I need is several serial ports and the ability to talk them.
It looks like the Arduino can create several serial ports by using the Digital pins.
making a program to run on the Arduino you can do something like this
SoftwareSerial mySerial(0, 1); // RX, TX
SoftwareSerial mySerial(2, 3); // RX, TX
SoftwareSerial mySerial(4, 5); // RX, TX
which uses different Digital pins.
Is that correct? But since the data is sent via serial back to
the CPU you would have to write something to seperate
where the data came from.
Is that right? Or am I just all wrong.