Loading Items

About This Project

Here's a quick guide on how to get started using the FTDI with Linux.

Request Access

Project Info

Skills

  • Embedded
  • Linux
  • Terminal
  • Overall

Meet The Makers

Join Team
  • jamesshawver1
    • User:jamesshawver1
    • Rank:Journeyman
    • Projects:15
    • Joined:2016
    • From:US
    Interests: Enthusiastic Maker. Love everything open source.
  • birinder222

No Comments yet. Why don't you add one?

.Step 1: User Access

In order to make it so that you don't have to run as root or use sudo, we need to make sure that your user has access to the correct group. You can do this by running:

sudo usermod -aG dialout `whoami`

.Important Note:

You need to log out and log back in again for the new permissions to take effect of adding yourself to a group. You can do this after step 3 if you would like.

.

.Step 2: Udev Rules

Linux has this concept of allowing specific access for users to specified external devices. Translated, if you want to use a new usb device with a different driver, you're going to have to grant yourself access to it. The process for this is rather straight forward. Just run:

sudo gedit /etc/udev/rules.d/52-ftdi.rules

This should open up something that looks like this (without the text in it).

And now paste the following into the new window.

#FTDI Cable
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666", GROUP="dialout", SYMLINK+="ttyFTDI%n"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE="0666", GROUP="dialout", SYMLINK+="ttyAVR%n"


.Step 3: Restart the udev rules

This step is really easy. Just run:

sudo service udev restart

.Step 4 (optional): Installing a graphical interpreter

This is how we're going to see what's coming in on the uart line from the FTDI cable. My preferred application is gtkterm. An example of what this guy looks like can be seen below.

.Steps to install

My preferred way to install things like this is through the terminal. Just run:

sudo apt-get update && sudo apt-get -y install gtkterm

.Setting up GTKTERM

Now here's the last part. Make sure to plug in your FTDI cable.

In order to get the "Configuration" dialog box open like the image above, hit control, shift, and the letter 's' all at the same time (CTRL+SHIFT+s). We now can select, /dev/ttyUSB0 from the drop down list under port. You'll also have to configure the other settings as your hardware needs. Have fun and thanks for reading!

There are no project files yet.

Qty   Item Where to Find Est. Cost More Info
1 FTDI Cable 3V3

FTDI Cable 3V3

USB to UART cable with +3

$20 2 files   1 link  
 
udev_rules

udev_rules

Updated 8/04/2016 by jamesshawver1
ftdi_pinout

ftdi_pinout

Updated 8/04/2016 by jamesshawver1