How to monitor second Serial created?

Recently I came across an example like this.

SoftwareSerial DebugSerial(8,9);

And in setup

Serial.begin(9600);
DebugSerial.begin(9600);

Now if I do DebugSerial.print("123") and connect to monitor the port I do not see anything. How thise sketch is supposed to work? If I do Serial.print() I do see the output. Inside the code example everywhere DebugSerial.printnl() is used. How I supposed to see the result?

Hello serhioromano1

Have you connected a terminal, however, to port pins 8,9?

1 Like

You connect two UNO using your DebugSerial(8, 9) Port. Upload sketches onto UNO-1 (Transmitter) and UNO-2 (Receiver). Open SM for UNO-2 and observe 123.

2 Likes

Of course you won't see anything because the PC monitor connects to your arduino Serial and not to softserial port:

In order to view messages in the softserial port you need to connect an external USB_to_UART converter to the pins 8 & 9

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.