Skip to content

Commit 35bad30

Browse files
authored
HC-950 How to do a loopback test (#22)
* Complete list of compatible boards, pin diagrams, and post-test instructions. * Increase visibility of pin connections * image alt text * Added note about CH340
1 parent 9a04b6a commit 35bad30

File tree

3 files changed

+39
-13
lines changed

3 files changed

+39
-13
lines changed

content/Hardware/Generic/How-to-do-a-loopback-test.md

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22
title: "How to do a loopback test"
33
---
44

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:
56

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 -->
10+
* Arduino Mega (classic)
11+
* Arduino Mega2560 Rev3
12+
* Arduino Mega ADK Rev3
13+
* Arduino Nano (classic) <!-- [X] Tested 2022-03-24 -->
714

8-
---
9-
10-
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
1816

1917
1. Disconnect the board from your computer or battery.
2018

@@ -24,6 +22,12 @@ A failed loopback test indicates a problem with one or more of the following:
2422

2523
4. Connect a jumper cable from **Digital 0 (RX)** to **Digital 1 (TX)**.
2624

25+
![Arduino UNO with jumper cables connecting TX-RX and RESET-GND.](img/loopback-circuit-uno.png)
26+
_Pin connections for Arduino UNO._
27+
28+
![Arduino Nano with jumper cables connecting TX-RX and RESET-GND.](img/loopback-circuit-nano.png)
29+
_Pin connections for Arduino Nano._
30+
2731
5. Connect the board to your computer and open the Arduino IDE or the [Arduino Cloud Web Editor](https://create.arduino.cc/editor).
2832

2933
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:
3438
* **Arduino IDE:** *Tools > Serial Monitor*
3539
* **Web Editor:** Select *Monitor* in the sidebar.
3640

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.
3842

3943
![Performing a loopback test in the Arduino IDE serial monitor.](img/serial_monitor_loopback_test.gif "Performing a loopback test in the Arduino IDE serial monitor")
4044

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)
60.3 KB
Loading
37.1 KB
Loading

0 commit comments

Comments
 (0)