Extension board · Signal interfaces

Differential I2C signal extender

Two boards that carry an I2C bus from the controller to sensors, displays and expanders several metres away. The bus travels as two differential pairs in an ordinary Cat5e cable and needs no address or setting of its own.

Top view of the I2C extender host board: two ten-pin sockets along the top, 12 V terminals on the left and right, a link jack at the bottom.
Top view, drawn from the board’s design files. This is a drawing, not a photograph.
Smoothieware does not support this board yet. If you have a use for it, email wolf.arthur@gmail.com: we will implement it, or help you implement it.
2 pairsSDA and SCL, differential
1 MHzdatasheet maximum on 3 m
Cat5estraight-through cable
12 Von a separate two-wire lead
3.3 V + 5 Vmade at the remote, 100 mA each
60 × 60 mmeach board
The link jack looks like a network socket but is not Ethernet. Never connect it to a computer, router or switch. The two boards share ground: this is not an isolating extender.

Tech specs

PurposeReach an I2C device mounted far from the controller: toolhead, gantry, enclosure wall or operator panel
LinkPCA9615 differential I2C buffer on each board; SCL on cable contacts 1 and 2, SDA on 3 and 6
Clock and lengthDatasheet figure: up to 1 MHz over 3 m of cable; longer runs need a lower clock
Logic level3.3 V I2C on both boards. Do not connect a 5 V I2C bus
Pull-ups3.3 kΩ on SDA and SCL on each board, removable
Host connectorsTen-pin socket in (I IN), ten-pin socket on (CHAIN), Qwiic, 12 V in, 12 V out, link jack
Remote connectorsTwo ten-pin sockets in parallel (OUT A, OUT B), Qwiic, 12 V in, link jack
Power12 V into the host, two wires on to the remote
ProtectionElectronic fuse (TPS26600) on both boards for reverse polarity, undervoltage, overvoltage and overload, with fault lights; ESD array (TPD4E1U06) on the cable pairs
Remote suppliesAP63205 5 V converter, AP2112K 3.3 V regulator, TPS2553 current-limited 5 V output
Works withTen-pin type I sockets of the Smoothieboard V2 Prime (G_B and G_G carry I2C); no firmware driver

Every figure with its basis is in the electrical specifications appendix; hole positions are in the mounting dimensions appendix.

Board tour

The numbers on each drawing match the list below it. Boards are shown from the component side. The solder links are on the back.

Host

  1. 1
    Input socket I IN — Ribbon cable from the controller.
  2. 2
    Chain socket — Continues the controller’s socket to a further local board.
  3. 3
    12V IN — Supply for both boards. Plus is the upper terminal.
  4. 4
    12V OUT — Two wires to the remote. Plus is the lower terminal.
  5. 5
    Link buffer — PCA9615: turns SDA and SCL into two differential pairs and back.
  6. 6
    Link jack — Cat5e cable to the remote. Not Ethernet.
  7. 7
    Qwiic socket — The same I2C bus at 3.3 V. The four empty pads on the right take a 2.54 mm pin header instead: GND, 3.3 V, SDA, SCL from the top.
  8. 8
    Lights — From the top: FAULT, OVER V, REVERSE, 12V and 5V. See the table below.
Point at a number, or tap it, to read what the part is. On a small screen, scroll the drawing sideways.

Remote

  1. 9
    Socket OUT A — A ten-pin socket for a board at the far end.
  2. 10
    Socket OUT B — A second socket on the same bus and supplies.
  3. 11
    12V IN — Two wires from the host. Plus is the upper terminal.
  4. 12
    Link buffer — PCA9615: rebuilds SDA and SCL from the cable.
  5. 13
    Link jack — Cat5e cable from the host.
  6. 14
    Supplies — AP63205 with this coil makes 5 V from the 12 V; below it, TPS2553 limits the 5 V output and AP2112K makes 3.3 V.
  7. 15
    Qwiic socket — The remote bus at 3.3 V. The four empty pads on the right take a pin header instead: GND, 3.3 V, SDA, SCL from the top.
  8. 16
    Lights — From the top: FAULT, OVER V, REVERSE, 3V3 and 5V. See the lights table below.
Point at a number, or tap it, to read what the part is. On a small screen, scroll the drawing sideways.

Lights

FAULT OVER V REVERSE Host 12V Remote 3V3 5V
WhereBoth boardsBoth boardsBoth boardsHostRemoteBoth boards
Lit meansThe fuse is offSupply above about 13.8 V12 V connected backwards12 V present3.3 V present5 V present
Disable itCut SJF1Cut SJF2Cut SJF3Cut JP10Cut JP10Cut JP12

Pinout

Ten-pin sockets

ContactSignalHost I INHost CHAINRemote OUT A and OUT B
13.3 VFrom the controller; powers the buffer’s I2C sidePassed onMade on the board
25 VFrom the controller; powers the link driverPassed onSwitched 5 V, current limited
3I/OPassed to CHAIN (can be wired to enable, see links)Passed onNot connected
4 to 7I/OPassed to CHAINPassed onNot connected
8SDAI2C dataThrough link JP8I2C data
9SCLI2C clockThrough link JP9I2C clock
10GNDGroundGroundGround

Only SDA and SCL cross the cable: an interrupt or reset line of a far board cannot be returned to the controller.

Qwiic socket and pin header

PinSignal
1GND
23.3 V
3SDA
4SCL
Jack contactSignalTwisted pair in the cable
1SCL +First pair
2SCL −First pair
3SDA +Second pair
6SDA −Second pair
4, 5, 7, 8Unused—

Use a straight-through cable, wired the same way at both plugs (T568A or T568B). No power and no ground travel in it. The metal shield is joined to ground through a resistor and capacitor on each board.

12 V terminals

TerminalBoardConnect to
12V IN + and −HostA 12 V DC supply
12V OUT + and −Host12V IN of the remote, plus to plus
12V IN + and −Remote12V OUT of the host

The positions of plus and minus differ between 12V OUT and 12V IN: read the printed signs at each terminal.

Solder links

All links are on the back. Open a closed link by cutting the copper between its two pads; close an open one with a blob of solder.

LinkBoardAs deliveredWhat it does
JP1, JP2BothClosedThe 3.3 kΩ pull-ups on SDA and SCL
JP8, JP9HostClosedPass SDA and SCL to the CHAIN socket
JP11HostClosedThe link runs only while 12 V is present at the host
JP7HostOpenLets socket contact 3 switch the link instead. Open JP11 first
SJ2HostClosedConnects the protected 12 V to 12V OUT
SJ1BothOpenJoins the cable shield directly to ground
SJF1, SJF2, SJF3BothClosedFAULT, OVER V and REVERSE lights
JP10BothClosed12V light on the host, 3V3 light on the remote
JP12BothClosed5V light

What you need

One host and one remote boardThe two are different; a pair is needed.
A controller with an I2C socketOn the Smoothieboard V2 Prime, G_B or G_G.
Ten-pin 1.27 mm ribbon cablesOne to the host, one for each board at the remote.
A straight-through Cat5e cableOr better. Keep it as short as the machine allows.
A 12 V DC supply and wireTwo wires to the host and two from the host to the remote.
A multimeterTo check the polarity before switching on.
Your own driverThe firmware has no module that reads or writes I2C devices.

Get started

Wiring: a ribbon cable from controller socket G_G to host I IN, 12 volts into the host, two wires from the host 12 V output to the remote 12 V input, a straight Cat5e cable between the two link jacks, and a sensor board on remote OUT A.Smoothieboard V2 Prime, socket G_G12 V supplyHostRemoteCat5e cable, straight through12 V leadYour I2C board, on OUT A
The minimum wiring: plus to plus and minus to minus on both power runs, one straight Cat5e cable, one ribbon cable at each end. The supply is a typical unit; follow the printing on yours.
  1. Switch the machine off

    Do all wiring with power off.

  2. Wire the 12 V

    Supply plus and minus to host 12V IN. Host 12V OUT plus to remote 12V IN plus, minus to minus.

    A multimeter on the loose wires shows the right polarity before they go into the terminals.

  3. Connect the link cable

    Plug the straight-through Cat5e cable into both link jacks.

  4. Connect the controller

    Ribbon cable from socket G_G or G_B to host I IN.

  5. Switch on with nothing on the remote

    Look at both boards.

    Host: 12V and 5V lights on. Remote: 3V3 and 5V lights on. No FAULT, OVER V or REVERSE light.

  6. Add your board

    Switch off, connect your I2C board to OUT A, OUT B or Qwiic, and switch on again.

    Your driver finds the device at its normal address.

Uses

The extender is transparent: a device at the far end keeps its address. Each example uses the host wiring shown above and needs your own driver.

A sensor on a moving part

Put a 9-axis IMU or any other I2C sensor board on the gantry or toolhead, as in the wiring figure. Keep the clock at 100 kHz at first and raise it only when it works.

An operator panel away from the controller

A character LCD (address 0x27 as delivered) and a 16-key keypad (set it to 0x20) share the remote bus. The LCD takes both 5 V and 3.3 V from its socket; its estimated backlight current of about 80 mA is most of the 100 mA allowed for 5 V, and both boards are limited to 100 kHz. A keypad is never an emergency stop.

A remote operator panel: the character LCD board on remote OUT A and the 16-key keypad on remote OUT B.Character LCD, address 0x2716-key keypad, address 0x20Remote (12 V and Cat5e as above)
A remote operator panel: both boards share the bus and answer at different addresses.

Two identical sensors

Two 3-axis accelerometers, one left at 0x18 and one with JP4 closed for 0x19, measure vibration at two places of the same machine. Open the pull-up links on the added boards so that the remote keeps one set.

Two accelerometer boards on the remote, one at address 0x18 and one at 0x19.Accelerometer, 0x18Accelerometer, 0x19 (JP4 closed)Remote (12 V and Cat5e as above)
Two identical sensors need different addresses: close the address link on one of them.

Configuration

The boards have nothing to configure in the firmware and use no pin other than SDA and SCL (plus contact 3 if you move the enable function to it with JP7). Smoothieware has no module for I2C devices, so there is no configuration block to paste.

You wantWhat to setWhere
Talk to a far deviceIts normal addressYour driver
A longer cableA lower I2C clockYour driver
Switch the link off from the controllerOpen JP11, close JP7, drive contact 3 low to disableHost solder links
Use pull-ups elsewhereOpen JP1 and JP2The board concerned

How it works

Signal path: controller, host buffer, two differential pairs in the cable, remote buffer, your boards. Both data and clock travel in both directions.ControllerSDA, SCL at 3.3 VHost PCA9615makes two pairsCat5e cableSCL 1-2, SDA 3 and 6Remote PCA9615makes SDA, SCLYour boards3.3 V I2C
Data and clock both travel in either direction; neither board needs an address or a setting.

An ordinary I2C bus is one wire for data and one for clock, each compared with ground. Noise and ground differences along a long cable upset it. The PCA9615 sends each signal as the voltage difference between two twisted wires, and the receiver at the other end only looks at that difference. Both signals stay bidirectional, so devices can answer and can slow the clock down.

Resistors on both boards (604, 120 and 604 Ω) end the cable and hold an idle line in its resting state, including when the cable is unplugged.

The I2C sides of the buffer pull a low signal down to about 0.47 to 0.6 V rather than to zero, and treat only signals below 0.4 V as a new low. This is how the chip knows which side started a signal. Normal I2C devices are unaffected; a second buffer that does the same thing must not be placed in series.

The host buffer is enabled only while 12 V is present at the host, so with the supply off the controller’s own bus is left alone. This does not cover a remote that loses power on its own: see troubleshooting.

Compare the extender boards

Five board pairs carry signals over a distance. Pick by what you need to carry.

Differential signal Differential I2C Differential SPI Differential STEP/DIR/EN Long-distance
Specifications
CarriesOne logic signalOne I2C busOne SPI peripheralSTEP, DIR and ENABLE of one axisThree one-way logic signals
TransceiversTHVD1451PCA9615 differential I2C bufferTHVD1451, four channelsTHVD1451, three channelsTHVD1451, three channels
Far-end power5 V on the same cableSeparate 12 V leadSeparate 12 V leadNot carried to a motor drive; see the board’s supply warning5 V on the same cable
Features
Signals return from the far endBoth I2C linesSPI data (MISO)
Made for a common-anode stepper drive inputLeadshine DM556E

Chaining

The host has a second socket, CHAIN, that carries the controller’s socket on to a further board close to the controller. All contacts go straight through; SDA and SCL pass through the links JP8 and JP9, which you cut to give the chained board neither signal. A board on CHAIN shares the I2C bus, so it needs an address that no far device uses, and a pin used by one board is not free for the next. The remote does not chain: its two sockets are in parallel.

Chaining: controller socket G_G to host I IN, and host CHAIN to an accelerometer board mounted near the controller.Smoothieboard V2 Prime, socket G_GHost, I IN to CHAINSecond, local board
One controller socket serves the far end and a local board. Each contact leaves CHAIN on the same number; the table gives the two with links.
Arrives on I INLeaves on CHAINHow
Pins 1, 2 and 10 (power and ground)Pins 1, 2 and 10Direct
Pins 3 to 7Pins 3 to 7, same numbersDirect
Pin 8, SDAPin 8Link JP8, closed
Pin 9, SCLPin 9Link JP9, closed

Troubleshooting

What you seeWhat it meansWhat to do
No device answers at the remoteNo 12 V at the host, so the host buffer is switched offThe host 12V light must be on. Check the supply and polarity at 12V IN
No device answers, all power lights onA crossover cable swaps SDA and SCLUse a straight-through cable
No device answers, remote lights offThe 12 V lead is missing or reversed, or link SJ2 on the host is cutCheck plus to plus and minus to minus between the two 12 V terminals
Works with a short cable, errors with a long oneThe clock is too fast for the cableLower the I2C clock, for example to 100 kHz
Errors after adding several boards at the remoteEvery added board brought its own pull-up resistorsKeep one set of pull-ups on that side: open the pull-up links on the added boards, or JP1 and JP2 on the remote
One device answers wrongly or not at allTwo devices use the same addressChange the address link on one of them
The whole controller bus stops when the remote loses powerThe host is still powered and drives a dead far endPower both boards from the same switch
Bus stuck low with another I2C buffer in the pathTwo buffers that both shift the low level are in seriesRemove the other buffer, or use one without a raised low level
Red FAULT lightThe electronic fuse switched off: voltage too low or too high, overload or overheatingCheck the supply voltage and what the board is powering
Red OVER V lightSupply above about 13.8 VUse a 12 V supply
Red REVERSE lightPlus and minus swapped at 12V INSwap the two wires

If the remote alone loses power while the host stays powered, the cable is no longer held firmly in its resting state: the simulated idle voltage falls to 0.12 V, below the 0.2 V the receiver needs, and up to about 5 mA flows back into the dead board. The controller’s I2C bus may then be held low. Powering the remote from the host’s 12V OUT avoids this in normal use.

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

Downloads

Appendix: mounting dimensions

For drilling a mounting plate or designing an enclosure. Positions are hole centres, in millimetres, measured from the top-left corner with the board seen from the component side. The terminals and the link jack need room for wires and the plug on their side of the board.

Host board

Mounting drawing of the host board, component side: outline 60 by 60 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 60 60 0, 0 X Y 1 5.00, 5.00 2 55.00, 5.00 3 5.00, 55.00 4 55.00, 55.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 60 × 60 mm, corners rounded to a 1 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
15.005.003.2 mm, not platedMounting, M3 screw
255.005.003.2 mm, not platedMounting, M3 screw
35.0055.003.2 mm, not platedMounting, M3 screw
455.0055.003.2 mm, not platedMounting, M3 screw

Remote board

Mounting drawing of the remote board, component side: outline 60 by 60 millimetres with 4 mounting holes. Hole positions are listed in the table below. COMPONENT SIDE · millimetres 60 60 0, 0 X Y 1 5.00, 5.00 2 55.00, 5.00 3 5.00, 55.00 4 55.00, 55.00 Numbered rings are mounting holes. Positions are hole centres, X then Y, from the marked corner.
Board outline 60 × 60 mm, corners rounded to a 1 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
15.005.003.2 mm, not platedMounting, M3 screw
255.005.003.2 mm, not platedMounting, M3 screw
35.0055.003.2 mm, not platedMounting, M3 screw
455.0055.003.2 mm, not platedMounting, M3 screw

Appendix: electrical specifications

Each figure is a design, calculated, simulated or manufacturer’s datasheet value, as the last column says. A dash means no figure is given.

ParameterApplies toLowerNominalUpperBasis and conditions
Supply voltage at 12 V INBoth boards9.8 V to start12 V14.3 V cutoffSimulated thresholds; turns off again below 9.0 V
Overvoltage light thresholdBoth boards—13.8 V—Simulated
Input current limitEach board—0.5 A—Calculated; the host’s limit also covers everything it passes to the remote
Current from controller 5 VHost—70 mA91 mADatasheet, link driver supply
3.3 V for your boardsRemote——100 mADesign target
5 V for your boardsRemote——100 mADesign target
5 V switch current limitRemote155 mA178 mA207 mACalculated from the datasheet equations
I2C clockLink——1 MHzDatasheet, on 3 m of cable; longer cable needs a lower clock
I2C low output levelEach I2C side0.47 V—0.6 VDatasheet
I2C low input level requiredEach I2C side——0.4 VDatasheet
Receiver threshold, differentialLink—200 mV—Datasheet, with 30 mV hysteresis
Idle line voltage, differentialLink—0.45 V—Simulated, both boards powered or cable unplugged
Added delayEach direction—150 ns—Datasheet, approximate
Bus rise time with 3.3 kΩEach I2C side—280 ns at 100 pF839 ns at 300 pFSimulated; 400 kHz needs 300 ns or less, 100 kHz needs 1000 ns or less
Board sizeEach board—60 × 60 mm—Design

Component stress limits

These are limits of single parts, not operating conditions of the boards.

CircuitPin or device stressAbsolute limit
Link buffer, PCA9615Either supply, bus and enable pins−0.5 to 6 V
Electronic fuse, TPS26600Input pin−60 to 62 V
5 V converter, AP63205Input pin35 V continuous
3.3 V regulator, AP2112KInput pin6.5 V
5 V switch, TPS2553Input and output pins7 V

Appendix: simulation

A circuit simulation of the resistor networks, the supply thresholds and the bus rise time. It does not model the chips’ switching behaviour, the cable, noise or electrostatic discharge, and it is not a measurement of a board.

QuantitySimulatedLimitVerdict
Idle differential, both ends powered (receiver threshold 0.2 V)0.452 Vat least 0.2 VWithin
Idle differential, cable unplugged0.452 Vat least 0.2 VWithin
Idle differential at the powered end, unpowered rail held at ground0.12 Vat least 0.2 VOutside
Positive line voltage, unpowered rail held at ground (datasheet "connected" test needs above 0.5 V)0.693 V——
Negative line voltage, unpowered rail held at ground (needs below 4.5 V)0.573 V——
Voltage fed back onto the unpowered 5 V rail, unpowered rail held at ground0.00523 V——
Current fed back through the pair, unpowered rail held at ground5.23 mAat most 10 mAWithin
Idle differential at the powered end, unpowered rail loaded by 1 kohm0.271 Vat least 0.2 VWithin
Positive line voltage, unpowered rail loaded by 1 kohm (datasheet "connected" test needs above 0.5 V)1.63 V——
Negative line voltage, unpowered rail loaded by 1 kohm (needs below 4.5 V)1.36 V——
Voltage fed back onto the unpowered 5 V rail, unpowered rail loaded by 1 kohm1.06 V——
Current fed back through the pair, unpowered rail loaded by 1 kohm1.06 mAat most 10 mAWithin
Idle differential at the powered end, unpowered rail loaded by 100 kohm0.31 Vat least 0.2 VWithin
Positive line voltage, unpowered rail loaded by 100 kohm (datasheet "connected" test needs above 0.5 V)1.87 V——
Negative line voltage, unpowered rail loaded by 100 kohm (needs below 4.5 V)1.56 V——
Voltage fed back onto the unpowered 5 V rail, unpowered rail loaded by 100 kohm1.86 V——
Current fed back through the pair, unpowered rail loaded by 100 kohm0.0186 mAat most 10 mAWithin
Host buffer enable pin at the lowest running 12 V rail (needs 2.31 V)2.77 V2.31 to 5.5 VWithin
Host buffer enable pin at the overvoltage cutoff (limit 5.5 V)4.48 V2.31 to 5.5 VWithin
Host buffer enable pin with no 12 V (needs below 0.99 V)0.318 Vat most 0.99 VWithin
Input turn-on voltage9.76 V9.4 to 10.2 VWithin
Input turn-off voltage9.02 V8.6 to 9.4 VWithin
Input overvoltage cutoff14.3 V13.8 to 14.8 VWithin
Overvoltage lamp threshold13.8 V13.4 to 14.2 VWithin
I2C rise time at 100 pF (400 kHz limit 300 ns)280 nsat most 300 nsWithin
I2C rise time at 300 pF (100 kHz limit 1000 ns)839 nsat most 1000 nsWithin

Appendix: datasheets

First page of the datasheet: PCA9615 multipoint differential I2C-bus buffer
PCA9615 multipoint differential I2C-bus buffer — NXP Semiconductors, 30 pages.
First page of the datasheet: TPS2660x 60 V eFuse with reverse polarity protection
TPS2660x 60 V eFuse with reverse polarity protection — Texas Instruments, 55 pages.
First page of the datasheet: TPS255x precision adjustable current-limited power switches
TPS255x precision adjustable current-limited power switches — Texas Instruments, 46 pages.
First page of the datasheet: AP63205 synchronous buck converter
AP63205 synchronous buck converter — Diodes Incorporated, 18 pages.
First page of the datasheet: AP2112 600 mA CMOS LDO regulator
AP2112 600 mA CMOS LDO regulator — Diodes Incorporated, 18 pages.
First page of the datasheet: TPD4E1U06 four-channel ESD protection array
TPD4E1U06 four-channel ESD protection array — Texas Instruments, 27 pages.

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.