
BLOG · 3/11/2026
| OP |

Design, fabricate, and program a 2-DoF soft continuum robotic arm. The arm is actuated by antagonistic wire tendons and controlled through a multi-mode embedded architecture that accepts wireless and sensor-driven input.
Unlike a conventional robot arm built from rigid links and discrete joints, a continuum arm bends smoothly along its whole length, like an elephant trunk or an octopus tentacle. Here, a flexible spring backbone is bent by pulling on wires (tendons) that run along its length.
| Subsystem | Component | Role |
|---|---|---|
| Controller | ESP32 NodeMCU | Dual-core MCU with built-in Wi-Fi and Bluetooth; runs sensor fusion, networking, and servo control |
| Actuation driver | PCA9685 (16-ch PWM) | Generates stable 50 Hz PWM over I²C, offloading timing from the ESP32 |
| Actuators | MG995 metal-gear servos | High-torque servos that pull the tendons |
| Backbone | Central elastic spring | Provides compliance and restoring force |
| Tendon routing | 4-channel pulley layout | Tendons spaced at 90° around the cross-section for even tension |
| Local sensor | MPU6050 (6-DoF IMU) | Accelerometer + gyroscope for tilt control |
| Remote input | Android phone (Termux) | Streams quaternion rotation vectors over Wi-Fi UDP |
| Command input | Bluetooth Serial (ESP32_Servo) | Triggers pose sequences from a terminal app |
The tendons sit at angular positions
α_i = {0, 0.5π, π, 1.5π}
Two opposing pairs (0°/180° and 90°/270°) let the arm bend in any direction. When one tendon shortens, its opposite lengthens, which keeps tension even and avoids slack.
Convert a desired bend direction (θ) and bend magnitude (φ) into a length change for each tendon, then into a servo angle.
For a constant-curvature bend, tendon i changes length by:
ΔL_i = −d · φ · cos(θ − α_i)
A negative ΔL means the tendon shortens (the inside string is pulled in); a positive ΔL means it lengthens (the outside string pays out).
Where:
TENDON_R = 0.034 m)Intuition: A tendon on the side the arm bends toward (θ ≈ α_i) shortens the most. The tendon on the opposite side lengthens by the same amount. Tendons at 90° to the bend direction barely change length.
Each servo winds its tendon around a pulley of radius r_p (PULLEY_R = 0.018 m). The servo rotation needed is:
servo_wind_rad = −ΔL_i / r_p = d · φ · cos(θ − α_i) / r_p
servo_angle = CENTER + SERVO_DIR_i · (servo_wind in degrees)
CENTER is 90°, and SERVO_DIR_i (+1 or −1) flips a servo if its string loosens when it should tighten.
The maximum bend is limited by how far the servos can wind the tendon:
PHI_MAX = min(MAX_BEND, SERVO_LIMIT_DEG · PULLEY_R / TENDON_R)
= min(90°, 90° · 0.018 / 0.034) ≈ 47.6°
The angle (0–180°) is mapped linearly to a pulse width and sent through the PCA9685 at 50 Hz:
GAIN scales the tilt into a bend vector (vx, vy).PHI_MAX.For the phone input, the quaternion is converted to a "up" vector (the device's z-axis in the world frame), and roll and pitch are taken from it:
ux = 2(xz + wy)
uy = 2(yz − wx)
uz = 1 − 2(x² + y²)
roll = atan2(ux, √(uy² + uz²))
pitch = atan2(uy, √(ux² + uz²))
The C++ firmware (Arduino framework for ESP32) supports three operating modes, switched at runtime by typing a key in the Serial Monitor.
| Serial key | Action |
|---|---|
1 | Mode 1: local MPU6050 tilt control |
2 | M |