Electronic – arduino – Garbled serial on custom Arduino Uno

arduinoserial

I built my own Arduino Uno. I designed the schematic and laid out the PCB for a school project. I am having problems getting the serial communication to work so that I can program sketches. Here are pictures from Pin0 and Pin1 of the headers (Rx and Tx) when I send information using an Echo sketch. I programmed the sketch using the ICSP.

Pin0

Pin1

What can I do to fix my issue?

Below are screenshots of the code and the serial monitor before and after I send a message.

Before

After

When I took the pictures I sent a long random message so that I had time to freeze the scope.

Here is the schematic I made:

Schematic

Best Answer

Through the chat we found out the problem. The Atmega16U2 did not have the fuses set to use the external clock. This was causing the 16U2 to divide the input baud rate by 8.

Thank you Connor for helping solve this problem.