(MEGA) Garbage on Serial3 when connected to second PC

Hi All,

I'm trying to help my son with his Arduino project and this simple issue has me completely stumped.

We have a Mega connected to two PCs. One is connected using the built-in USB port and the second PC is connected to Serial3 pins using a USB FTDI cable. The connection diagram is attached.

Here is the simple test sketch:

void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
  Serial3.begin(9600);
  Serial3.println("Setup done.");
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
  Serial3.println("loop...");
}

What is happening is PC2 receives a lot of garbage during serial comms. If the the FTDI cable is connected to another USB port on PC1, everything works fine however.

Perhaps somebody can shed some light what might be causing this and how to fix it.

Thanks

ArduinoMegaSerialIssue1.png

Check the baud rates.

Baud rates are correct. Some of the text actually comes through like this:

%^loo#......Set...up...

Another test I did was to connect FTDI cable to PC1, Main USB to PC1, verified that everything is working and then connected Main USB to PC2 and same issue occurred. Could this be a power supply/grounding issue?

After I wrote the reply, I hooked hup the ground pin of the FTDI cable to Arduino ground and everything started working. I guess it was a ground issues...

Pic from Original Post
2abd00ea1a841927fbacb0b91e993d1c2343be6f.png

Your diagram does not show what Arduino pins are connected to the FTDI cable.

...R