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