图片展示

Detailed Design of Hardware Module for Rotational Motor Controller in Humanoid Robot Joint Module

Click: Time:2025-12-11 15:03:58

I. Hierarchical System Architecture Design

The rotation motor controller of the humanoid robot joint module is the core hardware unit for achieving high-precision joint motion. Its design must balance control accuracy, power driving capability, reliability, and modular integration. The system architecture can be divided into five layers: Core Control Layer, Drive Execution Layer, Sensor Feedback Layer, Power Management Layer, and Communication Interface Layer. Each layer collaborates through hardware circuits and signal pathways. The following is a hierarchical structure mind map:



II. Core Control Layer: Algorithm Processing and Logical Scheduling

1. Main Controller Chip Selection and Architecture

MCU (Microcontroller Unit)

Advantages

Low power consumption, low cost, high integration, suitable for medium-to-small power joints (e.g., knee joints, elbow joints).

Typical Models

STM32H743VIT6: Arm Cortex-M7 core (480MHz), integrated FPU and DSP instruction set, supports floating-point operations, built-in 16-bit ADC (sampling rate 2.4MSPS), suitable for real-time PID control.

NXP RT1064: Cortex-M7 (600MHz), supports FlexIO peripheral, which can customize encoder decoding logic.

DSP (Digital Signal Processor)

Advantages

Dedicated multiply-accumulate (MAC) unit, suitable for complex algorithms (e.g., vector control, Kalman filtering), processing speed superior to MCUs.

Typical Models

TI TMS320F28379D, 32-bit floating-point DSP (200MHz), integrated CLA co-processor, supports 12-channel PWM output, built-in enhanced quadrature encoder pulse (eQEP) module.

FPGA/SoC (Field-Programmable Gate Array/System on Chip)

Advantages

Strong parallel computing capability, customizable hardware logic (e.g., encoder interpolation, PWM dead-time generation), suitable for high-speed synchronous control (e.g., multi-motor coordination of hip joints).

Typical Solutions

Xilinx Zynq-7000 series (ARM Cortex-A9 + FPGA), ARM handles upper-layer logic, FPGA implements lower-layer timing control, supports PWM generation with nanosecond-level precision.

2. Peripheral Circuit Design

Crystal Oscillator and Clock Management

The main controller chip requires an external crystal oscillator (8MHz-25MHz) to provide a reference clock, which is frequency-multiplied to the target frequency via a PLL (Phase-Locked Loop) (e.g., up to 480MHz for STM32H7).

In high-precision scenarios, a temperature-compensated crystal oscillator (TCXO) with frequency stability of ±0.5ppm can be used.

Debugging and Storage

JTAG/SWD interface is used for program downloading and online debugging, requiring pull-up resistors (10kΩ) to prevent signal floating.

External Flash (e.g., QSPI interface W25Q128JV) is used to store user parameters and firmware; EEPROM (24LC256) stores calibration data (e.g., encoder zero offset).

Logic Control Unit (CPLD/FPGA)

An independent CPLD (e.g., Altera MAX10) can alleviate the main controller's load and implement the following functions:

PWM Signal Processing

Generate complementary PWM waveforms, insert dead time (2-4μs to prevent shoot-through in the bridge arm).

Encoder Decoding

Quadruple-frequency encoding of AB-phase pulses (e.g., 2000-line encoder quadruple-frequency to 8000-line resolution), calculate speed (M/T method, suitable for wide speed range).

Hardware Protection Logic

When overcurrent signals are detected, immediately block PWM output and simultaneously send an interrupt signal to the main controller.


III. Drive Execution Layer: Power Conversion and Motor Control

1. Motor Types and Drive Schemes

Motor Type

Applicable Joints

Drive Circuit Characteristics

Control Algorithm

Brushed DC Motor (DC)

Small joints (fingers, wrist)

H-bridge circuit, forward/reverse control, fast current loop response

Dual-loop control (speed + current)

Brushless DC Motor (BLDC)

Medium-power joints (elbow, knee)

Three-phase full-bridge, phase commutation requires Hall effect sensor/Back-EMF detection

6-step square wave control (open-loop)/Vector control (closed-loop)

Permanent Magnet Synchronous Motor (PMSM)

High-torque joints (hip, shoulder)

Three-phase full-bridge, requires high-precision position feedback

Field-Oriented Control (FOC, vector control)

2. Power Drive Circuit Design

H-bridge Drive (for Brushed Motors)

Circuit Structure

Four MOSFETs (upper bridge P-channel/lower bridge N-channel, or all N-channel with level shifting), freewheeling diodes (or MOSFET body diodes) to handle back-EMF.

Drive Chips

DRV8825: Integrated dual H-bridge, supports 2.5A continuous current, built-in overheat shutdown, supports microstepping (for stepper motor compatibility).

DRV8301: Three-phase full-bridge driver, supports 4.5-60V input, integrated gate driver (drive current 2.5A), supports sensorless FOC (via Back-EMF estimation).

Protection Circuits

Overcurrent Detection

A sampling resistor (e.g., 0.1Ω/1% accuracy) is series-connected to the power ground; voltage is sampled via INA240 current amplifier (gain 50V/V), and the main controller's ADC compares the threshold (e.g., triggers protection when exceeding 3A).

Overvoltage Protection

Bus voltage is sampled via voltage divider resistors; drive is shut down when voltage exceeds 10% of the battery's full charge voltage (e.g., 24.4V for a 22.2V battery).

Three-Phase Full-Bridge Drive (Brushless/PMSM)

MOSFET Selection

The breakdown voltage must be 1.5 times higher than the battery voltage (e.g., 40V for a 22.2V battery). The on-resistance should be as low as possible (Rds(on) < 30mΩ to reduce heat generation). It is recommended to use Infineon IRFS4127 (40V/120A, Rds(on) = 11mΩ).

Gate Drive

The upper bridge MOSFET requires a bootstrap circuit (e.g., IR2110 chip + 100nF bootstrap capacitor) to ensure Vgs reaches 10-15V (turn-on voltage threshold 4-5V). Drive resistors (10-22Ω) control switching speed to minimize oscillation.

Dead Time

Insert 5μs dead time during upper and lower bridge arm switching to avoid shoot-through, which can be generated via CPLD hardware or configured by the main controller software.

3. Heat Dissipation and EMC Design

Heat Dissipation Scheme

The power module is soldered onto the PCB heat sink pad, with an aluminum heat sink covering the backside. Thermal conductivity is enhanced using thermal grease (thermal resistance < 5℃/W).

For high-power joints (e.g., hip joint, continuous power > 200W), air cooling (miniature fan) or heat pipe cooling can be employed.

Electromagnetic Compatibility (EMC)

Power loops and signal loops are laid out in separate areas. A π-type filter (100μF electrolytic capacitor + 100nF ceramic capacitor) is added to the power input.

Encoder signal lines use shielded twisted pair cables with differential reception (e.g., AM26LV32) to reduce common-mode interference. PCB layout ensures they are kept away from power traces (spacing > 5mm).

IV. Sensor Feedback Layer: High-Precision Measurement and State Monitoring

1. Position and Speed Sensors

Incremental Encoder

Principle

Outputs two orthogonal phase pulses (A and B) with a 90° phase difference. Position is calculated by counting pulse numbers, and speed is measured by frequency (Method M: high speed; Method T: low speed).

Typical Model

Omron E6B2-CWZ6C (2000 lines, open-collector output) supports line driver output (RS422, strong anti-interference capability).

Decoder Circuit

Dedicated chips (e.g., TI DRV5013) convert differential signals to single-ended signals. A CPLD implements quadrature multiplication (4x resolution improvement) and detects the Z-phase (zero reference signal).

Absolute Encoder

Advantages

No homing operation required; retains position after power loss. Suitable for joints requiring position memory (e.g., hip joint during standing).

Interface Type

SSI (Synchronous Serial Interface): Master-slave mode, clock frequency 1-10MHz, single-turn precision 12-bit (4096 positions).

BiSS-C: Bidirectional Serial Interface, supports higher data rates (20MHz), integrated CRC check. Typical model: RENCO RCN-201.

2. Torque Sensor Design

Strain Gauge Torque Sensor

Installation

Four strain gauges are bonded to the joint output shaft (two orthogonal groups forming a full-bridge circuit). When the shaft is twisted, strain gauge resistance changes, producing a bridge output voltage (sensitivity 2-3mV/V).

Signal Conditioning

An instrumentation amplifier (e.g., AD620) amplifies the signal (gain 100x). A second-order low-pass filter (cutoff frequency 100Hz) attenuates high-frequency noise.

Temperature Compensation: A thermistor (e.g., NTC 10kΩ) is串联 to correct temperature drift, calibrated via lookup tables or linear fitting.

Non-Contact Torque Sensor

Magneto-Elastic Principle

The magnetic field on the shaft surface varies with torque. A Hall array detects the magnetic field distribution. Typical product: ME-Meßsysteme T40B (accuracy ±0.05% FS, response time < 1μs).

3. Temperature and Attitude Sensors

Temperature Monitoring

NTC thermistors (10kΩ @ 25℃, B-value 3950K) are embedded in motor windings. Voltage is sampled via a voltage divider, and temperature is calculated by the controller using the formula: T = 1/(1/B * ln(R/R0) + 1/T0).

Driver MOSFET temperature is monitored via mounted NTCs or integrated temperature sensors (e.g., MAX6675). Degraded operation is initiated if temperature exceeds 85℃.

IMU Inertial Measurement Unit

Integrates 3-axis accelerometer (±16g) and 3-axis gyroscope (±2000°/s) with I2C interface (rate 400kHz). Used for auxiliary attitude calculation of joints (e.g., emergency braking during fall detection).

V. Power Management Layer: Energy Distribution and Efficiency Optimization

1. Power Input and Conversion

Battery System

Humanoid robots commonly use 2-6S lithium-ion batteries (7.4V-22.2V). Capacity is selected based on the number of joints and续航需求 (e.g., 2000mAh per joint, 12000mAh total for 6 joints).

Battery Protection Board (BMS) integrates overcharge protection (4.25V/Cell), over-discharge protection (2.75V/Cell), and overcurrent protection (10-30A). Communicates with the main controller via I2C to report state of charge (SOC).

Power Conversion Circuit

Logic Power

The battery voltage is stepped down to 5V using an LM2596S buck module (for drive chip logic and sensor power). Further stepped down to 3.3V via AMS1117-3.3V (for main controller and communication circuits).

Isolated Power

An isolated DC-DC converter (e.g., DCP010505B, 5V input/output, isolation voltage 1500V) ensures isolation between drive ground and control ground, reducing noise interference from power loops.

2. Energy Recovery and Management

Brake Energy Recovery

When joints decelerate, the motor operates as a generator. Back-EMF charges supercapacitors via freewheeling diodes (requires bidirectional DC-DC converters, e.g., TI BQ25570). Energy recovery efficiency可达 15%-20%.

Low-Power Design

When the main controller enters sleep mode, non-essential peripherals (e.g., SPI/I2C) are disabled, and drive module enable signals are pulled low. Standby current is < 10mA overall.

VI. Communication Interface Layer: Data Interaction and System Integration

1. Internal Communication Bus

CAN Bus Design

Adopts CAN FD (Flexible Data Rate) protocol, supporting 500kbps (classic CAN) and 2Mbps (FD mode) to meet real-time synchronization requirements for multiple joints (e.g., 10ms cycle for position command updates).

Bus Termination Resistors: 120Ω (one at each end). CAN transceiver uses TJA1145 (supports bus protection, ESD ±8kV). Differential signal transmission distance > 10m.

SPI/I2C Optimization

SPI is used for high-speed sensors (e.g., absolute encoder SSI interface) with a clock frequency of 10MHz. Chip select (CS) signals require hardware debouncing (RC filtering).

I2C bus connects multiple slaves (e.g., IMU, EEPROM). A bus expander (e.g., TCA9548A) enables 8-channel I2C switching. 4.7kΩ pull-up resistors ensure signal integrity.

2. External Interfaces and Connectors

Host Interface

USB-UART converter (e.g., CH340G) is used for debugging, supporting baud rates 115200-460800bps. Host software (e.g., MATLAB/Simulink) monitors joint status in real time.

Ethernet Interface (RJ45) supports TCP/IP protocol for communication with the robot's central controller (transmitting path planning commands, rate 100Mbps).

High-Reliability Connections

Power connectors use high-current terminals (e.g., Phoenix Contact plug-in terminals, rated current 30A). Signal connectors use M12 circular connectors (IP67 protection rating, dust and splash-proof).

VII. Hardware Design Process and Testing Validation

1. Design Steps

Requirement Analysis

Define joint torque (e.g., 50Nm for hip joint), speed range (0-180°/s), and precision requirements (position error < 0.1°).

Scheme Selection

Select motor type based on power (PMSM for high torque), main controller (DSP for FOC algorithm), and sensor configuration (absolute encoder + torque sensor).

Circuit Design

Draw schematics using Altium Designer. Separate power loops and signal loops. Equalize critical networks (e.g., PWM, encoder AB phases).

PCB Layout

Use 2oz copper thickness for power layers to carry high currents


VIII. Modular Integration and Challenges

1. Joint Module Encapsulation Design

Integrate motors, drivers, sensors, and reducers (e.g., harmonic gears/planetary gears) into an aluminum alloy housing, with dimensions adapted to human joint structures (e.g., knee joint thickness < 150mm). The housing is provided with heat dissipation holes, and internal thermal conductive silicone gel is filled to ensure effective heat dissipation from the motor and driver.

2. Technical Challenges and Solutions

Challenges

Solutions

Heat Dissipation Issues Under High Power Density

Adopt an integrated heat dissipation structure, directly soldering power devices to a metal baseplate and adding heat dissipation fins.

Multi-sensor Data Synchronization Accuracy

Trigger sensor sampling using a synchronous clock signal (e.g., 100kHz), and the main controller reads data in bulk using DMA mode.

Reliability Under Complex Operating Conditions

Add soft-start functionality to the drive circuit (to prevent power-on impact) and TVS tubes to sensor interfaces (±15kV electrostatic protection).

Balancing Lightweight and High Strength

Use carbon fiber composite materials for the housing (density 1.8g/cm³, strength > 300MPa) and ultra-thin PCB boards (0.8mm thickness).

IX. Mind Map Summary


X. Conclusion

The hardware design of joint motor controllers for humanoid robots requires balancing precision, power, and reliability, with each layer of modules optimized independently yet working collaboratively. The core control layer provides algorithmic support, the drive execution layer realizes energy conversion, the sensor layer ensures closed-loop feedback, and the power and communication layer guarantees stable system operation. In the future, with increased integration, modularization, lightweighting, and intelligence will become design trends. By combining advanced manufacturing processes (such as 3D-printed heat dissipation structures) and novel devices (such as silicon carbide MOSFETs), joint performance can be further enhanced, promoting the development of humanoid robots toward more complex motion scenarios.


文章推荐

Bus

Sample Request

  • Company

  • Mail *

  • Name

  • Sample Request *

  • Submit

图片展示

Copyright @ 2020 Guangdong Xinkeda Industrial Technology Co., Ltd. 

    SITE MAP

 

Guangdong Xinkeda Industrial Technology Co., Ltd

 

 

Customer Service
TOP
Customer Service
Online Contacts
TEL
+086-13016309586
online
24/7
E-mail
helena@xkdchips.com
Overseas Sales Manager-Helena
+086-13016309586
Service Supervision Hotline-Samuel
+086-13727880655
WeChat
XKDchips
TOP
Add WeChat friend to learn more about the product
Use Enterprise WeChat
"Scan" to join the group chat
Copy success!
Add WeChat friend to learn more about the product
I see.