RS232 BREAKOUT (bouni)

Connect your controller's serial port to a spindle drive with a three-wire RS-232 interface, using a nine-pin cable or individual wires.

Board layout and hardware tests are pending. This page documents the circuit design and connector pinout. Email wolf.arthur@gmail.com if you need the board for an application. SmoothieV2 has no spindle-drive protocol for this interface. You need host software that speaks your drive's protocol. If firmware support would help your application, email wolf.arthur@gmail.com for help with implementation.
RS-232point-to-point serial
DE-9male, PC-style pinout
3 wirestransmit, receive, signal ground
5 mmscrew-terminal pitch
3.3 Vcontroller logic
5 Vcontroller supply

Tech specs

Feature Specification
Serial link Isolated, full duplex, one controller and one drive
Drive connectors Male DE-9 (often called DB9), three-position 5 mm screw terminal, and parallel 2.54 mm pin-header footprint
Host connector Keyed ten-pin Gadgeteer ribbon connector, type U or K with hardware serial
Flow control Three-wire link, with hardware handshaking disabled
Chaining Same pin numbers on IN and CHAIN. Transmit and receive stop at this board by default.
Transceiver Analog Devices ADM3251E
Logic translator Texas Instruments TXU0202

See the electrical specifications for the component limits and their conditions.

Pinout

Drive connectors

The directions in this table are from the board’s point of view. Use one connector for one drive. The DE-9, screw terminal, and pin header share the same lines.

Board signal Typical drive terminal Screw terminal Alternate pin header Male DE-9
Transmit output RX or RXD 1 1 3
Receive input TX or TXD 2 2 2
Isolated signal ground SG or signal common 3 3 5
Male DE-9 mating face. Top row left to right 1, 2 receive, 3 transmit, 4, 5 signal ground. Bottom row left to right 6, 7, 8, 9. 12 RX3 TX45 SG 6789
Look into the board's male connector with the five-contact row at the top. The other contacts are open. Use pin 5 for the return.

Host IN and CHAIN

Check your controller’s socket chart for a type U or K socket with hardware serial on contacts 4 and 5. Pin 1 powers the 3.3 V logic translator, and pin 2 supplies the transceiver and its isolated converter.

Contact IN CHAIN as wired
1 3.3 V 3.3 V
2 5 V 5 V
3 Pass-through signal IN 3
4 Host transmit Open by default
5 Host receive Open by default
6 Pass-through signal IN 6
7 Pass-through signal IN 7
8 Pass-through signal IN 8
9 Pass-through signal IN 9
10 Host ground Host ground

What you need

Controller and keyed ribbon cableCheck the serial socket and its available 5 V current.
RS-232 drive and its manualCheck the electrical interface, pinout and three-wire mode.
Serial cable or three conductorsChoose the cable wiring from the drive's pinout.

Check your cable

  1. Read the drive port label and manual

    Confirm RS-232 and three-wire operation before attaching a cable. A nine-pin connector can also carry RS-485 or manufacturer-specific signals.

  2. Check the cable with power off

    Use your meter's continuity mode to trace board transmit to drive receive, board receive to drive transmit, and board pin 5 to drive signal ground.

  3. Check for crossed or shorted contacts

    Each of the three paths has continuity only to its intended contact at the other end.

Configuration

Set the baud rate, data bits, parity and stop bits from your drive’s manual. Turn hardware flow control off. The board passes serial data in both directions. The host software supplies the commands and interprets the drive’s replies.

SmoothieV2 has no spindle-drive configuration for this interface. Use the drive maker’s serial software or an application that implements the drive protocol. For PWM speed control and a run contact, see the analog spindle control breakout. For differential serial, see the RS-485 spindle control breakout.

Wiring your drive

Drive port Board connection What to check
Screw terminals marked TX, RX and signal ground Connect TX OUT to drive RX, RX IN to drive TX, and isolated signal ground to drive signal ground. Match actual terminal names to the manual.
Nine-pin serial port with DCE wiring Use a straight-through cable carrying 2→2, 3→3 and 5→5. The drive sends on pin 2 and receives on pin 3.
Nine-pin serial port with PC-style DTE wiring Use a three-wire null-modem cable carrying 2→3, 3→2 and 5→5. The drive sends on pin 3 and receives on pin 2.

DTE means data terminal equipment, the wiring used on a PC serial port. DCE means data communication equipment, with complementary wiring. Cable names and connector gender alone cannot tell you which pin carries transmit.

How it works

The TXU0202 translates the controller’s 3.3 V serial signals to and from 5 V logic. The ADM3251E converts these signals to RS-232 and supplies isolated power to the drive side of the circuit.

The drive’s serial return goes to isolated signal ground. Keep it separate from the controller ground, and use the connector shell for shielding.

Chaining

Connect a second board to CHAIN to share the same host socket. Compare its required pins with the IN and CHAIN table first. The power rails and ground are wired through. Individual underside links pass pins 3 and 6–9. Leave the transmit and receive links on pins 4 and 5 open whenever the second board could drive either line.

Troubleshooting

What you see Possible cause What to check
Commands go out, without a reply The cable connects two transmit pins or misses the signal return With power off, verify the three cable paths against the drive manual.
The reply is garbled The host and drive use different serial settings Match baud rate, parity, data bits and stop bits.
The drive waits before sending Hardware flow control is enabled Select the drive’s three-wire mode and turn handshaking off on the host.
Nothing arrives from SmoothieV2 The firmware sends no drive commands Try the drive maker’s software over a compatible serial interface.
The link stops working when you add another board The chain draws too much power or shares a driven contact Check the header’s power budget and the links on pins 4 and 5.

When asking for help, include your controller revision, drive model, terminal labels, cable continuity readings and serial settings. See how to ask for help.

Appendix: electrical specifications

Parameter Applies to Lower Nominal Upper Basis and conditions
Logic supply Controller side — 3.3 V — Gadgeteer supply specification
Transceiver supply Transceiver supply pins 4.5 V 5 V 5.5 V Component datasheet, with the isolated converter enabled
Transceiver supply current Transceiver only — — 145 mA Component datasheet, 5.5 V supply and 3 kΩ line load. Allow separately for other board loads and startup.
Board isolation rating Complete assembly — — — Open

Component stress limits

The transceiver datasheet specifies an RS-232 receiver input range of −30 V to +30 V. Use a documented RS-232 source on the receive input. The range applies to the component and does not establish a board rating.

Appendix: datasheets

First page of the Analog Devices ADM3251E datasheet
ADM3251E isolated RS-232 line driver and receiver · Analog Devices · Rev. E · 16-page PDF
First page of the Texas Instruments TXU0202 datasheet
TXU0202 dual-bit fixed-direction voltage-level translator · Texas Instruments · Rev. A · 41-page PDF
This is a wiki! If you'd like to improve this page, you can edit it on GitHub.