hlxldb

LED光立方制作全过程(二十六)

0
阅读(1937)

Step 42Build the controller: Make an RS-232 cable

(这篇的图有些多了~)

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

Build the controller: Make an RS-232 cable

To connect the LED cube to a serial port on your computer, you need to make a serial cable with a female D-Sub 9 pin connector.

Our employer deployed 70 Ethernet switches with management last year. With each switch comes an RS232 cable that is never used. We literally had a big pile of RS232 cable, so we decided to modify one of those.

On the LED cube, a 0.1" pin header is used, so the RS232 cable needs a new connector on the cube side.

We didn't have a 4 pin female 0.1" connector, so we used a 4 pin female PCB header instead.

The connector on the LED cube PCB has one pin removed, to visualize the directionality of the connector. The pin numbers goes from right to left.

Pinout of the RS232 connector:

1) GND (DSub9 pin 5)
2) Not connected
3) RX (DSub9 pin 3)
4) TX (DSub9 pin 2)

Follow these steps to make your own RS232 cable:

1) Cut of the connector at one end of the cable. If your cable has a female and a male connector, make sure to remove the male connector!

2) Strip away the outer sheath on the end where you removed the connector.

3) Strip all the wires inside.

4) Set your multimeter to continuity test mode. This makes the multimeter beep when the probes are connected. If your multimeter doesn't have this option, use the resistance mode. It should get close to 0 ohm when you connect the probes.

5) Connect one multimeter probe to the DSub9's pin 5, then probe all the wires until you the multimeter beeps. You have now identified the color of GND in your cable. Repeat for pin 2 and 3 (TX and RX).

6) Write down the colors you identified, then cut off the other wires.

7) Cut the three wires down to size, 30mm should do.

8) Pre-tin the wires to make soldering easier. Just apply heat and solder to the stripped wires.

9) Slide a shrink tube over the cable. Slide three smaller shrink tubes over the individual wires.

10) Solder the wires to the connector.

11) Shrink the smaller tubes first, then the large one. If you use a lighter, don't hold the shrink tube above the flame, just hold it close to the side of the flame.

Don't make your cable based on the colors we used. Test the cable to find the correct colors.