You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Complete list of compatible boards, pin diagrams, and post-test instructions.
* Increase visibility of pin connections
* image alt text
* Added note about CH340
Copy file name to clipboardExpand all lines: content/Hardware/Generic/How-to-do-a-loopback-test.md
+39-13Lines changed: 39 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,17 @@
2
2
title: "How to do a loopback test"
3
3
---
4
4
5
+
A **loopback test** is a troubleshooting procedure to test the serial communication between the PC and Arduino board with a dedicated USB to Serial converter chip. It can be performed with the following boards:
5
6
6
-
For Arduino boards with a dedicated USB to serial adapter chip (Uno, Mega, or Nano), a *loopback test* can be performed to test the serial communication between the board and your PC.
7
+
* Arduino Uno (classic)
8
+
* Arduino Uno Rev3 <!-- [X] Tested 2022-03-24 -->
9
+
* Arduino Uno Rev3 SMD <!-- [X] Tested 2022-03-24 -->
A failed loopback test indicates a problem with one or more of the following:
11
-
12
-
* The host computer
13
-
* Hardware driver
14
-
* USB cable
15
-
* The board's USB to Serial converter
16
-
17
-
## Instructions
15
+
## Performing the test
18
16
19
17
1. Disconnect the board from your computer or battery.
20
18
@@ -24,6 +22,12 @@ A failed loopback test indicates a problem with one or more of the following:
24
22
25
23
4. Connect a jumper cable from **Digital 0 (RX)** to **Digital 1 (TX)**.
26
24
25
+

26
+
_Pin connections for Arduino UNO._
27
+
28
+

29
+
_Pin connections for Arduino Nano._
30
+
27
31
5. Connect the board to your computer and open the Arduino IDE or the [Arduino Cloud Web Editor](https://create.arduino.cc/editor).
28
32
29
33
6. Ensure that the correct port is selected.
@@ -34,8 +38,30 @@ A failed loopback test indicates a problem with one or more of the following:
34
38
***Arduino IDE:***Tools > Serial Monitor*
35
39
***Web Editor:** Select *Monitor* in the sidebar.
36
40
37
-
8. Enter a message and click Send (the baud rate does not matter). Your message should immediately be echoed by the board, and appear in the output field below.
41
+
8. Enter a message and click Send. Your message should immediately be echoed by the board, and appear in the output field below.
38
42
39
43

40
44
41
-
*Performing a loopback test in the Arduino IDE serial monitor.*
45
+
*Performing a loopback test in the Arduino IDE serial monitor.*
46
+
47
+
## If the loopback test failed
48
+
49
+
A failed loopback test failed indicates that the USB to TTL serial adapter is damaged and that the board should be replaced. [Contact us](https://www.arduino.cc/en/contact-us/) for questions about warranty, or visit [the Arduino Store](https://store.arduino.cc/).
50
+
51
+
> **Note:** This test will always fail for the CH340 USB to serial chip used on some derivate boards.
52
+
53
+
## If the loopback test passes
54
+
55
+
A successful loopback test means that the board is able to communicate with the computer but is unable to upload or run the sketch. This can be the result of a missing or corrupted bootloader. If you have a second board, you can use one of these guides:
56
+
57
+
*[How to burn the bootloader between two Arduino UNO](https://support.arduino.cc/hc/en-us/articles/360012048080-How-to-burn-the-bootloader-between-two-Arduino-UNO)
58
+
*[How to burn the bootloader between two Arduino Mega](https://support.arduino.cc/hc/en-us/articles/360012048060-How-to-burn-the-bootloader-between-two-Arduino-Mega)
59
+
*[How to burn the bootloader on an Arduino UNO using an Arduino Nano](https://support.arduino.cc/hc/en-us/articles/4411327104402-How-to-burn-the-bootloader-on-an-Arduino-UNO-using-an-Arduino-Nano)
60
+
*[How to burn the bootloader in an Arduino Nano using an Arduino UNO](https://support.arduino.cc/hc/en-us/articles/360012048100-How-to-burn-the-bootloader-in-an-Arduino-Nano-using-an-Arduino-UNO)
61
+
*[How to burn the bootloader on an Arduino Uno using an Arduino Nano](https://support.arduino.cc/hc/en-us/articles/4412950859666-How-to-burn-the-bootloader-on-an-Arduino-Uno-using-an-Arduino-Nano)
62
+
*[How to burn the bootloader on an Arduino Mega using an Arduino UNO](https://support.arduino.cc/hc/en-us/articles/4408893470610-How-to-burn-the-bootloader-on-an-Arduino-Mega-using-an-Arduino-UNO)
63
+
*[How to burn bootloader to Arduino Uno using Arduino Mega](https://support.arduino.cc/hc/en-us/articles/4412950855442-How-to-burn-bootloader-to-Arduino-Uno-using-Arduino-Mega)
64
+
65
+
Additional resources:
66
+
67
+
*[How do I burn the bootloader to my AVR board?](https://per1234.github.io/ino-troubleshooting/burn-bootloader.html#burn-bootloader)
0 commit comments