Second Serial Port

Is is possible to add a second serial port to the Arduino Uno?

(deleted)

i suggest using altsoftserial library it is better than software serial

By default, Serial Port (or UART Port) refers to the hardware (electronics) based serial port that is present within the ATmega328P MCU of the Arduino UNO Learning Kit, and there is only one port of this kind in the UNO.

If we need one (or more) of 'Serial Communication Port of UART-type within the UNO, we need to create/simulate it using 'Software Instructions'; hence, the name would stand as 'Software UART Port' or simply SUART. The SUART Port is created by including the following codes under the appropriate space in the sketch;

#include<SoftwareSerial.h>
SoftwareSerial SUART (2, 3); //DPin-2 works as SRX-pin for UNO; DPin-3 = STX (any valid DPin)
SUART.begin(9600);  //transmission speed = Baud Rate (Bd)

The following figure depicts the scenario of communication between UNO and NANO over the SUART Port. Here, 5 is being sent from the InputBox of the Serial Monitor of UNO; the character appears in the OutputBox of the Serial Monitor of NANO. Similarly, 7 is being sent from the InputBox of the Serial Monitor of NANO; the character appears in the OutputBox of the Serial Monitor of UNO.
uart-9y.png

uart-9y.png