UART
UART Introduction
UART (Universal Asynchronous Receiver/Transmitter) is a programmable chip used to control the serial interface between a computer and connected serial devices.
Preparation
- A Rhino Pi A1
- A CH340 test board
- Dupont wires
- A Windows PC with a serial terminal tool installed
Connection
- Connect the CH340 USB port to the Windows PC USB port.
- Connect the CH340 TTL interface to the Rhino Pi A1 as follows:
| No. | Board Silk Screen | GPIO/System Mapping | Description |
|---|---|---|---|
| 3 | GND | GND | Ground |
| 7 | UART4_RX | UART4_RX | UART RX pin |
| 8 | UART4_TX | UART4_TX | UART TX pin |
| Rhino Pi A1 | <---> | CH340 |
|---|---|---|
| UART4_RX | <---> | TX |
| UART4_TX | <---> | RX |
| GND | <---> | GND |
Test
Open the serial terminal tool on the Windows PC, select the connected port, set the baud rate to 9600, and open the port.
On the Rhino Pi A1 web desktop, open the app center, download the UartCheck tool, and start it. Select
/dev/ttyHS4as the serial port and set the baud rate to 9600.
Note
UartCheck requires logging into the Rhino Pi A1 web desktop and downloading the tool from the app center. Refer to the Web Login guide for web login instructions.
- Send messages both ways and confirm that messages are received on both sides.