0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« on: March 19, 2009, 04:24:29 pm » |
Long story short, I used a cheap ($3 on ebay delivered) Nokia CA-42 cable knockoff as a USB to serial adapter for another project (adding a serial port to a Buffalo Linkstation Live Network attached storage LINK BELOW).
Would it be possible to do something similar for use with a boarduino? Most of the cheap cables are based on a Prolific PL2303 (datasheet LINK BELOW) chipset which is supported under Windows and Linux.
Seems like a great way to get a cheap USB to 3.3V TTL...
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #1 on: March 19, 2009, 04:25:55 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 6
Posts: 1398
Arduino rocks
|
 |
« Reply #2 on: March 19, 2009, 06:14:50 pm » |
This sounds like a good idea. I bet the prices (on ebay) will jump very soon.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5454
Strongly opinionated, but not official!
|
 |
« Reply #3 on: March 20, 2009, 01:13:25 am » |
It should be possible, although it looks like those are strictly 3-wire serial implementations. That means that the auto-reset feature won't work, and you'll have to push the button just like in the good old days.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 65
Arduino rocks
|
 |
« Reply #4 on: April 09, 2009, 08:45:55 pm » |
If anyone is interested, I cut the end off of a CA-42 cable and discovered the following pinout: yellow -> common blue -> arduino TX green -> arduino RX red -> unknown
I downloaded the driver from Prolific's site mentioned earlier (2nd post). Version 1.0.2.5 worked for me in Vista x64. I was able to program my BBB freeduino and monitor returning serial data for debugging.
There are a couple disadvantages, the first being no 5V power to run the 'duino off of and second, you have to manually press the reset button. The second is actually a non-issue for myself as I don't like the auto-reset feature resetting my 'duino every time I start the Serial Monitor or plug in the USB cable or start the Arduino compiler. Then, there is the advantage of price, I paid just shy of $5 USD per cable shipped.
note: my cable runs at 0-3.3V on the TX line
|
|
|
|
« Last Edit: April 09, 2009, 09:33:28 pm by m_elias »
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 102
Arduino rocks
|
 |
« Reply #5 on: April 11, 2009, 09:26:22 pm » |
Nice - Just ordered one from Hong Kong - $3.24 shipped.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 65
Arduino rocks
|
 |
« Reply #6 on: April 12, 2009, 12:14:22 am » |
Update: I found out that the usb end of my cable is not an injection molded plug, but with some prying I could pop it open. I then proceeded to solder the red wire to a +5V contact and behold, it now powers my Arduino too!! Now if only I could get the Arduino to bake me a cake....
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #7 on: April 12, 2009, 01:46:09 am » |
For those that want the 5V power or auto-reset, you may want to look into hacking one of these: http://www.dealextreme.com/details.dx/sku.2537$6.68 shipped
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 11
Arduino rocks
|
 |
« Reply #8 on: May 05, 2009, 10:27:42 pm » |
I apologize, again, for my newness. I just read this thread (thanks westfw) and the linking pages: Does that mean I would just solder the appropriate ends of this cable to... a board...somewhere? I'm confused.
Backstory: I have an arduino project, that takes Pushbutton triggers, and sends data over the USB connection. I'd like to make more, without buying separate arduinos for each ($30) or using boardino/BBB solutions with breakout USB ($20-$25)... if I can cut my Serial connectivity cost from $12-$15 to just $3, that's a big enough deal for me to do it, I just don't understand exactly what I would be connecting where...
Thanks guys, Phil
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 11
Arduino rocks
|
 |
« Reply #10 on: May 05, 2009, 11:16:52 pm » |
when you say you soldered it to your BBB, where did you solder? I am a little lost there...
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 8
Arduino rocks
|
 |
« Reply #12 on: May 27, 2009, 05:20:44 am » |
Hi
I want to clarify something....
These USB-to-Serial cables, even if they have the PL2303 chip, are they TTL compatible?
I asked because I always thought serial port specifications are not TTL compatible... so if it is a USB-to-Serial cable, can you just connect the serial side to the Arduino? Don't we need some form of level conversion like using MAX323?
|
|
|
|
|
Logged
|
|
|
|
|
London
Offline
Faraday Member
Karma: 6
Posts: 6226
Have fun!
|
 |
« Reply #13 on: May 27, 2009, 06:01:29 am » |
LiveRock, most of these cables (for example the one I linked in post #7) use the PL-2303 for USB , and a Maxim chip for the RS232 level conversion. The PL-2303 operates at logic levels that are compatible with the arduino pins. There is a datasheet here: http://user.chollian.net/~mines/pl2303.pdf
|
|
|
|
« Last Edit: May 27, 2009, 06:01:47 am by mem »
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 6
Arduino rocks
|
 |
« Reply #14 on: October 05, 2009, 12:22:27 am » |
I wrote an article for uC Hobby with step by step instructions on how to use one of the cables with an Arduino breadboard setup. I modified the cable to provide USB power and auto-reset. Here's a link: http://www.uchobby.com/index.php/2009/10/04/diy-usb-to-serial-cable-for-3/#more-492
|
|
|
|
« Last Edit: October 05, 2009, 12:24:42 am by yardleydobon »
|
Logged
|
|
|
|
|
|