Difference between revisions of "Project:Nanode/PoorMansCable2"

From London Hackspace Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
We'll be using a SiteCom one as an example:
 
We'll be using a SiteCom one as an example:
  
[[http://www.sitecom.com/image/productimage/5350/cn-104-product.jpg|thumb|200px|Sitecom USB/Serial 5v]]
+
[[File:sitecom.jpg|200px|thumb|sitecom prior to hacking.]]  
  
 
And this means one of the PL2303 connected to the USB on the one side and providing a 5v serial TTL on the other; and then some RS-232 tranceiver (SP213EH) to lift TTL to RS232 voltages.
 
And this means one of the PL2303 connected to the USB on the one side and providing a 5v serial TTL on the other; and then some RS-232 tranceiver (SP213EH) to lift TTL to RS232 voltages.
Line 31: Line 31:
  
 
= Building =
 
= Building =
 
http://www.maplin.co.uk/miniature-general-purpose-abs-box-1551-series-43710
 
  
 
First use a sharp knife to cut the gummy off the DB95 end of the connector. Once cut open you'll find a small circuit board encased in hotglue Warm it a litte and gently pull it off. You are left with a clean circuit board.
 
First use a sharp knife to cut the gummy off the DB95 end of the connector. Once cut open you'll find a small circuit board encased in hotglue Warm it a litte and gently pull it off. You are left with a clean circuit board.

Revision as of 17:39, 2 October 2011

Poor mans Arduino/ftdi cable

See Project:Nanode/PoorMansCable for a more advanced method.

Requirements

  1. Random no-name USB to Serial cable. In our case a Sitecom CN (http://www.sitecom.com/usb-to-serial-cable/p/31). Ideailly PL2303-XXX based.
  2. Small plastic enclosure (http://www.maplin.co.uk/miniature-general-purpose-abs-box-1551-series-43710)
  3. A 5 pin IDC which fits on the nanode its FTDI cable. I recycled one from a floppy disk which happened to fit.
  4. Some (hotglue) to protect the wiring.

Introduction

Virtually all low cost PL2303 USB/Serial connectors seem to be based on the reference design of Prolific:

http://www.prolific.com.tw/eng/downloads.asp?ID=58

and specifically

http://www.prolific.com.tw/support/files//IO%20Cable/PL-2303HX/Documents/Schematics/SCH_PL2303HXD-QFN32_v1.0.pdf

http://www.prolific.com.tw/support/files//IO%20Cable/PL-2303X/Documents/Schematics/SCH_PL2303XA-QFN32_V1.0.pdf

We'll be using a SiteCom one as an example:

sitecom prior to hacking.

And this means one of the PL2303 connected to the USB on the one side and providing a 5v serial TTL on the other; and then some RS-232 tranceiver (SP213EH) to lift TTL to RS232 voltages.

We're basically going to cut of the latter conversion - and directly use the 5v TTL from the PL2303.

Building

First use a sharp knife to cut the gummy off the DB95 end of the connector. Once cut open you'll find a small circuit board encased in hotglue Warm it a litte and gently pull it off. You are left with a clean circuit board.

On the board are two chips; one is the main USB chip and one is some MAX233/SP231 or similar variant which brings the 5v of the USB logic to the required RS232 voltages. We're now after the 5 FTDI wires:

|| serial || FTDI colour || DB9 pin || | RTS | green | DB9 - 7 | | RxD | yellow | DB9 - 2 | | TxD | orange | DB9 - 3 | | VCC | red | n/a | | CTS | brown | DB9 - 8 | | GND | black | DB9 - 5 |

(http://www.sparkfun.com/datasheets/DevTools/FTDI%203.3V%20IO%205V%20Vcc%20Cable.pdf)

Use a multimeter to find the pin on the SP213EH to which the corresponding DB9 pin is wired. Note this on the diagram of the SP231EH chip:

http://www.datasheetcatalog.org/datasheet/sipex/SP213EHEA.pdf

On that same diagram - identify the corresponding 5 volt pin. E.g. if your RxD went to R2IN (pin 32) then the 5volt pin will be the R2OUT (pin 22).

For the +5v (VCC) we do a bit of a cheat - we wire it to one of the 'free' pins on the DB9 - so we can more easily solder a wire to it.

pins to be cross-connected after desoldering of the chip

Now desolder the SP231 or MAX Rrs232 tranceiver chip. And then bridge the various IN and OUTs corresponding to your schematic.

pins as crossconnected on the board after desolering of the tranceiver.

Then remove the DB9 and wire up your FTDI connector. And put it all in a small box.

Packaging and wire restraints

That is it really.

Final assembly - programming a Nanode