Extension board · Serial

RS-232 level adapter

Converts host UART and handshake signals to RS-232 levels on a DE9 connector.

Top view of the RS-232 level adapter board
Top view drawn from the original board file. This is a drawing, not a photograph.
MAX3232transceiver
DE9connector
4signals
5 Vtransceiver supply
40 × 40 mmboard size
4holes, 2 for the D-sub
The MAX3232 runs from 5 V on this board, so its receive and CTS outputs may exceed what a 3.3 V controller accepts. Do not connect them to a Smoothieboard V2 Prime input without level conversion. This is a design by Chris Cecil, not a current Smoothieware board.

Tech specs

FunctionUART to RS-232 level conversion
HeadersJ2 (2 × 5), J3 (1 × 10)
ConnectorJ1 DE9: 2 transmit, 3 receive, 5 ground, 7 CTS, 8 RTS
ChipU2 MAX3232
Size40 × 40 mm

Board tour

  1. 1
    DE9 connector — RS-232 side.
  2. 2
    MAX3232 — Level converter.
  3. 3
    Header J2 — Host side.
  4. 4
    Row J3 — Same signals in one row.
  5. 5
    Capacitor C1 — Capacitor C1, marked .47uf in the board file.
  6. 6
    Capacitor C5 — Capacitor C5, marked .1uf in the board file. Connects to +5V, GND.
  7. 7
    Capacitor C2 — Capacitor C2, marked .47uf in the board file. Connects to GND.
  8. 8
    Capacitor C3 — Capacitor C3, marked .47uf in the board file. Connects to GND.
Point at a number, or tap it, to read what the part is; the same text is in the list. On a small screen, scroll the drawing sideways.

Pinout

Headers J2 and J3

J2 contactConnected to
1+3V3
2+5V
3CTS
4Tx
5Rx
6RTS
7P7
8P8
9P9
10GND

DE9 connector J1

J1 contactConnected to
0not connected
1not connected
2TxD_
3RxD_
4not connected
5GND
6not connected
7CTS_
8RTS_
9not connected

What you need

RS-232 adapterBuilt from the design files
RS-232 deviceWith known pinout
Level conversionFor any 3.3 V input

Get started

The minimum wiring first, then the order to do it in. Facts about each contact are in the pinout.

Wiring: J1 contact 2 to TxD_; J1 contact 3 to RxD_; J1 contact 5 to GND; J1 contact 7 to CTS_; J1 contact 8 to RTS_.J1 on this boardRS-232 deviceTxD_ 2TxD_2: TxD_RxD_ 3RxD_3: RxD_ 5GND5: GNDCTS_ 7CTS_7: CTS_RTS_ 8RTS_8: RTS_
Wiring drawn from the original design files. Make connections with all power off. Equipment is drawn as a typical unit, not a specific model.
  1. Check the contacts

    With all power off, find contact 1 on each connector and check every wire against the pinout.

  2. Set up and check

    Know the pinout of your RS-232 device.

  3. Set up and check

    Connect any 3.3 V input only through level conversion you have checked.

  4. Configure and power up

    Apply the settings under Configuration, then power up.

Configuration

A UART console setup. Connect the receive path only through level conversion that you have checked.

[uart console]
enable = true
console = true
channel = 1
baudrate = 115200
bits = 8
stop_bits = 1
parity = none

On Smoothieboard V2 Prime, channel 1 transmits on PB9 and receives on PH14. See UART. Syntax checked against firmware commit 2a21c0108b1d095ecd8b2b9358e94055f053c003.

How it works

Host Tx reaches DE9 contact 2 through the transceiver, and DE9 contact 3 returns to host Rx. CTS and RTS are converted the same way. Check how your instrument or cable assigns transmit and receive. See the MAX3232 datasheet.

Host Tx and CTS/RTS then MAX3232 transceiver then DE9, Tx on contact 2. DE9 contact 3 then MAX3232 transceiver then Host Rx.Host Tx and CTS/RTSMAX3232 transceiverDE9Tx on contact 2DE9 contact 3MAX3232 transceiverHost Rx
How the signals pass through this board, one path per row.

Troubleshooting

SymptomCheck
No dataSwap check: confirm DE9 contacts 2 and 3 against the other device, and match baud rate and framing.
Handshake ignoredThe Smoothieware UART driver does not use hardware flow control.

Still stuck? Read how to ask for help or see the general troubleshooting guide.

Downloads

Appendix: mounting dimensions

Outline and holes from the original board file. Millimetres, seen from the component side.

Mounting drawing of the historical-rs232-level-adapter, component side: outline 40 by 40 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 40 40 0, 0 X Y 1 20.00, 5.00 2 34.31, 7.10 3 34.31, 32.10 4 20.00, 35.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 40 × 40 mm, corners rounded to a 3 mm radius, board thickness 1.6 mm. Drawn from the design files, component side up, in the same orientation as the board tour.
HoleX (mm)Y (mm)DiameterUse
120.005.003.2 mm, not platedMounting, M3 screw
234.317.103.2 mm, platedD-sub connector fixing
334.3132.103.2 mm, platedD-sub connector fixing
420.0035.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Only what the design source states or the circuit fixes. Blank cells are not specified.

ParameterApplies toLowerNominalUpperBasis and conditions
Transceiver supplyU2 pin 16—5 V—Design file connection

Design source

Designed by Chris Cecil: original design files. It was drawn for the Smoothieboard V2 Gadgeteer era; check every connection against your own controller. See all boards on the extension boards page.

This is a wiki! If you'd like to improve this page, you can edit it on GitHub.