Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use USB to UART adapter: Examples, Pinouts, and Specs

Image of USB to UART adapter
Cirkit Designer LogoDesign with USB to UART adapter in Cirkit Designer

Introduction

The USB to UART adapter is a versatile electronic component that bridges the gap between USB interfaces and UART (Universal Asynchronous Receiver-Transmitter) communication. It enables seamless communication between a computer's USB port and serial devices, such as microcontrollers, sensors, and embedded systems. This adapter is widely used in prototyping, debugging, and programming applications.

Explore Projects Built with USB to UART adapter

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
FTDI to UART Adapter with J26 Connector
Image of J26 CLOSEUP: A project utilizing USB to UART adapter in a practical application
This circuit connects an FTDI USB-to-serial converter to a standard serial interface via a J26 connector. It facilitates serial communication by linking the ground, transmit, receive, data terminal ready, and request to send signals between the FTDI chip and the J26 connector.
Cirkit Designer LogoOpen Project in Cirkit Designer
Laptop-Connected Adalm Pluto SDR with Dual Antennas
Image of Zidan Project: A project utilizing USB to UART adapter in a practical application
This circuit connects an Adalm Pluto Software Defined Radio (SDR) to a laptop via a Type-B to USB cable, allowing the laptop to control the SDR and process signals. Additionally, two antennas are connected to the Adalm Pluto SDR, which are likely used for transmitting and receiving radio signals as part of the SDR's functionality.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and MAX 3232 Module Controlled NE-1000 Pump System
Image of NE-1000 RS232: A project utilizing USB to UART adapter in a practical application
This circuit features an Arduino UNO microcontroller interfaced with a MAX 3232 module for serial communication. The Arduino provides power and ground to the MAX 3232, and the two devices communicate via the TxD and RxD pins. The setup is likely intended for serial data transmission between the Arduino and another device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Dual Hub Motor Control System with USB to TTL Interface and Relay Switching
Image of Hub Motor & servo motor Connection: A project utilizing USB to UART adapter in a practical application
This circuit is designed to control two hub motors using a HUB driver, powered by a DC-DC converter and a power module. The USB to TTL converter allows for communication with the HUB driver, and a 5V relay module is used to switch the motors on and off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with USB to UART adapter

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of J26 CLOSEUP: A project utilizing USB to UART adapter in a practical application
FTDI to UART Adapter with J26 Connector
This circuit connects an FTDI USB-to-serial converter to a standard serial interface via a J26 connector. It facilitates serial communication by linking the ground, transmit, receive, data terminal ready, and request to send signals between the FTDI chip and the J26 connector.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Zidan Project: A project utilizing USB to UART adapter in a practical application
Laptop-Connected Adalm Pluto SDR with Dual Antennas
This circuit connects an Adalm Pluto Software Defined Radio (SDR) to a laptop via a Type-B to USB cable, allowing the laptop to control the SDR and process signals. Additionally, two antennas are connected to the Adalm Pluto SDR, which are likely used for transmitting and receiving radio signals as part of the SDR's functionality.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of NE-1000 RS232: A project utilizing USB to UART adapter in a practical application
Arduino UNO and MAX 3232 Module Controlled NE-1000 Pump System
This circuit features an Arduino UNO microcontroller interfaced with a MAX 3232 module for serial communication. The Arduino provides power and ground to the MAX 3232, and the two devices communicate via the TxD and RxD pins. The setup is likely intended for serial data transmission between the Arduino and another device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hub Motor & servo motor Connection: A project utilizing USB to UART adapter in a practical application
Dual Hub Motor Control System with USB to TTL Interface and Relay Switching
This circuit is designed to control two hub motors using a HUB driver, powered by a DC-DC converter and a power module. The USB to TTL converter allows for communication with the HUB driver, and a 5V relay module is used to switch the motors on and off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Programming and debugging microcontrollers (e.g., Arduino, ESP32, STM32)
  • Interfacing with serial devices like GPS modules, GSM modules, and sensors
  • Data logging and communication with embedded systems
  • Serial communication testing and monitoring
  • Connecting legacy serial devices to modern computers

Technical Specifications

Key Technical Details

  • Input Interface: USB 2.0/3.0 (Type-A or Type-C, depending on the model)
  • Output Interface: UART (TX, RX, GND, and optionally CTS/RTS)
  • Supported Baud Rates: 300 bps to 3 Mbps (varies by chipset)
  • Chipset: Commonly FTDI FT232, CP2102, CH340, or PL2303
  • Voltage Levels: 3.3V or 5V (selectable on some models)
  • Operating Temperature: -40°C to 85°C
  • Power Supply: Powered via USB (5V)

Pin Configuration and Descriptions

The USB to UART adapter typically has the following pin configuration:

Pin Name Description
TXD Transmit Data - Sends serial data to the connected device.
RXD Receive Data - Receives serial data from the connected device.
GND Ground - Common ground for the USB and UART sides.
VCC Power output - Provides 3.3V or 5V (depending on the adapter's configuration).
RTS (Optional) Request to Send - Used for hardware flow control.
CTS (Optional) Clear to Send - Used for hardware flow control.

Usage Instructions

How to Use the USB to UART Adapter in a Circuit

  1. Connect the Adapter to Your Computer:

    • Plug the USB connector of the adapter into an available USB port on your computer.
    • Install the necessary drivers for the adapter's chipset (e.g., FTDI, CP2102, CH340, or PL2303). Drivers are typically available on the manufacturer's website.
  2. Connect the Adapter to the Target Device:

    • Connect the TXD pin of the adapter to the RXD pin of the target device.
    • Connect the RXD pin of the adapter to the TXD pin of the target device.
    • Connect the GND pin of the adapter to the GND pin of the target device.
    • If required, connect the VCC pin to power the target device (ensure voltage compatibility).
  3. Configure the Serial Communication:

    • Open a serial terminal program (e.g., PuTTY, Tera Term, or Arduino IDE Serial Monitor).
    • Select the correct COM port assigned to the adapter.
    • Set the baud rate and other serial parameters (e.g., data bits, stop bits, parity) to match the target device.
  4. Test the Connection:

    • Send and receive data to verify communication between the computer and the target device.

Important Considerations and Best Practices

  • Voltage Compatibility: Ensure the adapter's voltage level (3.3V or 5V) matches the target device to avoid damage.
  • Driver Installation: Install the correct driver for the adapter's chipset to ensure proper functionality.
  • Cross TX and RX: Always connect the adapter's TXD to the target device's RXD and vice versa.
  • Avoid Overloading: Do not draw excessive current from the adapter's VCC pin; it is typically limited to a few hundred milliamps.
  • Use Hardware Flow Control (if needed): For devices requiring hardware flow control, connect the RTS and CTS pins appropriately.

Example: Connecting to an Arduino UNO

The USB to UART adapter can be used to program or communicate with an Arduino UNO. Below is an example of Arduino code to test serial communication:

// Example: Echo received data back to the sender
// This code reads data from the serial port and sends it back.

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  while (!Serial) {
    // Wait for the serial port to connect (for boards like Arduino Leonardo)
  }
  Serial.println("USB to UART Adapter Test");
}

void loop() {
  if (Serial.available() > 0) {
    char receivedChar = Serial.read(); // Read a character from the serial port
    Serial.print("Received: ");        // Print the received character
    Serial.println(receivedChar);
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

Issue Solution
Adapter not recognized by the computer Ensure the correct driver is installed for the adapter's chipset.
No data transmission or reception Verify TXD and RXD connections are crossed correctly.
Incorrect or garbled data Check that the baud rate and serial parameters match between devices.
Target device not powered Ensure the VCC pin is connected if the adapter is powering the target device.
Adapter overheating Avoid drawing excessive current from the VCC pin.

FAQs

  1. Can I use the adapter with a 1.8V device?

    • Most adapters support 3.3V or 5V logic levels. For 1.8V devices, use a level shifter.
  2. How do I find the COM port assigned to the adapter?

    • On Windows, check the Device Manager under "Ports (COM & LPT)." On macOS/Linux, use the ls /dev/tty* command to locate the device.
  3. What is the maximum cable length for the adapter?

    • USB cables are typically limited to 5 meters. For longer distances, use a USB repeater or active extension cable.
  4. Can I use the adapter for SPI or I2C communication?

    • No, the adapter is designed for UART communication only. Use a dedicated USB-to-SPI or USB-to-I2C adapter for those protocols.

By following this documentation, you can effectively use a USB to UART adapter for a wide range of serial communication tasks.