Hello everyone,
I am working on transferring my project from Arduino board to a PCB board. I want to be able to upload sketches via USB.
I am using the FT232RL as a USB interface and Atmega 328 ( very similar to Duemilanove).
The schematic :
I am having an issue with the RS232 communication. It looks like I have a cross talk issue and I am not able to identify the source.
Here is a basic test sketch I uploaded to the uC before physically transferring the chip to the board.
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available()>0)
{
String cmd;
cmd=Serial.readString();
Serial.print(millis());
Serial.println(" : " + cmd);
}
delay(1);
}
When I send ant character, I receive this infinite loop :
67067 : 1
68079 : 67067 : 1
69101 : 68079 : 67067 : 1
70133 : 69101 : 68079 : 67067 : 1
71175 : 70133 : 69101 : 68079 : 67067 : 1
It looks like the Transmitted bytes from the uC are somehow read on the Rx pins. I checked my connections for shorts but didn’t find any.
Can someone take a look and help me find the issue.