I have a question about the Arduino Mega2560. Sorry for the rudimentary content...
I want to check Serial1 and Serial2 data on the serial monitor, but I can only see Serial (unmarked) data. What should I do? The serial port options are shown in the picture.
Serial is the only port with a USB to serial converter so it is the only one that will show up in the ports.
You can pipe Serial1 data out via Serial. Serial.print(Serial.read());
or Serial.write(Serial.read());
Or get a USB to serial converter (FTDI), connect it to the Serial1 pins, open a new instance of the IDE, open serial monitor, set the serial port to the FTDI port and read from Serial1.
Thanks for the reply. I just tried that and the method of using a USB-to-serial converter (FTDI) worked! However, the former method did not work as shown in the picture.
Right. I was not thinking well. That would necessitate connecting Serial and Serial1. But then both the serial monitor and Serial1 would be connected to Serial. Since only one thing should connect to a port at a time I would not expect it to work. The USB to serial converter is the way to go.