Pi UART Debugger

From Waveshare Wiki
Jump to: navigation, search
Pi UART Debugger
Pi UART Debugger.jpg

UART, USB
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Overview

Pi UART Debugger, a serial module based on CH343 for Raspberry Pi 5, is suitable for Raspberry Pi 5 communication debugging, supports multiple wiring methods, and is compatible with various systems, With features of anti-surge, ESD protection, and immersion gold design, it also supports Mac, Linux, Android, and Windows 7/8/8.1/10/11.

Specification

Items Parameters
Model USB to TTL
Power Supply 5V
Baud Rate 50bps ~ 6Mbps
UART TTL Level 5V/3.3V/2.5V/1.8V
OS Mac OS, Linux, Windows 11 / 10 / 8.1 / 8 / 7, Android

①: Onboard 5V/3.3V via jumper caps, or you can remove the jumper cap, and input the external voltage (2.5V/1.8V, except USB TO TTL (B))

Onboard Interface

Pi-UART-Debugger-4.jpg
Pi-UART-Debugger-t-3.jpg

PIN PIN Function
VCC Provide 5V/3V (configurable via the switch) for 5V/3.3V
5V Provide 5V for external devices
3V3 Provide 3.3V for external devices
GND Ground
TXD Connect to MCU.RXD
RXD Connect to MCU.TXD
RTS# Connect to MCU.CTS
CTS# Connect to MCU.RTS
RI# MODEM contact input signal, ring indication, active low
DCD# MODEM contact input signal, carrier detection, active low
DTR# MODEM contact output signal, data terminal ready, active low
DSR# MODEM contact input signal, data device ready, active low

Function Description

CH343 is a USB bus conversion chip that enables USB to high-speed asynchronous serial port conversion, supporting communication speeds of 115,200bps and below.
It features automatic detection and dynamic adaptation of baud rates. Additionally, it provides common MODEM contact signals, allowing for the expansion of asynchronous serial ports for computers or direct upgrading of ordinary serial devices or MCUs to USB bus connectivity.

Usage

Raspberry

Open UART Configuration

Method 1: Add "enable_uart=1" at the end of "/boot/config.txt".

Method 2: Execute "sudo raspi-config" to open the serial configuration function.
Pi-UART-Debugger-2-1.png
Pi-UART-Debugger-2-2.png
Pi-UART-Debugger-2-3.png
Pi-UART-Debugger-2-4.png

The default settings for debugging on a Raspberry Pi:

  • Baud rate: 115200
  • Data bits: 8
  • no parity, and 1 stop bit (referred to as 115200 8N1).

Hardware Connection

Pi-UART-Debugger-2-5.png

Windows

CDC Driver

The driver on the PC is the CDC driver by default, and you can view it through the device manager.
CH343G Window 2.jpg

VCP Driver

The VCP driver is the driver demo from the manufacturer, and you can install it yourself. After installation, it can be viewed on the device manager.
USB TO RS485 (B) 02.jpg

Linux/RPI

Take RPI as an example, use the default driver, and then connect the device. You can use it after querying the UART device name through the commands below:

ls /dev/tty*

USB TO RS485 (B) 03.jpg
For example: Use minicom to open UART0, and input:

minicom -D /dev/ttyACM0

MacOS

First, click on here to download the driver.
Driver installation tutorial: Click to view.
After installation, open the serial assistant, (download it online for MAC).

Android

Click to download Android software, install it after unzipping.
1. Open the APP, and click on scanning the device:   2. Click on the scanned device:        3. Configure the parameters to use:
USB TO 4CH TTL 0.png       Scanned1.png       CH343G Android 2.jpg

Resource

Document

Datasheet

Software & Driver

FAQ

 Answer:
  • The product can be selected by the jumper cap on-board 5V/3.3V, or you can unplug the jumper cap and input it through an external voltage input as well (2.5V/1.8V).



Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)