Wiring & Connectors
Harness design, crimp connectors, cable management, and panel wiring best practices for home cockpit builds.
Cockpit panels mix signal wires (carrying only milliamps) and power wires (carrying several amps to servos and motors). Using the same wire gauge for everything leads to either wasted space or overheating. Match the gauge to the current.
| Gauge (AWG) | Max current | Use in cockpit build |
|---|---|---|
| 28 AWG | 0.5 A | GPIO signals, I²C/SPI bus, switch inputs — short runs only |
| 26 AWG | 1 A | General signal wiring, LED runs, encoder wires |
| 24 AWG | 2 A | Single servo power, annunciator LED banks |
| 22 AWG | 3 A | Multi-servo rail, stepper motor coil wires |
| 20 AWG | 5 A | Main 5 V power distribution to a panel |
| 18 AWG | 10 A | PSU output leads, main 12 V motor supply trunk |
Crimp connectors are the professional way to terminate wires on a cockpit panel. Unlike soldered connections, crimps are removable — panels can be unplugged and swapped without touching a soldering iron. A proper crimp is also more reliable than solder under vibration.
Connector families used in cockpit builds
| Connector | Pitch | Current rating | Best for |
|---|---|---|---|
| Dupont / jumper (2.54 mm) | 2.54 mm | 1 A per pin | Development, GPIO headers, breadboard connections |
| JST-XH (2.54 mm) | 2.54 mm | 3 A per pin | Servo extensions, battery connections, LED harnesses |
| JST-PH (2.0 mm) | 2.0 mm | 2 A per pin | Compact sensor connections, display power |
| Molex KK (2.54 mm) | 2.54 mm | 3 A per pin | Panel edge connectors, fan-out harnesses |
| XT30 / XT60 | — | 30 / 60 A | Main power entry from PSU to panel bus bar |
| Spade / Faston (6.3 mm) | — | 15 A | GND bus bar connections, relay terminals |
Crimping steps
| Step | Detail |
|---|---|
| 1. Strip | Remove 2–3 mm of insulation — no more. Over-stripping leaves bare wire exposed outside the barrel |
| 2. Insert | Push wire into the terminal so strands fill the wire barrel and insulation sits just inside it |
| 3. Crimp | Use a ratchet crimp tool matched to the terminal size — never pliers. The ratchet ensures full compression every time |
| 4. Tug test | Pull the wire firmly. A good crimp does not slip. If it does, cut and re-crimp |
| 5. Insert into housing | Push until the locking tab clicks. Tug again to confirm it is retained |
Every power supply and every component in a panel must share a single common ground reference. Without it, GPIO signal voltages have no return path and analog readings will be wrong. The cleanest implementation is a dedicated GND bus bar or terminal block that all negative terminals connect to.
A well-designed wiring harness makes the difference between a panel that is pleasant to work on and one that is a liability every time you open it. The goal is a harness that can be disconnected, set aside, and reconnected without any rewiring.
Harness construction tips
| Practice | Why it matters |
|---|---|
| Group wires by function with cable ties or spiral wrap | Keeps signal and power wires separated; reduces induced noise on signal lines |
| Leave a service loop at every connector | ~5 cm of slack lets you re-crimp a terminal without the wire becoming too short |
| Label every wire at both ends | Heat-shrink labels or P-touch tape on the wire near the connector saves hours of fault-finding |
| Route power and signal in separate looms | Prevents power switching noise from coupling into GPIO signal lines and causing false triggers |
| Secure harnesses to the frame with cable saddles | Prevents wires chafing on panel edges or catching on moving parts |
| Use a single connector per panel sub-assembly | The entire MCP or overhead panel can be removed by unplugging one or two connectors |
Recommended materials
| Material | Use |
|---|---|
| PET expandable braided sleeving | Main harness trunk — neat appearance, protects against abrasion |
| Spiral wrap (split loom) | Flexible sections near hinges or removable panels where the harness needs to flex |
| Heat-shrink tubing (3:1 ratio) | Insulating solder joints, strain relief over crimp terminals, colour-coded wire ends |
| Cable ties (2.5 mm nylon) | Bundling wires at intervals; use flush-cut type inside panels to avoid sharp stubs |
| Adhesive cable saddles | Mounting harness runs to panel frame — prefer screw-mount saddles for vibration resistance |
Home cockpits run servo motors, stepper drivers, and LED PWM all within centimetres of ESP32 GPIO lines. Electrical noise from switching loads can cause false button triggers, unstable ADC readings, and Wi-Fi dropouts.
| Problem | Cause | Fix |
|---|---|---|
| False button presses | Servo switching noise on signal wires | Route signal and power looms separately; add 100 nF cap across button to GND |
| Unstable ADC readings | PSU ripple or shared GND resistance | 100 nF + 10 µF caps across ESP32 VIN/GND; dedicated GND wire to bus bar |
| Wi-Fi dropouts under motor load | Motor back-EMF spiking the 5 V rail | 1 000 µF cap on 5 V rail; flyback diode across any relay coil; separate motor supply |
| Stepper driver heat / missed steps | Voltage spike on VMOT at motor step | 100 µF electrolytic cap across VMOT/GND close to the A4988/DRV8825 |
| I²C bus errors | Long wire run, missing pull-ups, or ground noise | Keep I²C runs under 30 cm; use 4.7 kΩ pull-ups to 3.3 V; twist SDA/SCL pair |
Before powering up a newly wired panel for the first time, work through this list. Most wiring faults are caught here without any component damage.
| Check | How to verify |
|---|---|
| All GNDs joined on the common bus | Multimeter continuity between each GND terminal and the bus bar |
| No short between 5 V and GND | Multimeter resistance across 5 V rail and GND before connecting PSU — must be several kΩ or higher |
| No short between 12 V and 5 V or GND | Same resistance check on 12 V rail |
| Servo signal wires not swapped with VCC | Visually confirm wire colour order: signal (orange/yellow), VCC (red), GND (brown/black) |
| Electrolytic capacitors correctly polarised | Longer leg (or stripe) must face the positive terminal |
| ESP32 GPIO pins not connected to 5 V signals | All input signals must be 3.3 V max — use level shifter or voltage divider if unsure |
| A4988 VMOT capacitor fitted | 100 µF electrolytic across VMOT/GND, as close to the chip as possible |
| All crimp terminals pass tug test | Pull each wire firmly — none should slip from its terminal |
| Current draw at power-on is reasonable | Clip a multimeter in series with the PSU positive lead and observe current while powering on — a short shows immediately |