The Adafruit FTDI Friend is a versatile and compact USB-to-serial converter module based on the industry-standard FT232RL chipset. It is designed to facilitate serial communication between a computer's USB port and the UART (Universal Asynchronous Receiver/Transmitter) interface of microcontrollers, such as those found on Arduino boards. This module is particularly useful for programming, debugging, and serial communication for microcontroller projects.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | CTS | Clear to Send, flow control input signal |
3 | VCC | Power supply (5V from USB) |
4 | TXD | Transmit Data, outputs UART serial data |
5 | RXD | Receive Data, receives UART serial data |
6 | RTS | Request to Send, flow control output signal |
7 | DTR | Data Terminal Ready, used to reset Arduino in bootloader mode |
Connect the FTDI Friend to the Microcontroller:
Connect the FTDI Friend to the Computer:
Install Drivers:
Select the Correct Serial Port:
Program or Communicate:
Q: Can the FTDI Friend be used with 3.3V devices? A: Yes, the FTDI Friend has a jumper that allows you to select between 3.3V and 5V operating voltages.
Q: Does the FTDI Friend come with a USB cable? A: No, a Mini-B USB cable must be purchased separately.
Q: Can I use the FTDI Friend to program an Arduino Pro Mini? A: Yes, the FTDI Friend is ideal for programming boards like the Arduino Pro Mini that do not have onboard USB.
Q: Is it necessary to install drivers for all operating systems? A: Drivers are typically required for Windows. MacOS and Linux usually have built-in support for the FT232RL chipset.
// This example demonstrates basic serial communication between
// an Arduino UNO and a computer using the Adafruit FTDI Friend.
void setup() {
// Begin serial communication at a baud rate of 9600:
Serial.begin(9600);
}
void loop() {
// Check if data has been received:
if (Serial.available() > 0) {
// Read the incoming byte:
char incomingByte = Serial.read();
// Echo the byte back to the serial port:
Serial.write(incomingByte);
}
}
Remember to select the correct COM port and board settings in the Arduino IDE before uploading this sketch. This code will echo any character sent from the computer back to the computer's serial monitor, demonstrating basic serial communication using the FTDI Friend.