All Engineering Guides (8)
Hardware & Actuators16 min read·2026-11-22·HUMANOIDS.ORG Engineering Desk

Inside a Humanoid's Nervous System: EtherCAT, CAN-FD, 1–20 kHz FOC Loops & 48V Power Distribution

Deterministic fieldbus math, Distributed Clocks synchronization, PREEMPT_RT kernel tuning, dual-encoder motor inverters, and touch-safe 13S/14S 48V power bus engineering.

Executive Engineering Summary

Even the most capable Vision-Language-Action model fails immediately if the underlying nervous system drops actuator frames, exhibits microsecond timing drift across leg joints, or suffers DC-bus voltage spikes during hard footstrikes. Inside a modern 28-to-40-DoF humanoid, two parallel infrastructures keep the machine standing and safe: a hard real-time deterministic control bus (EtherCAT or partitioned CAN-FD) synchronizing distributed 1–20 kHz Field-Oriented Control (FOC) joint drives, and a high-current nominal 48V DC power distribution network engineered for multi-kilowatt dynamic bursts while remaining below the 60V DC touch-safe ceiling. This manual details the exact protocol physics, OS tuning steps, FOC loop architecture, and electrical safety math.

Key Takeaways
  • Deterministic balance requires strictly isolating the 500–4,000 Hz whole-body control host (running PREEMPT_RT Linux) from asynchronous GPU neural inference so a stalled VLA forward pass can never cause a missed actuator cycle.
  • EtherCAT on 100BASE-TX (100 Mbps full-duplex, 80 ns per byte) processes frames on the fly across 30+ humanoid joints in under 250 µs and synchronizes all drives to <1 µs via hardware Distributed Clocks (SYNC0 interrupts) and standardized CiA 402 CSP/CSV/CST profiles.
  • CAN-FD (ISO 11898-1:2015) upgrades Classic CAN's 8-byte / 1 Mbps ceiling to 64-byte payloads at 5–8 Mbps data-phase rates—making partitioned 4-to-6-limb CAN-FD buses ideal for lightweight, compact, and open-source humanoids with smaller connector footprints.
  • Inside every actuator, an STM32G4, TI C2000, or FPGA inverter executes 10–20 kHz Field-Oriented Control (Clarke/Park d-q current regulation + SVPWM) paired with dual absolute encoders (rotor-side for commutation, output-side for zero-homing and deflection sensing).
  • Nominal 48V power buses dominate because a 13S Li-ion pack (46.8V nominal / 54.6V peak) remains comfortably under the IEC 62368-1 ES1 / SELV 60V DC touch-safe threshold—whereas 14S (50.4V nominal / 58.8V peak) leaves minimal compliance margin against charger tolerance and regenerative braking overshoot.
Section 01

1. Decoupling the Real-Time Spine from the Asynchronous AI Brain

A fundamental architectural rule separates reliable commercial humanoids (such as PAL TALOS, Agility Digit, Booster T1, NEURA 4NE-1, and NASA Valkyrie) from fragile laboratory prototypes: never run deterministic actuator communication inside the same operating-system thread or un-isolated scheduler domain as multi-camera deep-learning pipelines. GPU memory allocation, Python garbage collection, thermal throttling, or Wi-Fi network interrupts routinely introduce 5–50 ms latency spikes—which are benign for a 5–10 Hz System 2 VLM planner, marginally tolerable for a buffered 50 Hz System 1 action chunker, and instantly catastrophic for a 500–1,000 Hz whole-body impedance controller balancing 65 kg over two narrow feet.

Production nervous systems therefore split into two tightly linked compute planes communicating over zero-copy shared memory, PCIe, or dedicated Gigabit Ethernet: a high-throughput AI compute node (such as NVIDIA Jetson AGX Thor or AGX Orin running ROS 2 Jazzy + Zenoh and TensorRT models) and a hard real-time motion controller (either isolated PREEMPT_RT x86/Arm cores or a dedicated RTOS microcontroller) that executes state estimation, safety limit checking, and cyclic fieldbus exchange with every joint inverter, 6-axis ankle/wrist force-torque sensor, and torso IMU.

Section 02

2. EtherCAT vs. CAN-FD: Protocol Physics, Bandwidth & Sync Math

Two fieldbus standards dominate internal humanoid wiring: EtherCAT (Ethernet for Control Automation Technology) and CAN-FD (Controller Area Network with Flexible Data-Rate, standardized in ISO 11898-1:2015). Choosing between them hinges on total axis count, synchronization strictness, connector space inside narrow wrists and ankles, and drive ecosystem.

EtherCAT runs on standard 100BASE-TX physical Ethernet (100 Mbps full-duplex; 80 nanoseconds per byte on the wire). Rather than forcing every joint to receive, decode, and transmit separate Ethernet packets, a single IEEE 802.3 Ethernet frame travels daisy-chained through all slave ESC (EtherCAT Slave Controller) ASICs/FPGAs 'on the fly': each drive reads its target torque/position bytes and inserts its encoder/current status bytes in hardware nanoseconds as the frame passes. Even a 40-axis humanoid with 24 bytes of Process Data Object (PDO) exchange per joint transmits roughly 1,000 bytes total—under 100 µs of wire time—supporting clean 1 kHz to 4 kHz whole-body control cycles on a single cable ring (with native ring redundancy if a limb wire snaps). Most critically, EtherCAT Distributed Clocks (DC) elect the first slave as a 1 ns system reference clock, measure wire propagation delays at startup, and fire hardware SYNC0 interrupts simultaneously across all drives with <1 µs synchronization error regardless of minor host scheduling jitter. Drives standardize commands via CiA 402 Object Dictionary registers (Controlword 0x6040, Statusword 0x6041, Sync Manager 0x1C32) in Cyclic Synchronous Position (CSP), Velocity (CSV), or Torque (CST) modes.

CAN-FD preserves the tiny two-wire differential transceivers, simple MCU integration (no external magnetics or ESC chip), and ultra-compact JST/Molex connectors prized in lightweight QDD actuators and hands—while breaking Classic CAN's painful 1 Mbps / 8-byte bottleneck. CAN-FD arbitrates bus access at 1 Mbps and dynamically switches bit rate during the payload phase up to 5–8 Mbps with up to 64 bytes per frame. Because CAN-FD remains a shared broadcast bus rather than an on-the-fly ring, engineers partition a 30-DoF humanoid across 4 to 6 independent limb buses (e.g., left leg, right leg, left arm, right arm, torso/hands—5 to 8 actuators per bus). At 6 actuators per limb bus exchanging compact 16-byte command and status frames at 5 Mbps data phase, a 1 kHz closed-loop update utilizes well under 40% bus load with deterministic margin.

Engineering ParameterEtherCAT (100BASE-TX + DC)CAN-FD (ISO 11898-1:2015)Classic CAN 2.0B (Legacy)
Wire Bandwidth100 Mbps full-duplex (80 ns/byte)1 Mbps arbitration · 5–8 Mbps data phaseUp to 1 Mbps fixed
Payload EfficiencySingle on-the-fly frame (up to 1,486 B data)Up to 64 bytes per frame8 bytes max per frame
Typical Full-Body Rate1 – 4 kHz across 30–50+ axes on 1 bus500 Hz – 1 kHz (partitioned 5–8 axes/bus)200 – 500 Hz (4–6 axes/bus max)
Cross-Axis Sync Jitter<1 µs hardware Distributed Clocks (SYNC0)~50 – 250 µs (software sync frame)~100 – 500 µs (bus contention)
Slave Silicon & ConnectorsESC ASIC/FPGA + magnetics (4-wire shielded)Built into STM32G4 / TI C2000 (2-wire diff)Built into virtually all MCUs (2-wire diff)
Open-Source Master StackSOEM (userspace C) · IgH (Linux kernel mod)Linux SocketCAN (native kernel driver)Linux SocketCAN / MIT Cheetah protocol
Section 03

3. Hardening a Deterministic PREEMPT_RT Linux Motion Host

Deploying an open-source EtherCAT master—either SOEM (Simple Open EtherCAT Master, portable userspace C using ec_configdc and ec_sync software PLL alignment) or IgH EtherCAT Master (Linux kernel module with dedicated low-latency NIC drivers)—or high-rate SocketCAN requires rigorous operating-system and BIOS tuning. Out-of-the-box Ubuntu desktops regularly pause user threads for 2–15 milliseconds due to CPU power-saving sleep states, thermal frequency scaling, and System Management Interrupts (SMIs), instantly tripping drive watchdog faults.

To hit peak-to-peak master cycle jitter under 10–20 µs across 1 kHz to 4 kHz cycles (matching EtherCAT's <1 µs SYNC0 slave lock), engineers apply a disciplined real-time tuning checklist: boot a Linux kernel patched with PREEMPT_RT (or dual-kernel Xenomai for extreme sub-250 µs IgH loops); isolate dedicated CPU cores via kernel boot parameters (isolcpus, nohz_full, rcu_nocbs); pin the real-time fieldbus thread with SCHED_FIFO priority via pthread_setaffinity_np and mlockall() to prevent page faults; disable BIOS Hyper-Threading, Intel Turbo Boost, CPU C-states/P-states, and SMI triggers; and use dedicated industrial PCIe Ethernet controllers—specifically Intel I210/I211 (igb) or e1000e families—while strictly avoiding USB-to-Ethernet dongles and generic Realtek NICs whose interrupt moderation destroys determinism.

Section 04

4. Inside the Joint Drive: 10–20 kHz FOC & Dual Absolute Encoders

Every humanoid joint houses a compact circular PCB motor drive built around a real-time DSP or microcontroller (such as STMicroelectronics STM32G4, Texas Instruments C2000, or an FPGA, exemplified commercially by Elmo Motion, Synapticon, Maxon EPOS, and open-source ODrive/VESC lineages). At 10 to 20 kHz—every 50 to 100 microseconds—this local inverter samples two or three motor phase currents via inline shunt resistors or Hall current sensors, reads high-resolution rotor angle, executes Clarke and Park mathematical transforms into the rotating direct-quadrature (d-q) reference frame, runs independent PI current regulators (forcing flux-producing Id to zero and tracking torque-producing Iq), and drives a 3-phase silicon MOSFET or GaN FET inverter bridge via Space Vector PWM (SVPWM) at 20–40 kHz.

Why does high-bandwidth FOC matter to whole-body control? Because smooth torque regulation eliminates cogging ripple, enables active virtual damping during impacts, and ensures phase-current torque estimation stays linear across rapid velocity reversals. Modern humanoid joints increasingly pair two absolute encoders per actuator: a 14-to-18-bit magnetic or optical encoder on the fast motor rotor (providing noiseless electrical commutation angle and clean velocity differentiation) plus a secondary hollow-shaft inductive or magnetic absolute encoder directly on the slow output shaft after the gearbox. Dual encoders eliminate dangerous startup homing sweeps on boot—the robot knows its exact joint pose immediately upon power-on—and allow the controller to measure real-time flexspline windup or detect stripped gear teeth when rotor and output angles diverge.

Section 05

5. 48V Power Distribution, SELV Touch-Safety & Regenerative Braking

Virtually the entire humanoid industry—from Tesla Optimus, Figure 02, and Apptronik Apollo to K-Bot and Unitree platforms—centers its internal DC trunk bus around nominal 48V (spanning roughly 44V–58V in operation, with high-power industrial platforms occasionally reaching ~67V). The decisive driver is electrical safety regulation: under IEC 62368-1 (Energy Source Class 1, ES1) and classic SELV (Safety Extra-Low Voltage) product design guidelines, 60V DC represents the widely recognized dry touch-safe ceiling. Keeping the entire power bus strictly below 60V DC drastically simplifies CE/UL certification, removes mandatory high-voltage orange-harness interlocks, and lets factory technicians swap batteries safely without high-voltage PPE.

Matching lithium-ion cell series counts to the 60V ceiling requires careful battery math. A 13S NMC/NCA Li-ion pack (3.6V nominal / 4.2V full charge per cell) runs at 46.8V nominal and peaks at 54.6V—maintaining a comfortable 5.4V compliance buffer below 60V DC. A 14S ('52V') pack runs at 50.4V nominal and charges to 58.8V, sitting only 1.2V below the 60V boundary where charger voltage tolerance, measurement drift, or brief regenerative braking pulses can breach ES1/SELV limits. To supply instantaneous 3–6 kW squat, jump, or catch bursts on a 48V bus (60A–125A trunk current spikes), packs rely on ultra-low-impedance high-rate 21700 cells such as Molicel INR-21700-P45B/P50B (45A–60A continuous discharge rating).

Regenerative braking is the most frequently overlooked hazard in humanoid power design. When a 70 kg biped catches itself from a stumble or lowers a 15 kg box rapidly, leg and arm motors act as generators—pumping kilowatts of energy back onto the 48V DC bus. If the battery's smart BMS opens its charge FETs because the pack is at 100% state-of-charge or overcurrent-protected, that regenerated energy has nowhere to go: DC bus voltage spikes above 70–90V within milliseconds, instantaneously destroying 60V-rated MOSFET inverters across every joint simultaneously. Robust 48V distribution boards prevent this with three mandatory layers: distributed local DC-link electrolytic/ceramic bulk capacitance at every limb hub, an active voltage-clamping shunt braking resistor (activating at ~56–58V to burn excess regen kinetic energy safely as heat), and a solid-state eFuse/pre-charge circuit isolating logic DC-DC converters alongside shielded EMI/EMC chokes required to pass FCC Part 15 Class A (factory) and stricter Class B (home) radiated-emission limits.

  • →Size main torso power cabling and busbars for peak transient current (often 3–5× the 400–900W average draw) to prevent IR voltage droop from brown-outing distal limb drives during synchronized squats.
  • →Always include an automated pre-charge resistor circuit across the main battery contactor so inrush current into thousands of microfarads of distributed motor-drive capacitance does not weld contactor contacts closed.
  • →Design dual-tier E-stop architecture: Safe Torque Off (STO) cuts gate-drive PWM enable signals to all inverters within milliseconds without killing power to the onboard Jetson, cameras, and black-box MCAP fault logger.
Primary Technical & Institutional Sources (5)