Go Down

Topic: Another DIY FTDI cable question/help thread. (Read 10065 times) previous topic - next topic

xl97

Jun 15, 2010, 08:19 am Last Edit: Jun 15, 2010, 08:27 am by xl97 Reason: 1
Thanks for reading..

I am trying to make my own FTDI cable/programmer so I can upload sketches to my breadboard Arduino projects (without using my true Arduino board, swapping chips..etc)

So I order a CA-42 cable form China..  installed drivers, got my com port number..etc

cut my cable in half..and started to continuity trace my pinouts

PHONE END: (cable color, wire# underneath)

bl     wh    gr     or

8-----7-----6-----5-----4-----3-----2----1

according to all the tuts for the 'pins outs:
http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/#more-492

http://jethomson.wordpress.com/2010/02/21/diy-usb-to-serial-cable-for-3usd/

http://www.kwartzlab.org/blog/dw/2010-04-23/reverse-engineering-cheap-ardu

and the Nokia pinout chart:
http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml

5        USB Vbus        Also act as USB power detection? Should be connected to USB pin 1 in usb data cable. (USB Vcc +5V)
6       FBus Rx/USB D+       USB exists only in some models*. Should be connected to USB pin 3 in usb data cable. (USB DATA+)
7       FBus Tx/USB D-       USB exists only in some models*. Should be connected to USB pin 2 in usb data cable. (USB DATA-)
8       GND       Data GND (USB GND)

so to re-cap

GND     TX          RX         ?? (USB Vbus) ??

|           |            |            |

bl          wh         gr          or

|            |            |            |

8---------7---------6---------5---------4---------3---------2--------1

I have no clue what the Orange wire/USB Vbus line is for.. (not used? possibly clipped and moved/re-soldered for a further reset or power line to Arduino chip?)

anyways..

I switch my meter to check voltage..

clip black to GND and red to:

Orange wire: (USB Vbus)
nothing

Green wire: (RX)
3.18v

White wire: (TX)
nothing

Black wire: (GND)

Should I be concerned that my TX line isnt giving out 3.3v line in the tuts?  And why isnt it?

Also anyone explain to me about the USB Vbus wire?

I did tie both the the RX & TX lines.... open Hyper terminal and infact get text on the screen.. however it wasnt being duplicated (although I dont believe I had on echo default)

can I try to 'upload' a sketch to my chip as is?

should I cut out USB plastic housing end and solder on both a reset wire and 3.3v wire?

Alternately.. I also have a DKU-5 cable to work with if this FAILS.


thanks for any help.


raron

Quote
cut my cable in half.

Hope you cut it near the phone end, so you get a longer cable.

Quote
I did tie both the the RX & TX lines.... open Hyper terminal and infact get text on the screen.. however it wasnt being duplicated (although I dont believe I had on echo default)

Also cut the RX-TX connection while in hyperterminal, and verify that you dont get any echo / text back.

Dont measure voltage, measure continiuty on the "phone end" of the cable, to map out the connector to wire color. Seems like you have done this though. So according to your map, wh (white? pin 7, TX) goes to the arduino RX. gr (green? pin 6, RX) goes to arduino TX.

But I would use 1k ohm resistors from the arduino TX and RX, just in case you switch wires and get an output to an output..

Also, is your arduno 5V or 3.3V? If 5V, you should use the 10k - 15k voltage divider as pr the schematics in your first link, on the arduino TX output, which goes to the green wire (RX) on the cable.

If you don't have an auto-reset, you would have to figure out when to press the reset button before / right after trying to upload a sketch. Depends on the bootloader. I find it usually works if I press "upload", then the reset button right after. A one-handed operation.

I have a DKU-5 btw.

xl97

#2
Jun 15, 2010, 05:16 pm Last Edit: Jun 15, 2010, 05:59 pm by xl97 Reason: 1
lol..  ok it wasnt 'exactly' in half.. I only cut about 1-2 inches form the PHONE end..

I also 'did' break the RX/TX connection while in hyper terminal (no text showed).. re-connected them..letters again..

Im just concerned with the NO 3.3v coming from TX?

I get NOTHING from the (white) TX wire.. but the RX wire does in fact come in/display a bit 'lower' than 3.3v (actually 3.1xv something)

but according to the tuts.. TX should be giving me 3.3v?? something to be concerned about?


My Arduino Duemilanove, I believe, is 5v (powered off USB)


You stated this:
Quote

If 5V, you should use the 10k - 15k voltage divider as pr the schematics in your first link


Im new to all electronics.. what is a 10k-15k voltage 'divider'?
I didnt see mention of anything 'extra' (such as resistors, or voltage dividers).. almost every tut shows just using straight wires soldered to the PCB?


Id like at least like to add the RESET wire.. so I can avoid having to the hit the button manually..but its not a deal breaker..

my final part is the power? do I run a 5v feed form the PCB to the Atmel/Arduino/breadboard?

I suppose I need to crack open the USB end now right? and try to figure out where the 5v feed is?

Thanks in advance for any help.


edit:

Im also curious as to why my cable has 4 wires.. (like the tutorial in the link).. but their images state pin4 is 3.3v OUT..

I dont have a wire for pin4?

I 'do' however have a wire (orange) on pin5.. (but, again, outputs nothing when metered for voltage)

I have a DKU-5 cable if it would be easier?  LOL


--------------------------------------


ok..(talking outloud here.. hopefully someone will chime in..ro re-reading things on screen will make it 'click')  LOL


this link:
http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml

Nokia Pinout


8        GND        Data GND (USB GND)


traced/metered = check (GND)

7        FBus Tx/USB D-        USB exists only in some models*. Should be connected to USB pin 2 in usb data cable. (USB DATA-)

traced/metered = check (no vOUT)

6        FBus Rx/USB D+        USB exists only in some models*. Should be connected to USB pin 3 in usb data cable. (USB DATA+)


traced/metered = check (3.1xv OUT)


I 'believe' all 3 of the wires above are correct in color, tracing in continuity tests..etc


** again only question is the TX line is NOT putting out 3.3v when metered????????



the last portion of confusion comes from following the tutorials where 'they' have a wire on pin4..

where as in my cable I have a wire on pin5

4        V Out / VDD+        Connected to pin 3 in DKU-2 usb data cable / For Hansfree (ex. HS-23): microchip power supply

5       USB Vbus       Also act as USB power detection? Should be connected to USB pin 1 in usb data cable. (USB Vcc +5V)



I suppose I'll try to do a continutiy test on the phone side again for the pin4 -5 to make Im 100% correct here..

why would there NOT be a 5v feed? its usb cable/powered...no?

and what exactly is this pin5 output?

should I crack open the USB case and solder the ORANGE (pin5) lead to the V Out / VDD+ of where it states the pin4 is/should be?

that way my orange line will be the 5v/V++ feed power to the Arduino/chip?

and while Im in there (somehow) find the RESET pad.. and run a
another wire to the arduino/chip as well?

Thanks









xl97

#3
Jun 17, 2010, 06:28 am Last Edit: Feb 22, 2011, 05:27 am by xl97 Reason: 1
bump..

ok.. so I took apart my cable.. I have 4 wires soldered to the prolific clone...

doesnt look any of the pics..so I couldnt follow them exactly..

WIRE   --  PCB -- ATMEL

BLACK -- GND --  GND on breadboard
WHITE --  RX  --  TX on chip
GREEN --  TX -- RX on chip
RED  -- 5v -- v++ rail on breadboard

I open Arduino IDE..

choose 328 chip
make sure Im on the new COM5 port

I open a sketch,...verify...  when I uploaded..

I see the I/O size text come up..I hit switch on breadboard to auto re-set..


I get this error in Arduino IDE:

Binary sketch size: 896 bytes (of a 30720 byte maximum)

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

is there a different setting I need to set?..

anyone wanna help on the RESET on this PCB..maybe I can add that to the chip (auto reset)



I know Im getting power to the board/chip..cause the BLINK sketch is flashing..


I tested my rest button..it seems to 'stop/kill' the blink sketch form running (like killing power)..as soon as I let go...its back to blink though almost immediately.. wouldnt it need a second to load/run again?



not sure how to get a sketch form IDE to breadboard Ateml with Arduino bootloader on it...

if I run a sketch in my Arduino..replace chip..works as it should..  but can NOT get this FTDI cable to work to save my life.. =(

am I missing a step here?

thanks



lemming

I was looking at doing this a while back and just saved myself the trouble by buying one of these.

http://www.moderndevice.com/products/usb-bub

For $15.00 it does 3.3 and 5.0 volt levels and allows you a choice of pinouts and power to your breadboard Arduino clone.

pluggy

From my own experience and from numerous threads on here regarding the subject, whether you get a cheap Ebay Nokia type USB cable to work with a arduino is a lottery.  

I'm with lemming, the FTDI breakout board as sold by Moderndevices or the very similar one by Sparkfun is painless in comparison.

http://www.sparkfun.com/commerce/product_info.php?products_id=9115
http://pluggy.is-a-geek.com/index.html

xl97

Yeah I was hoping I could 'somehow' get the DIY FTDI cables to work

either the CA-42 which I tried already..or the DKU-5 exta one I have laying around..

man....lol

I have NEVER gotten a DIY parallel programmer to work for flashing bootloader to blank chips.

never got DIY MAX232 serial converter to work either..

after getting my 'real' Ardunio and using it as a programmer for bootloading the chips..

I (now) cant get the DIY FTDI cabls to upload sketches to it...


(Im not so luck with the DIY cables eh?...lol.. usually I make all my cables for my projects..etc)

thanks

xl97

Well I didnt give up guys...

and I got it working..
I re-checked the 4 wires I 'do' have on there.. and they were correct..

so I read some posts.. and started to give it some more 'tries' and adjusting my 'manual' reset button timing..and I got it working!

So thanks to everyone who replied..

my only/last question is.. (two parter) =)

a.) how can I go about finding the RESET pad to solder a wire to? and when it just goes to pin1 right?  same as the manual reset button?

b.) what would a possible 6th wire be used for?? (I see some have 6?)

Thanks


electrosys

Quote
a.) how can I go about finding the RESET pad to solder a wire to? and when it just goes to pin1 right?  same as the manual reset button?

Here you can read all about it and the RESET too, how to find the DTR (Reset pin) at PL-2303 chip in Nokia CA-41 wire:
http://jethomson.wordpress.com/2010/02/21/diy-usb-to-serial-cable-for-3usd/


xl97

Yeah I read that article.. (even linked to it in the first post) ;)

however.. my PCB does NOT look the same..and in fact has a big blob o resin over the chip..and I dont see any other chips..or chip numbers to verify anything.

is it possible that these boards just dont HAVE a reset??

pluggy

#10
Jun 21, 2010, 07:33 pm Last Edit: Jun 21, 2010, 07:34 pm by stephen_t Reason: 1
The DTR will be in there, under the resin, the chances you can find it and tap into it without destroying the whole thing are nil.  If its just the reset thats the problem, you can press the manual reset at the right time and it should go.  I find hitting reset after clicking upload at the point it reports the sketch size works for me.
http://pluggy.is-a-geek.com/index.html

xl97

damn.. I was afraid it might be under there.. and if it is..its NOT a through hole/via as I dont see it under the board either..

I'll take a pic and upload it, if for nothing else, just in case anyone else gets the same type they can follow the the pics..


yeah I do use the manual reset button finally have it timed right every time.. (same as you stated...when sketch size ..etc is displayed in IDE)

but I figured it would be 'nicer' if I could just add that.. its less to eventually add to a final 'board/project'  

Im far from anywhere near that point..lol

I still have a DKU-5 cable I cold check out too I suppose..??

hmmmmm

electrosys

@xl97
I have read your post, but I didn't really looked at these links, anyway your Nokia cable may look like this one:

As you know there are so many kinds of those cables and I have also seen same hack of this kind cable with a
on board chip too. Some of them has labeled (TX, RX, DTR,...) on board but I guess yours has no labels!
We could much better see it, when you have upload a picture of your cable (board)


xl97

Yeah its more like one..

on underside has labels/numbers of all pads at edge of PCB.. and a 5v pad label

on top side it has a 'few' labels.  one or two numbers a few via.. and thats about it.

Im not dead in the water.. I can manually reset using the button..but would be a 'full' solution if I didnt have to . :)


I'll try and get some pics up tonight when I get home from work.

Thanks   :)

xl97

ok..as promised some pics.. crappy ones..but pica none the less.. ;)

hopefully someone can help me not only identify this pcb..but more so..the DTR/RESET pad to jumper off of.

Thanks








any help is appreciated.

Go Up