-40C to 85C
-40C to 85C
-40C to 150C
1.8 meters (6 feet)
17.5mm x 13.5mm x 3.5mm
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.
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.