Skip to content

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 ScreenGPIO/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

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/ttyHS4 as 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.