Skip to the content
2 layers51.5 × 66.5 mmWireTester, the printed circuit board in 3D

A device to quickly test cables on robots at the press of a button.

Size
51.5 × 66.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
19
Nets
40
Pads
102
Tracks, vias
195, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
17 Jul 2026
Updated
29 Jul 2026

Overview

WireTester is an open-source printed circuit board by maxconine, from the maxconine/Cable-Tester repository on GitHub. It is a 2-layer board of 51.5 × 66.5 mm with 19 parts on 40 nets, routed with 195 tracks and 0 vias.

Its parts include 8 resistors, 4 ICs, 1 diode and 1 switch. It belongs with the NXP (LPC, Kinetis, i.MX RT) boards of this library.

README

README.md

Cable Tester

Handheld continuity tester for 4-conductor power + CAN harnesses. A Teensy 4.0 on a custom PCB drives each conductor in turn, senses which lines light up at the far end, and reports opens, shorts, and miswires on an OLED with pass/fail tones. In Arm mode it also measures the resistance between the CAN conductors.

The four conductors are -, +, Low, and High (CAN Low / CAN High).

Assembled wire tester

Contents

Hardware

A Teensy 4.0 on a custom "Wire Tester" PCB, battery powered through a slide switch and a Schottky diode (so USB and battery can be connected at once), with a 128×64 I2C OLED, Test and Mode buttons, and a piezo buzzer. The whole thing lives in a 3D-printed enclosure with the buttons on a small perfboard behind the faceplate.

Pinout

FunctionPin(s)Notes
Drive outputs0, 1, 2, 3Through series resistors R1–R4 (1.5 kΩ)
Sense inputs14, 15, 16, 17A0–A3, with pull-downs R5–R8 (10 kΩ to GND)
Test button21To GND, internal pull-up (pressed = LOW)
Mode button22To GND, internal pull-up (pressed = LOW)
Piezo buzzer13Passive, to GND
OLED SDA / SCL18 / 19SSD1306 at I2C address 0x3C

Drive index n and sense index n are the two ends of the same conductor, in the order -, +, Low, High. A correctly wired harness therefore lights only the matching sense input.

The series resistors limit current into a shorted harness, and the pull-downs guarantee every sense line reads LOW unless it is actively driven through the cable. The sense pins double as analog inputs for the resistance measurement.

Connectors

The harness under test plugs into In1 at one end and Out1 / Out2 at the other. Out1 and Out2 are wired in parallel so either a connector or bare probe leads can be used. All three carry the same -, +, Low, High ordering.

PCB and schematic

KiCad sources, gerbers, drill files, and a STEP export live under WireTester/, with the probe board under WireTester/ProbeBoard/.

PCB layout Schematic

Building and uploading

  1. Install the Arduino IDE and Teensyduino.
  2. Install these libraries from the Library Manager:
    • Adafruit SSD1306
    • Adafruit GFX Library
  3. Select Teensy 4.0 as the board.
  4. Open CableTester.ino and upload.

Wire, analogReadResolution(), and analogWriteFrequency() come from the Teensy core, so no other dependencies are needed.

How it works

Every test is built from the same primitive: drive one conductor, read all four.

  1. Idle check. All drive pins are released to high-impedance inputs and the sense lines are read. Anything already HIGH means a stuck input or external voltage on the harness, reported as INPUT STUCK HIGH.
  2. Drive one conductor. The drive pin is switched to an output and pulled HIGH through its 1.5 kΩ resistor, then given time to settle.
  3. Sample. All four sense inputs are read seven times and majority-voted into a 4-bit mask (bit 0 = -, bit 1 = +, bit 2 = Low, bit 3 = High). Voting rejects noise on a marginal connection.
  4. Release. The drive pin goes back to an input before the next conductor is tested, so no two lines are ever driven at once during a continuity sweep.

Settle timing depends on the mode: 100 ms settle with a 50 ms release for the static tests, and 8 ms / 2 ms for the flex test so scans repeat quickly.

Fault classification

The mask for each driven conductor is compared against the single bit that should be set:

MaskMeaningShown as
Exactly the expected bitCorrectCounts toward a pass
0 — nothing sensedBroken conductor or bad crimp<wire> OPEN
More than one bitConductor touching others<wire> SHORT: <names>
One wrong bitLanded on the wrong pin<wire> -> <other>

In Cable mode, when two conductors each reach only the other, the pair is collapsed into a single swap line such as + <-> Low instead of two separate miswire lines.

Modes

The Mode button cycles Cable → Arm → 10 Sec, and each mode has its own confirmation chime. The selected mode is shown on the ready screen.

Cable

Strict one-to-one check for a bare harness. Every conductor must reach itself and nothing else; any extra or missing connection fails.

Arm

Intended for a harness that is still attached to live arm electronics, where the CAN conductors are legitimately coupled through termination resistors. The continuity rules are the same as Cable mode with one exception: High reaching Low (or the reverse) is allowed instead of being flagged as a short. Every conductor must still reach itself.

After the continuity sweep the tester measures the resistance between the CAN conductors.

Resistance measurement

Beyond pass/fail continuity, the tester measures the resistance between the High and Low conductors — enough to tell a properly terminated CAN bus (~60 Ω, or ~120 Ω single-terminated) from a dead short or a missing terminator.

It works as a voltage divider using the existing drive hardware:

  1. High is driven to 3.3 V and Low to GND, each through its 1.5 kΩ series resistor.
  2. Both sense lines are read on the ADC (10-bit, 16 samples averaged) to get the settled voltages at the two ends of the harness.
  3. The unknown resistance sits between the two series resistors, so it follows from the measured difference:
text
R = 2 × R_series × |dV| / (V_drive − |dV|)

where  R_series = 1500 Ω,  V_drive = 3.3 V,  dV = V_high − V_low

The result is classified before it is reported:

ConditionReported as
Both sense lines below 0.2 VOPEN — nothing connected
dV magnitude under 20 mVSHORT — ~0 Ω, wires touching
dV magnitude within 50 mV of full scaleOPEN — no path between the conductors
OtherwiseMeasured value in ohms

A passing Arm test shows the value on the OLED in large text with an Ω symbol, labelled CAN High-Low (or OPEN if no path was found). The reading is informational and does not by itself fail the test — the one exception is a hard short, which is treated as the two conductors touching and reported as High-Low SHORT. On a failing Arm test the measured resistance is appended below the fault lines when there is room.

10 Sec (flex)

Catches intermittent faults that a static test walks straight past. The tester runs fast continuity scans in a loop for ten seconds while you flex, wiggle, and tug the harness — especially at the strain reliefs and connector backshells.

While it runs, the screen counts down and shows whether continuity is still clean. Per conductor the tester tallies open, short, and miswire events separately, remembers the first fault mask it saw, and stops early on the first bad scan. A pass reports how many scans completed clean, which is a rough measure of how much of the harness got exercised.

The fault screen reports the dominant fault type per conductor, so a wire that mostly drops out reads OPEN even if it also glitched into a neighbour once.

Screens

ScreenWhenContents
ReadyIdleMode name, TESTER, and press test to begin
TestingDuring a static testTesting
Bend WireDuring the flex testCountdown in seconds, plus Continuity OK or GLITCH DETECTED
GoodPassLarge GOOD, plus mode detail: all wires correct, measured ohms, or scans completed
BadFailLarge BAD, plus up to four fault lines

The fault screen holds a maximum of four lines. INPUT STUCK HIGH and, in Arm mode, High-Low SHORT take priority over per-conductor faults. If a test fails but nothing could be attributed to a specific conductor, the screen reads UNKNOWN ERROR.

Results stay on screen until the next button press, and both buttons are ignored while a test is running.

Sounds

EventSound
Power onThree-note rising chime
Mode changeShort two- or three-note motif, different per mode
PassFour-note rising arpeggio, played at low duty cycle so it stays quiet
FailThree harsh alternating low/high buzzes

Serial diagnostics

Connect at 115200 baud for detail the small display cannot fit. Every test prints a per-conductor verdict — GOOD, OPEN / NO CONTINUITY, SHORTED - reaches ..., or MISWIRED - reaches ... — along with any unexpected HIGH inputs seen before the test.

Arm mode adds the raw ADC counts, both sense voltages, the computed dV, and the final resistance, which is useful for sanity-checking a marginal harness. The flex test adds per-conductor event counts (OPEN x3, SHORT x1 -> High), the first fault seen on each conductor, the number of clean scans, and the total fault count.

Configuration

The constants at the top of CableTester.ino cover most of what you would want to change:

ConstantDefaultPurpose
NUM_WIRES4Conductor count; drivePins, sensePins, and wireNames must match
wireNames-, +, Low, HighLabels used on screen and over serial
DRIVE_SERIES_OHMS1500.0Must match the fitted series resistors, or the resistance reading will be off
OLED_ADDRESS0x3CSome SSD1306 modules use 0x3D
BUTTON_PIN / MODE_BUTTON_PIN21 / 22Test and Mode buttons

Test durations and settle times are local constants: TEST_MS in runFlex10Test() sets the ten-second window, and testOneWire() / testOneWireFast() set the settle and release delays.

Troubleshooting

SymptomLikely cause
Blank screen, OLED initialization failed. on serialWrong I2C address or SDA/SCL not on 18/19; firmware halts here by design
INPUT STUCK HIGH before any testExternal voltage on the harness, a missing pull-down, or a sense line shorted to power
Everything reads OPENHarness not seated, or In1 and Out1/Out2 swapped end for end
Resistance reads OPEN on a known-good CAN busTermination resistor missing or too large for the 1.5 kΩ divider to resolve
Resistance reads far from expectedDRIVE_SERIES_OHMS does not match the resistors actually fitted
Flex test passes on an intermittent harnessNot enough movement; flex at the connector backshells and strain reliefs

Limitations

  • Resistance is measured only between High and Low. The + and - conductors are checked for continuity only.
  • The measurement targets the tens-of-ohms range of CAN termination. Accuracy falls off well above a few hundred ohms, since the divider uses 1.5 kΩ series resistors.
  • Continuity is a logic-level test, so a high-resistance joint that still pulls the sense line above the input threshold reads as good. The flex test is the practical way to find those.
  • The firmware is fully blocking: a test runs to completion before buttons are read again.

Future Improvements

  • Add more ports on the PCB for another button and buzzer.
  • Develop a better way to test round cables
  • Standard resistance measurements we expect when measuring the arm and write them down somewhere or get the device to tell you.
  • Put the micro usb port closer the the wall of the device to make plugging in the device easier

Parts

19
QtyValueFootprintReferences
410kRResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR5, R6, R7, R8
41kRResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1, R2, R3, R4
2~1_My_custom_library:Female_Header_pin_XT30 FIn1, Out1
2~1_My_custom_library:4holesOut2, U4
1D_SchottkyResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalD1
1SW_Push_Open1_My_custom_library:2holesSW1
1Teensy4.0DEV-15583:MODULE_DEV-15583U1
1~1_My_custom_library:RightSideArduinoU5
1~1_My_custom_library:slideSWU3
1~1_My_custom_library:2holesBATT1
1~1_My_custom_library:LeftSideArduinoU2

More from maxconine/Cable-Tester

2
  • 2 layers50.3 × 59.3 mmWireTesterV1, the printed circuit board in 3D

    WireTesterV1

    maxconine/Cable-Tester

    A device to quickly test cables on robots at the press of a button.

    19 parts
  • 2 layers15 × 15 mmProbeBoard, the printed circuit board in 3D

    ProbeBoard

    maxconine/Cable-Tester

    A device to quickly test cables on robots at the press of a button.

    2 parts

Similar boards

  • 2 layers43.9 × 27.7 mmTcd1304-4v, the printed circuit board in 3D

    Tcd1304-4v

    OpnTec/open-spectrometer-hardware

    Open source VIS spectrometer

    19 parts1.5k
  • 2 layers50 × 60 mmDebate Device, the printed circuit board in 3D

    Debate Device

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    19 parts915
  • 2 layers102.9 × 96.7 mmISA adapter, the printed circuit board in 3D

    ISA adapter

    polpo/picogus

    Emulation of ISA sound cards and CD-ROM on Raspberry Pi Pico (GUS, SB/Adlib, MPU-401, Tandy, CMS, Panasonic CD-ROM) with USB mouse/joystick support

    19 parts805
  • 2 layers60 × 39 mmPs2usb, the printed circuit board in 3D

    Ps2usb

    rasteri/HIDman

    Adapting USB devices to work on old computers

    19 parts432
  • 2 layers70.1 × 43.2 mmIaq device, the printed circuit board in 3D

    Iaq device

    nkitanov/iaq_board

    IAQ Board is a DIY (Do-It-Yourself) device for measuring internal air quality

    19 parts396
  • 2 layers80 × 80 mmGB BRK CPU G1, the printed circuit board in 3D

    GB BRK CPU G1

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    19 parts379CC-BY-4.0
  • 2 layers25.4 × 25.4 mmIna169, the printed circuit board in 3D

    Ina169

    Ardumower/ardumower

    Develop an open source robotic lawn mower (HW+SW reference platform)

    19 parts282
  • 2 layers58.4 × 28.6 mmNew rele, the printed circuit board in 3D

    New rele

    zmaker/arduino_cookbook

    gli sketch del nuovo progetto Arduino Cookbook e dei video di YouTube

    19 parts269

Questions

How big is the WireTester PCB?

It measures 51.5 × 66.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the WireTester use?

19 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the WireTester KiCad files?

From the maxconine/Cable-Tester repository on GitHub, at the commit this page was made from: the board is WireTester/WireTester.kicad_pcb and its schematic WireTester/ProbeBoard/ProbeBoard.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the WireTester design in my own project?

Its repository states no licence, so its author keeps all rights: ask maxconine before reusing the design.