Tutorial: USB-to-serial cable for img2track
Here we provide instructions for making the cable to connect your computer to your knitting machine. It's not the easiest thing to do, but neither is operating a knitting machine!
This is a revised and updated tutorial based on the Adafruit Electro-knit Cable tutorial created by Becky Stern. (The FTDI cable programming is now done with the FT_PROG utility program, which replaced the older utility called MProg. We invert the RTS# signal so it can be used on pin 3. The connector wiring is simplified.)
img2track and similar programs communicate with Brother knitting machines using a data port originally intended for a Brother FB-100 floppy disc drive. This port is available on Brother models 930, 930e, 940, 950i, 965i, and 970.
To connect a computer to the knitting machine, we use a USB-to-serial cable. One end has a USB connector to plug into your computer. The other end has a special connector to plug into the port on the back of the knitting machine. The cable contains a converter chip that translates between USB signals and the TTL signals used by the knitting machine.
The converter cables we've been using are the TTL-232R-3V3, made by Future Technology Devices International (FTDI). However, (as of January 2013) none are available with a connector to fit the knitting machine. The Brother knitting machines use a nonstandard 2x4 pin data port. Therefore we must modify the cable to attach a matching connector. This modification does not require cutting or soldering. You will need a pin, needle-nosed pliers, electrical tape, and a steady hand.
The knitting machine uses nonstandard opposite polarity signals, so the converter chip in the cable must be configured appropriately. FTDI supplies a program for this, but it is only available for Microsoft Windows. You will also need to install driver software on the Windows computer.
Preparing the Cable
The following sections describe the steps to prepare the cable.
- Procure FTDI cable and 2x4 connector
- Install driver software
- Configure the FTDI cable
- Change the connector
We've been using FTDI TTL-232R-3V3 cables without problems, though the TTL-232R-5V could be more reliable (the electrical specs might be a better match for the Brother 930). They are available from several distributors, here are a few:
The 2x4 connector we've been using is the DigiKey WM8036-ND.
The FT_PROG utility you will use in the next step requires that the FTDI driver software is installed on the computer. FT_PROG is available only for Microsoft Windows, so you must use a computer running Windows for this. You should install the CDM driver.
- If you are running Windows 7 or Vista, and are connected to the internet, plug in the USB end of the cable — the necessary driver may be automatically installed. If not, please see the instructions for your computer at FTDI's Installation Guides page.
- If you are using Windows XP, please follow the XP Installation Guide — the automatic install might use the wrong driver.
(This must be done on a computer running Microsoft Windows, with the appropriate driver installed in the last step.)
- Download FT_PROG, the FTDI EEPROM Programming Utility, and extract the contents of the zip file.
- FT_PROG requires Microsoft .NET Framework 4.0. If FT_PROG won't run, you may need to install this. See the instructions at the previous link to obtain it.
- Double-click FT_PROG.exe to run the program.
- Check that the cable is plugged into a USB port on the computer.
- In Devices menu, select "Scan & Parse". FT_PROG should scan the cable.
- Double-click "Hardware Specific".
- Click "Invert RS232 Signals".
- On the right, check these three boxes:
- Invert TXD
- Invert RXD
- Invert RTS#
To put the 2x4 pin connector on the USB-to-serial cable, we must first remove the 6 pin connector it comes with. We will reuse the tiny metal sockets attached to each wire in the new 2x4 connector housing.
With a pin, bend back all the plastic tabs on the 1x6 connector.
Gently pull on each wire to remove the sockets from the 1x6 connector.
Rearrange the wires in this order: yellow, orange, green, black. Move the other wires to the side. Twist the orange wire 180 degrees so that its socket is facing down. (It is the only one that goes in the bottom row.) Position each socket in the 2x4 connector exactly as shown in the color-coded diagram.
Carefully grab each wire with a needle-nosed plier just below the socket, and push the socket entirely into the 2x4 connector.
Wrap the unused brown and red wires against the cable with electrical tape. Use two layers of tape between them.
Wrap the end of the cable, the wires, and half of the connector with two or three layers of electrical tape, for durability and strain relief.
(page revised 2013-01-12)