i dont understand what is serial1, serial2, serial3
Google "Arduino serial2"?
Some Arduino boards have extra serial ports. They are "HardwareSerial" ports. The Serial
variable is a HardwareSerial
variable type. Some boards (e.g., a Mega) have the extra variables for Serial1
for the extra hardware serial pins. They should be used instead of software serial ports like AltSoftSerial or SoftwareSerial.
this is the result: <image>
Instead of pasting an image that most people won't download from a google drive, just copy the text from the Serial Monitor window: Click at a starting point, then shift-click at the end. The text should appear "selected" (all blue or inverted). You can also use your mouse to select the text: press the left mouse button at the starting point (don't release), then drag the mouse to the end and release.
Then type ctrl-C ("copy"). That copies all the selected text to the "clipboard". Then click in the Post editor here, and type ctrl-V ("paste"). Be sure to put code tags around the text, just like you did for your sketch.
If you really have something graphical to show us (not text
), read these instructions
I do not have one of these boards, so I cannot try the commands. I can only suggest how to connect the two serial ports and help with a sketch that shows the results of the commands. Reply #33 has lots of good information about the commands you need to send.