The USB to Serial Converter featuring the FT232RL chip by AZDelivery is a versatile and essential tool for connecting serial devices to a USB interface. This component is widely used in the development and debugging of microcontroller-based projects, interfacing with GPS modules, programming Arduino boards without USB support, and bridging communication between a computer and various networking equipment.
Pin Number | Name | Type | Description |
---|---|---|---|
1 | VCC | Power | Supply voltage (5V from USB) |
2 | GND | Power | Ground connection |
3 | TXD | Output | Transmit Data (to serial device) |
4 | RXD | Input | Receive Data (from serial device) |
5 | RTS | Output | Request To Send (flow control) |
6 | CTS | Input | Clear To Send (flow control) |
7 | DTR | Output | Data Terminal Ready (modem control) |
8 | DSR | Input | Data Set Ready (modem control) |
9 | DCD | Input | Data Carrier Detect (modem control) |
10 | RI | Input | Ring Indicator (modem control) |
#include <SoftwareSerial.h>
// RX, TX pins for software serial
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications:
Serial.begin(9600);
// Set the data rate for the SoftwareSerial port
mySerial.begin(9600);
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
This example demonstrates how to set up a software serial port on an Arduino UNO to communicate with the USB to Serial Converter. The mySerial
object is used to send and receive data from the converter, which can then be relayed to the Serial Monitor or another serial device.