I have a MEGA 2560, when i run the Software Serial Example,
I see only this in the Serial Monitor:
⸮⸮⸮⸮⸮⸮ ⸮
-- but not regular question marks, mirror image, backward question marks.
I don't see anything else.
It should print out 'goodnight moon'
Serial.println("Goodnight moon!");
And i gather it should exchange some data between Serial and 'mySerial'
void loop() { // run over and over
if (mySerial.available()) {
Serial.println(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
I have tried tinkering and ensure that both my Serial Monitor Window
and the baud rates specified in the code are the same: 4800.
When i do this, i at least get to see the 'Goodnight Moon' message.
If anyone has any insights into this problem, i would be very grateful
if you could whisper a hint or two.
Baud rate of Serial must match the baud rate you're using on the serial monitor.
You can use a different baud rate for the other serial ports.
Why are you using software serial on a Mega2560? You have three more hardware serial ports that avoid all the problems associated with software serial!
I can't assess why yours may not work as you have not posted all the code.
Also, read the "how to use this forum" thread which explains how to use code tags, please use them.