Wiring, connectors and PCBs
UAT 203 Electrical and Electronic Systems for UAS
Lesson
By the end of this module you will be able to
- Choose wire sizes from resistance, voltage drop and heating
- Choose connectors by the current ratings in the manufacturer's datasheet
- Estimate PCB trace widths and use KiCad ERC and DRC
- Lay out high-current wiring and devices to reduce compass interference
- Size a fuse from load current, voltage, temperature and inrush $I^2t$, and choose reverse-polarity protection
- Inspect the whole aircraft's electrical system before and after flight and read the flight log for rising resistance
Why this matters
Wires and connectors are the most frequent failure points of a drone’s electrical system. Undersized wires heat up and drop voltage; loose or under-rated connectors get hot enough to melt their plastic; and high-current wires near the compass make the drone misjudge its heading and circle. These details look small, but they decide whether a well-designed system actually works.
Choosing wire size
The resistance of copper wire at 20 °C from NBS Handbook 100 (annealed copper wire tables) is, for example, 3.277 Ω/km for 10 AWG, 5.21 Ω/km for 12 AWG, 8.28 Ω/km for 14 AWG and 13.2 Ω/km for 16 AWG. The lower the AWG number, the larger the wire. In a DC circuit, count the length of both the positive and negative wires.
Example 1 The battery lead at maximum current
The lead from battery to PDB is 0.3 m long (0.6 m there and back), the maximum current is 80 A, and the voltage drop should not exceed 1% of 22.2 V.
ohm_per_km = {10: 3.277, 12: 5.21, 14: 8.28, 16: 13.2} # NBS Handbook 100, copper at 20 °C
amps, length_m, limit_v = 80, 0.6, 0.01 * 22.2
for awg, r_km in ohm_per_km.items():
r = r_km * length_m / 1000
drop, heat = amps * r, amps ** 2 * r
verdict = "ok" if drop <= limit_v else "too small"
print(f"{awg} AWG: {r * 1000:.2f} mΩ, drop {drop:.3f} V, heat {heat:.1f} W -> {verdict}")
10 AWG: 1.97 mΩ, drop 0.157 V, heat 12.6 W -> ok
12 AWG: 3.13 mΩ, drop 0.250 V, heat 20.0 W -> too small
14 AWG: 4.97 mΩ, drop 0.397 V, heat 31.8 W -> too small
16 AWG: 7.92 mΩ, drop 0.634 V, heat 50.7 W -> too small
Only 10 AWG meets the 1% limit (0.222 V). A 16 AWG lead would dissipate about 51 W at maximum current, which is dangerous. Copper resistance rises as it heats, so real values in use are slightly worse.
Connectors
A connector’s current rating must come from the manufacturer’s datasheet, not the number in the model name or the advertising. Amass’s datasheets, for example, rate the XT60H-M (2025 edition) at 35 A with 12 AWG wire, and the XT90H-M at 45 A (90 A momentary) with 10 AWG. The “90” in XT90 is therefore not a continuous current. A survey drone with a peak near 100 A needs connectors rated for it, or its peak current limited below the rating.
PCB traces
Distribution boards and add-on boards use copper traces instead of wires. The IPC-2221 formula used by PCB makers’ calculators is , where is the cross-section (square mils), the temperature rise (°C) and for outer layers. IPC-2152 (2009) is the dedicated standard for trace current capacity and should be used for real work.
k, delta_t, amps = 0.048, 10, 5 # outer layer, °C, A
area_mil2 = (amps / (k * delta_t ** 0.44)) ** (1 / 0.725)
thickness_mil = 1.378 # 1 oz/ft² copper
width_mil = area_mil2 / thickness_mil
print(f"{amps} A, +{delta_t} °C: area {area_mil2:.0f} mil², width {width_mil:.0f} mil = {width_mil * 0.0254:.2f} mm")
5 A, +10 °C: area 150 mil², width 109 mil = 2.77 mm
In KiCad (version 10, GPL licence), ERC checks the schematic, for example for unconnected power pins, and DRC checks the board, for example for traces narrower than the rules or too close together. Set the width rule for power nets to match the calculation.
Reducing compass interference
High current in wires creates magnetic fields that disturb the compass. Keep high-current leads as short as possible, run positive and negative together so their fields cancel, and mount the compass on a mast away from the PDB and battery. ArduPilot’s CompassMot procedure measures interference from motors and power wires: under 30% is acceptable, 31–60% is a grey zone, and above 60% the unit should be moved or an external compass used.
Grounding, interference and protection
Ground is a circuit’s zero-voltage reference. If a large motor current flows through the same stretch of ground wire that an analogue sensor uses as its reference, the voltage drop in that wire shifts the reading. Horowitz and Hill recommend a star ground, where high-current and small-signal returns meet at a single point.
Electromagnetic interference (EMI) is reduced by shrinking loop areas (twisting positive and negative wires together), separating power wiring from signal wiring, and fitting ferrites on cables that leave the enclosure. The protection to include is a fuse or breaker on the main lead, reverse-polarity protection, and surge protection on equipment supply lines; the next section shows how to size them.
Example 2 Offset from a shared ground
I_ESC = 20.0 # A, motor current in the shared ground wire
R_SHARED = 5e-3 # Ω, shared section of ground wire
VREF, BITS = 3.3, 12 # ADC reading an analogue sensor
offset = I_ESC * R_SHARED
print(f"ground offset {offset * 1000:.0f} mV = {offset / VREF:.1%} of full scale = {offset / (VREF / 2 ** BITS):.0f} ADC counts")
print(f"star ground (no shared motor current): offset {0 * 1000:.0f} mV")
ground offset 100 mV = 3.0% of full scale = 124 ADC counts
star ground (no shared motor current): offset 0 mV
20 A through only 5 mΩ of ground wire shifts the reading by 3% of full scale, and the shift follows the throttle, so the sensor appears to pick up noise in flight. A star ground removes the cause more directly than filtering in software.
Sizing fuses and protection circuits
A fuse is a thin metal element that melts and opens the circuit when too much current flows for too long. Its job is to protect the wire and what is downstream, not to protect the device from its own normal load. FAA advisory circular AC 43.13-1B (paragraphs 11-47 and 11-48) states that every wire needs some form of circuit protection placed as close as possible to the power source, and that the protector must open before the current rating of the wire, or the total rating of the loads it feeds, is exceeded, whichever is lower. The same circular’s DC protector chart (Table 11-3) suggests, for example, a 5 A fuse for 20 AWG wire and 30 A for 10 AWG under its stated conditions.
The Littelfuse Fuseology Design Guide adds the rules for choosing the rating itself:
- Current rating: ratings are measured at 25 °C, and a fuse loaded to no more than 75% of its rating should last indefinitely; a hot environment needs further rerating from the temperature curve in the fuse’s datasheet
- Voltage rating: must be at least the highest circuit voltage (25.2 V for a full 6S pack), and the rating must be for DC
- Pulses: a converter’s input capacitor draws a brief inrush current at switch-on. The pulse energy, expressed as (A²s), should be no more than about 20% of the fuse’s nominal melting , or the fuse slowly weakens and opens for no clear reason
- Interrupting rating: the fuse must safely break the largest short-circuit current the battery can deliver
Reverse-polarity protection stops damage if a battery or supply is connected backwards. TI application note SLVA139 compares a series diode, which is simple but wastes its forward voltage, with a MOSFET in the supply path, whose loss is only .
On a multirotor the main battery line is a special case: if a main fuse opens in flight, every motor stops. Where a main fuse is used, its rating must sit well above the peak current of module 1 (about 101 A) so that it opens only on a short circuit, and the team records that decision in its risk assessment. Small branches, such as the 12 V camera and gimbal supply, are where fuses are most useful: a short in a payload cable then blows a small fuse instead of melting a thin wire or pulling down the whole power system.
Example 3 A fuse for the 12 V camera and gimbal branch
The branch feeds the 12 V BEC, which supplies 14 W at 85% efficiency (module 1). The branch wire is 20 AWG. The temperature factor, inrush pulse and component values are assumed for practice; real values come from the datasheets.
P_OUT, ETA = 14.0, 0.85 # 12 V rail load (W) and BEC efficiency, from module 1
V_MIN = 6 * 3.3 # V, a nearly empty 6S pack (assumed lower limit)
DERATE, TEMP_FACTOR = 0.75, 0.90 # 75% loading rule; rerating in a hot fuselage (assumed from the curve)
STANDARD = [0.5, 0.75, 1.0, 1.25, 1.5, 2.0, 2.5, 3.0] # A, catalogue ratings (assumed series)
i_run = P_OUT / ETA / V_MIN
i_min = i_run / (DERATE * TEMP_FACTOR)
rating = min(r for r in STANDARD if r >= i_min)
print(f"branch current {i_run:.2f} A -> fuse rating at least {i_min:.2f} A -> choose {rating} A, 32 V DC")
ip, tau = 15.0, 50e-6 # inrush peak (A) and decay time constant (s) of the BEC input capacitor (assumed)
pulse_i2t = ip ** 2 * tau / 2 # exponential pulse
print(f"inrush I²t {pulse_i2t:.4f} A²s -> fuse nominal melting I²t must be at least {pulse_i2t / 0.2:.3f} A²s")
VF, RDS = 0.45, 0.030 # Schottky forward drop (V), P-MOSFET on-resistance (Ω), assumed
print(f"reverse-polarity loss: Schottky diode {VF * i_run:.2f} W, P-MOSFET {i_run ** 2 * RDS * 1000:.0f} mW")
branch current 0.83 A -> fuse rating at least 1.23 A -> choose 1.25 A, 32 V DC
inrush I²t 0.0056 A²s -> fuse nominal melting I²t must be at least 0.028 A²s
reverse-polarity loss: Schottky diode 0.37 W, P-MOSFET 21 mW
The current is taken at the lowest battery voltage, because a converter draws more current as its input voltage falls. A 1.25 A, 32 V DC fuse passes all three checks, provided its datasheet gives a nominal melting of at least 0.028 A²s. It is also far below the 5 A that AC 43.13-1B suggests for 20 AWG wire, so it opens long before the wire overheats. For reverse-polarity protection, the MOSFET wastes about one eighteenth of the diode’s loss, which matters little at 0.8 A but a great deal on higher-current branches.
Inspecting the electrical system before and after flight
Most electrical faults give a warning before they cause a crash: a warm connector, a chafed wire, a swollen pack or a voltage that sags more than last month. A written inspection catches them. In Thailand, CAAT’s model operations manual (CAAT-GM-UAS-001, section 10.10 and Appendix F) has the remote pilot complete a pre-flight checklist, which includes batteries charged to at least 85%, all parts and payloads securely fitted, and motors, camera and gimbal working; it forbids flying if any item is not ready and has a post-flight part that checks the battery is not swollen or hot and the motors and the remote control device are at normal temperature. In the United States, 14 CFR § 107.49 likewise requires the remote pilot to ensure before flight that the control links work and that there is enough power for the intended flight. AC 43.13-1B (paragraph 11-96) lists what to look for in aircraft wiring and cautions that all electrical power should be switched off before inspecting the electrical system. ArduPilot’s pre-arm checks then test the powered system and refuse to arm, for example, if the board voltage is outside 4.3–5.8 V or the battery is below its arming voltage or failsafe levels.
| When | Check | Why |
|---|---|---|
| Before flight, power off | Connectors fully seated and locked, no discoloured or melted plastic; wires secured, not chafing on frame edges or near propellers; solder joints and heat-shrink intact | loose or damaged joints have high resistance and heat up |
| Before flight, power off | Battery not swollen, dented or punctured; balance lead intact; cell voltages balanced | a damaged lithium pack can catch fire |
| Before flight, power on | Pre-arm checks pass (board voltage, battery, compass, GNSS); battery voltage and remaining capacity shown correctly; failsafe settings as planned; control link and telemetry working | the autopilot checks what a person cannot see |
| After flight, battery disconnected | Feel or use an infrared thermometer on connectors, ESCs, the PDB and the battery; one part much hotter than the others points to a fault | heat is the first sign of rising resistance |
| After flight | Record cell voltages and the charge put back; download the log and read voltage, current and sag | trends show ageing packs and failing joints |
| Periodically | Measure pack internal resistance (module 2), check CAN termination (module 3), repeat CompassMot after wiring changes | slow changes are only visible against a baseline |
Example 4 Reading the log after a flight
The log shows 23.60 V at 25 A in hover and 22.55 V at 60 A in a climb a few seconds later (values assumed). Over such a short time the battery’s open-circuit voltage hardly changes, so the extra drop comes from the resistance of the whole path: battery, leads and connectors. The same check when the drone entered service gave 21 mΩ.
hover = (25.0, 23.60) # (A, V) from the flight log
climb = (60.0, 22.55) # a few seconds later
R_BASELINE = 0.021 # Ω, same check on the day the drone entered service (assumed)
r_path = (hover[1] - climb[1]) / (climb[0] - hover[0])
print(f"battery + wiring resistance {r_path * 1000:.0f} mΩ, baseline {R_BASELINE * 1000:.0f} mΩ, "
f"change {r_path / R_BASELINE - 1:+.0%}")
for label, r_contact in (("good connector", 0.0005), ("worn connector", 0.005)): # Ω, assumed
print(f"{label}: {climb[0] ** 2 * r_contact:.1f} W of heat in the contact during the climb")
battery + wiring resistance 30 mΩ, baseline 21 mΩ, change +43%
good connector: 1.8 W of heat in the contact during the climb
worn connector: 18.0 W of heat in the contact during the climb
The path resistance has risen by 43%. The next step is to find where: measure the pack’s internal resistance on the charger (module 2). If the pack matches its record, the extra resistance is in the leads or connectors, and a worn connector that turns 18 W into heat in a tiny contact is exactly what the post-flight temperature check should find. Replace it before the next flight and record the fix.
Module lab
Lab: wiring harness and distribution board
- Measure the training drone’s battery and ESC lead lengths and check the wire sizes used with the code in Example 1.
- Read the datasheet of every connector on the training drone and compare its rating with the peak current from module 1.
- Practise soldering XT60 connectors to wire of the specified size under the instructor’s supervision, then check strength and insulation.
- Draw the schematic and board of a small distribution board in KiCad, set trace widths to the calculation, and pass ERC and DRC.
- In SITL or on a real drone (as the instructor directs), study the CompassMot procedure and record the result.
Common mistakes
Watch out
- Counting only one wire’s length, forgetting the return
- Trusting the number in a connector’s name instead of its datasheet rating
- Cold solder joints, leaving loose connectors with high resistance and heat
- Mounting the compass near the PDB or battery leads
- Skipping ERC and DRC before ordering boards
- Choosing a fuse exactly at the running current, or one rated for AC only, so it blows at switch-on or cannot break a DC fault
- Inspecting with the battery connected, or skipping the post-flight temperature check and log review
Summary
- Choose wire size from resistance per length, voltage drop and heat, counting both directions
- Connector ratings must come from the manufacturer’s datasheet
- Estimate traces with the IPC-2221 formula, check against IPC-2152, and verify designs with ERC and DRC
- High-current leads should be short, run together and away from the compass; CompassMot under 30% is acceptable
- Use a star ground, small loop areas, separate power and signal wiring, and include a fuse and reverse-polarity protection
- A fuse protects the wire: load it to at most 75% of its rating after temperature rerating, rate it for DC above 25.2 V, and check inrush
- Inspect power-off before flight, let the pre-arm checks test the powered system, and after flight check temperatures and read the log for rising resistance
Check your understanding
- What is the resistance of 12 AWG wire 1 m long in total?
- That wire carries 40 A. What are the voltage drop and heat?
- A branch draws 1.5 A at room temperature. Using the 75% loading rule, what is the smallest fuse rating, and what voltage rating does it need on a 6S drone?
- Which KiCad check finds traces that are too close together?
- What should you do if CompassMot shows 70%?
Answers
- mΩ
- V and W
- A, rated for DC at no less than 25.2 V (for example 32 V DC)
- DRC (design rules check)
- Above 60%, move the flight controller or compass, or use an external compass away from high-current wiring
Key formulas
| Wire resistance | |
| Wire voltage drop and loss | |
| IPC-2221 trace estimate | |
| Offset from a shared ground | |
| Minimum fuse rating | |
| Path resistance from two log points |
Key references
- National Bureau of Standards. (1966). Copper wire tables (Handbook 100). link
- Amass. XT60H-M connector specification (2025V0). link
- Amass. XT90H-M connector specification (V1.2). link
- IPC. (2009). Standard for determining current carrying capacity in printed board design (IPC-2152). link
- KiCad Developers. KiCad EDA (version 10). link
- ArduPilot Dev Team. Advanced compass setup (CompassMot). ArduPilot Copter documentation. link
- Horowitz, P., & Hill, W. (2015). The art of electronics (3rd ed.). Cambridge University Press.
- Federal Aviation Administration. (1998). Acceptable methods, techniques, and practices: Aircraft inspection and repair (AC 43.13-1B, with Change 1). link
- Littelfuse. (2022). Fuseology design guide: A guide to selecting the right fuse for your application. link
- Falin, J. (2003). Reverse current/battery protection circuits (Application Report SLVA139). Texas Instruments. link
- สำนักงานการบินพลเรือนแห่งประเทศไทย. (2565). รูปแบบคู่มือปฏิบัติการบินของอากาศยานซึ่งไม่มีนักบิน (CAAT-GM-UAS-001, Issue 01 Rev 00). link
- 14 CFR § 107.49 – Preflight familiarization, inspection, and actions for aircraft operation. (Legal Information Institute, Cornell Law School). link
- ArduPilot Dev Team. Pre-arm safety checks. ArduPilot Copter documentation. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results