Stufin
Home Quick Cart Profile

FTDI 232 Mini USB to TTL Converter

Buy Now

Operating Temperature

-40C to 85C

Storage Temperature

-40C to 150C

USB Cable Length

1.8 meters (6 feet)

Dimensions

17.5mm x 13.5mm x 3.5mm

Weight

2.5 grams

Certifications and Compliance

USB 2.0 compliant

RoHS compliant

CE and FCC certified

By providing a reliable and efficient way to interface with TTL-based devices, the FTDI 232 Mini USB to TTL Converter is an essential tool for developers, engineers, and hobbyists working on a wide range of projects.

Pin Configuration

  • FTDI 232 Mini USB to TTL Converter Pinout Guide
  • The FTDI 232 Mini USB to TTL Converter is a popular and compact module that allows for serial communication between a computer and a microcontroller or other serial devices. It features a USB connector on one end and a 6-pin TTL serial header on the other. Here is a detailed explanation of each pin and how to connect them:
  • USB Connector Pins:
  • VCC (5V): This pin is connected to the 5V power supply from the USB bus. It is not used for serial communication.
  • D- (Data-): This pin is the USB data negative line.
  • D+ (Data+): This pin is the USB data positive line.
  • GND (Ground): This pin is connected to the ground of the USB bus.
  • ID (Identification): This pin is used for identifying the device and is not used for serial communication.
  • Shield: This pin is connected to the shield of the USB connector and provides electromagnetic interference (EMI) shielding.
  • TTL Serial Header Pins:
  • VCC (5V): This pin is the power input for the serial device, typically 5V.
  • TXD (Transmit): This pin is the serial data transmit line from the computer to the serial device.
  • RXD (Receive): This pin is the serial data receive line from the serial device to the computer.
  • GND (Ground): This pin is the ground connection for the serial device.
  • CTS (Clear to Send): This pin is used for flow control and is active low. It indicates when the serial device is ready to receive data.
  • RTS (Request to Send): This pin is used for flow control and is active low. It indicates when the serial device is ready to send data.
  • Connection Structure:
  • To connect the FTDI 232 Mini USB to TTL Converter to a serial device, follow these steps:
  • 1. Power Connection:
  • Connect the VCC pin on the FTDI module to the power input (typically 5V) of the serial device.
  • Connect the GND pin on the FTDI module to the ground of the serial device.
  • 2. Serial Data Connection:
  • Connect the TXD pin on the FTDI module to the RXD pin on the serial device.
  • Connect the RXD pin on the FTDI module to the TXD pin on the serial device.
  • 3. Flow Control (Optional):
  • If flow control is required, connect the CTS pin on the FTDI module to the CTS pin on the serial device.
  • If flow control is required, connect the RTS pin on the FTDI module to the RTS pin on the serial device.
  • Note:
  • Make sure to check the datasheet of the specific serial device you are using to ensure correct pinouts and voltage levels.
  • The FTDI 232 Mini USB to TTL Converter typically operates at a baud rate of 9600, but can be configured to operate at other baud rates as needed.
  • The module may require additional configuration, such as setting the baud rate and flow control, using software such as the FTDI Configuration Tool.

Code Examples

FTDI 232 Mini USB to TTL Converter Documentation
Overview
The FTDI 232 Mini USB to TTL Converter is a compact, reliable, and widely used module for converting USB signals to TTL (Transistor-Transistor Logic) signals, enabling communication between a computer and microcontrollers, robots, or other devices that use TTL serial communication.
Features
USB 2.0 full-speed compatible
 5-pin and 6-pin header options
 3.3V and 5V operating voltage options
 Baud rates up to 3Mbps
 Supports various operating systems, including Windows, macOS, and Linux
Pinout
| Pin | Function |
| --- | --- |
| VCC | Power supply (3.3V or 5V) |
| GND | Ground |
| TXD | Transmit data |
| RXD | Receive data |
| RTS | Request to send (optional) |
| CTS | Clear to send (optional) |
Code Examples
### Example 1: Serial Communication with Arduino (Python)
In this example, we'll demonstrate how to use the FTDI 232 Mini USB to TTL Converter to communicate between an Arduino board and a Python script on a computer.
Hardware Requirements
Arduino board (e.g., Uno or Nano)
 FTDI 232 Mini USB to TTL Converter
 Breadboard and jumper wires
Software Requirements
Arduino IDE
 Python 3.x with pyserial library
Arduino Code
```c++
const int ledPin = 13;
void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600bps
  pinMode(ledPin, OUTPUT);
}
void loop() {
  if (Serial.available() > 0) {
    char incomingChar = Serial.read();
    if (incomingChar == 'H') {
      digitalWrite(ledPin, HIGH);
    } else if (incomingChar == 'L') {
      digitalWrite(ledPin, LOW);
    }
  }
  delay(50);
}
```
Python Code
```python
import serial
# Open the serial port (adjust the port number and baud rate as needed)
ser = serial.Serial('COM3', 9600, timeout=1)
while True:
    # Send a command to the Arduino to toggle the LED
    ser.write(b'H')
    print("LED turned on")
    time.sleep(1)
    ser.write(b'L')
    print("LED turned off")
    time.sleep(1)
```
### Example 2: Using the FTDI 232 with a Raspberry Pi (Python)
In this example, we'll demonstrate how to use the FTDI 232 Mini USB to TTL Converter to communicate between a Raspberry Pi and a microcontroller or other device.
Hardware Requirements
Raspberry Pi (any model)
 FTDI 232 Mini USB to TTL Converter
 Breadboard and jumper wires
 Microcontroller or device with TTL serial interface
Software Requirements
Raspbian OS (any version)
 Python 3.x with pyserial library
Python Code
```python
import serial
# Open the serial port (adjust the port number and baud rate as needed)
ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=1)
while True:
    # Read data from the microcontroller or device
    incomingData = ser.readline().decode('utf-8').strip()
    print("Received:", incomingData)
# Send data to the microcontroller or device
    ser.write(b'Hello, world!
')
    print("Sent: Hello, world!")
    time.sleep(1)
```
Note: In both examples, ensure that the FTDI 232 Mini USB to TTL Converter is properly connected to the computer and the microcontroller or device, and that the correct serial port and baud rate are used in the code.