Skip to content

UART

UART (Universal Asynchronous Receiver/Transmitter) is a microchip with programming capabilities used to control the interface between a computer and its connected serial devices.

Preparation

  • A Rhino Pi-A1
  • A CH340 test board
  • Several jumper wires
  • A Windows computer with a serial debugging tool installed

Connection

  • Connect the CH340 USB port to a USB port on the Windows computer.
  • Connect the CH340 TTL interface to the Rhino Pi-A1 interface as follows:
No.Board SilkscreenGPIO/System MappingDescription
3GNDGNDGround
7UART4_RXUART4_RXUART RX pin
8UART4_TXUART4_TXUART TX pin
Rhino Pi-A1<--->CH340
UART4_RX<--->TX
UART4_TX<--->RX
GND<--->GND

Testing

  • Open the serial debugging tool on the Windows computer, select the connected port, set the baud rate to 9600, and open the port.

  • Go to the App Center on the Rhino Pi-A1 Web desktop, download the UartCheck tool, open the tool, select /dev/ttyHS4 as the serial port, set the baud rate to 9600, and enable the serial port.

Note

To use the UartCheck tool, you need to log in to the Rhino Pi-A1 Web desktop, click the App Center button at the bottom, and search to download it. For the Web login method, please refer to Web Login.

  • Send messages to each other and verify that both sides can receive the other's messages.