0 votes
9.7k views
in Arduino by
I'm using an Arduino Mega. When I use "Serial.write" etc with the Arduino's IDE serial monitor everything is working fine.

However when I try to read or send data via "Serial1", I get nothing.  Why is this?

2 Answers

0 votes
by
The only serial port connected to the USB that the serial monitor can read from is Serial.

Serial1, Serial2, and Serial3 are all logic level serial and will not show up on the Arduino serial monitor.

If you want to see the output from these on your computer,it will require extra hardware. Or you can write the code to print all the data coming from other serials to the primary Serial port.
0 votes
by (1.3k points)
Only Serial0 (aka Serial) data will be displayed in the serial monitor and you can see in the computer screen. You will need to write serial1 data on to serial to see whats happening that end.

Related questions

+1 vote
2 answers 7.6k views
+2 votes
1 answer 9.4k views
asked Mar 15, 2017 in Arduino by Manoj
0 votes
1 answer 637 views
asked Sep 19, 2021 in Arduino by Samurai
0 votes
1 answer 847 views
0 votes
1 answer 3.2k views
0 votes
1 answer 601 views
asked Sep 12, 2021 in Arduino by mithun (1.3k points)
...