Serial Monitor is blank

Hi
I am having issues with our serial monitor - it comes up (finally) but does not display anything in window (just a blank white screen). How do I get this working?
We are running Windows 10 and an older version of Arduino
The program did load up and the lights on my Arduino board (Mega) did light up so I know that it works but no serial monitor to follow along with

The arduino is running on Com4

How do I get this working?

Here's the program

/* YourDuinoStarter_SerialMonitor_SEND_RCVE

  • WHAT IT DOES:
  • Receives characters from Serial Monitor
  • Displays received character as Decimal, Hexadecimal and Character
  • Controls pin 13 LED from Keyboard
  • SEE the comments after "//" on each line below
  • CONNECTIONS:
  • None: Pin 13 built-in LED
  • V1.01 11/29/2019 FIXED - THANKS! Peter Hellen
    Questions: terry@yourduino.com */

/-----( Import needed libraries )-----/
/-----( Declare Constants and Pin Numbers )-----/
#define led 13 // built-in LED
/-----( Declare objects )-----/
/-----( Declare Variables )-----/
int ByteReceived;

void setup() /****** SETUP: RUNS ONCE ******/
{
pinMode(led, OUTPUT);
Serial.begin(9600);
Serial.println("--- Start Serial Monitor SEND_RCVE ---");
Serial.println(" Type in Box above, . ");
Serial.println("(Decimal)(Hex)(Character)");
Serial.println();

}//--(end setup )---

void loop() /****** LOOP: RUNS CONSTANTLY ******/
{
if (Serial.available() > 0)
{
ByteReceived = Serial.read();
Serial.print(ByteReceived);
Serial.print(" ");
Serial.print(ByteReceived, HEX);
Serial.print(" ");
Serial.print(char(ByteReceived));

if (ByteReceived == '1') // Single Quote! This is a character.
{
digitalWrite(led, HIGH);
Serial.print(" LED ON ");
}

if (ByteReceived == '0')
{
digitalWrite(led, LOW);
Serial.print(" LED OFF");
}

Serial.println(); // End the line

}// END Serial Available

}//--(end main loop )---

/-----( Declare User-written Functions )-----/

//( THE END )**

@tinaoke

You first read the post you bypassed on the way in !

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

tinaoke:

  Serial.begin(9600);

This line configures your Mega to communicate over serial at 9600 baud. You need to configure Serial Monitor to communicate at the same baud rate, otherwise you'll get gibberish or nothing at all in Serial Monitor. There is a menu for this near the bottom right corner of Serial Monitor. Make sure you have "9600" selected from that menu.

1 Like