go away spammer

Author Topic: Make your own FTDI cable for about $5  (Read 8543 times)

0 Members and 1 Guest are viewing this topic.

Offline Ro-Bot-XTopic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Make your own FTDI cable for about $5
« on: December 05, 2010, 10:23:48 PM »
For people that don't read my blog, here is a copy:

I read on the Arduino forum about using cheap Nokia data cables as a FTDI cable. I decided to have a look and started to shop around for a compatible cable. The best candidate seems to be the CA-42 USB2.0 Nokia Data Cable and I ordered this one: http://www.dealextreme.com/details.dx/sku.45715 from Deal Extreme for $4.40 with free shipping. It comes in a box with a driver CD, so you don’t have to browse all over the internet to find drivers.

This is how it looks like:


The nice part of this cable is that the blue plastic casing is not glued, so with a knife I pried it open. Inside, I found a small PCB with a black blob and… lucky me, the pins are already labeled! It has GND (the label is covered by the blob), Rx, Dtr, Tx and Vcc.


Only GND, Rx and Tx were used, so I needed to ditch the original cable and make a new one. For this purpose I bought a 6 wire phone cable, about 2 meters long (good for 3-4 cables) for $1 and some crimp pins and 6 pin housings, $0.40 a set.

I stripped one end of the phone cable and there were 6 colored wires: white, black, red, green, yellow, blue. I need only 5 wires, so I cut off the white wire. Then I crimped 5 pins on the remaining wires and I plugged them like this (from left to right):

Blue    - Dtr
Yellow – Tx
Green  - Rx
Red     – Vcc
nothing
Black  - GND
Then I stripped the other end of the cable, cut off the white wire, then started to solder the remaining wires in order (from left to right):

Black  - GND
Yellow – Rx
Blue   – Dtr
Green – Tx
Red    - Vcc
The Dtr pin on the little board had a red wire jumper to a pin on the back of the board. I removed that wire before soldering the Blue wire instead. When soldering the Rx and Tx wires you need to be careful and switch them, so the Rx pin from the microcontroller will go to the Tx pin from the FTDI chip and the Tx from the microcontroller will go to the Rx pin from the FTDI chip.

This is how the cable looks now:


Then I placed the little board back in it’s plastic casing and closed it.


The only thing that is missing are the Rx-Tx LEDs, but we’ll live without them.

Before I can use the cable I need to install the driver. I put the CD in and browsed the folders to find a Windows 7 compatible driver. I didn’t, but I found a Vista driver and installed that one. After the install finished, I plugged the cable in the USB port. New hardware was detected and the driver loaded. It was detected as "Prolific USB-to-Serial Comm Port" and it had allocated the COM8 port.

Will Arduino IDE work with it? Let’s see. I took a µBotino board and plugged the cable in the FTDI header. The power LED came on (the cable supplies 5V) and the already loaded Blink program started to run. So far so good. I started the Arduino IDE and loaded a random Example sketch, selected the serial port COM8 and clicked the Upload button. The pin D13 (red) LED flickered for a moment and then went off. After a little bit, the “Done uploading” message came in the IDE, so I was sure the uploading was done. The Blink sketch was not there anymore, because the D13 LED wasn’t blinking. I loaded the Blink sketch in Arduino IDE and clicked on the Upload button, then, after seeing the “Done uploading” message, the D13 LED started to blink again! Success!


As you can see, this is an easy and cheap way to make your own FTDI cable and you can use it as a USB-serial cable for any project you have.

I might be selling these cables in my store for about $10 if people are interested.
Check out the uBotino robot controller!

Offline GearMotion

  • Supreme Robot
  • *****
  • Posts: 489
  • Helpful? 24
  • Two decades+ of Embedded Design
    • CircuitGizmos
Re: Make your own FTDI cable for about $5
« Reply #1 on: December 06, 2010, 12:17:51 PM »
You didn't make an "FTDI" cable, you made a USB to TTL-level serial cable.

It was detected as "Prolific USB-to-Serial Comm Port"

Then it isn't FTDI and wouldn't use the FTDI driver, but would use the Prolific driver. Under the black blob is some Prolific silicon, not FTDI.

Offline Ro-Bot-XTopic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Make your own FTDI cable for about $5
« Reply #2 on: December 06, 2010, 06:53:55 PM »
I KNOW! But most people look for a FTDI cable, that is why I wrote it that way.
Check out the uBotino robot controller!

Offline Joker94

  • Supreme Robot
  • *****
  • Posts: 1,119
  • Helpful? 26
Re: Make your own FTDI cable for about $5
« Reply #3 on: January 11, 2011, 09:42:13 PM »
Hi Ro-Bot-X

made a cable in the least day or so and it works well. a very convenient way to program your R-Dev-Ino board using the Arduino programming environment!

Offline Ro-Bot-XTopic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Make your own FTDI cable for about $5
« Reply #4 on: January 11, 2011, 10:19:15 PM »
Glad that you made it!

Cheers!
Check out the uBotino robot controller!

Offline totalis

  • Full Member
  • ***
  • Posts: 89
  • Helpful? 0
Re: Make your own FTDI cable for about $5
« Reply #5 on: January 19, 2011, 03:51:28 PM »
I can confirm that this is a fantastic method of making a UART to COM converter, it almost seems worth updating the the $50 tutorial to include one of these as extra.

any ideas what the max baud rate?

T

Offline Ro-Bot-XTopic starter

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,431
  • Helpful? 25
  • Store: RoBotXDesigns.ca
    • Ro-Bot-X Designs
Re: Make your own FTDI cable for about $5
« Reply #6 on: January 19, 2011, 05:27:12 PM »
I used it at 115200.
Check out the uBotino robot controller!

 


Get Your Ad Here