Connecting to sources…

How to build Dummy-Robot: the whole process

22 steps to build Dummy-Robot, from buying parts, printing and assembly to software, calibration and training, with the bill of materials, shop links and the official so…

No total in the README; the original's harmonic reducers were bought second-hand at about CN¥600 each, with a CNC aluminium frame. The README's planned 3D-printed “Youth Edition” targets under CN¥2,000 and has not been released

Buy parts

  • Prepare the four core boards

    Prepare the REF core board, REF bottom controller board inside the arm base, stepper motor driver board, and Peak teaching device.

  • Select the 20 or 42 stepper driver

    The project uses 20-stepper and 42-stepper driver designs; the 57-stepper files are only for extension.

Print and make

  • Make the low-cost cycloidal reducer

    The low-cost design uses a self-made cycloidal reducer with 3D printing; the reducer is expected to combine PC or acrylic cutting with 3D-printed parts.

Assemble

  • Chain motors with CAN wiring

    Connect all motors in series over the CAN bus; the complete wiring uses four lines: two power lines and two CAN signal lines.

  • Configure the Motor CAN Sync Network

    Connect the six motors with a CAN bus. Each motor receives its own ID and ID 0, with ID 0 used for broadcast and synchronization; each motor stores the motion command in a shadow register and starts after receiving the broadcast sync signal.

Software

  • Download and flash driver firmware

    Download the provided compiled binary firmware and flash it directly to the stepper motor driver.

  • Configure zero and motion parameters

    Use code or the communication protocol to set the home zero, PID parameters, CAN node ID, and motion parameters.

  • Review CAN and serial commands

    Open interface_can.cpp and interface_uart.cpp in the UserApp folder to learn the CAN and UART commands.

  • Read the Peak instructions

    Open the README in the SubModules folder for the Peak teaching device hardware and software instructions.

  • Initialize DummyRobot Parameters

    When creating the DummyRobot instance, configure the stepper motor driver information and its DH parameters. Driver information includes CAN node ID, inversion setting, reducer ratio, and motion limits.

  • Replace the Arm DH Parameters

    Ensure the arm configuration satisfies Pieper's condition: three adjacent joint axes intersect at one point, or three axes are parallel. Replace the DH parameters to match the modified Dummy structure and port the code.

  • Configure Inverse-Kinematics Selection

    A traditional DH-parameter inverse solution may produce multiple solutions, generally eight. Select the smallest maximum joint-change angle among the six joints between the previous and target poses as the inverse-solution config, keeping transitions at minimum rotation.

  • Implement MoveJ Synchronized Planning

    After receiving a joint-angle command, calculate the six joint deltas and take the largest delta θ. Use the JointSpeed setting and acceleration/deceleration requirements to calculate θ's motion time, then derive acceleration, deceleration, and maximum speed for the other five motors so all six move synchronously.

Calibrate and test

  • Perform initial encoder calibration

    After flashing the firmware, the motor automatically calibrates its encoder on the first power-up; after successful calibration, press button 1 at the next power-up to enter closed-loop mode.

  • Repeat encoder calibration

    If the first calibration fails, hold both buttons while powering on to automatically repeat the encoder calibration.

  • Toggle closed-loop enable

    Short-press button 1 to switch between enabling and disabling closed-loop mode.

  • Restart the driver board

    Long-press button 1 to restart the driver board.

  • Clear the stall protection

    Short-press button 2 to clear the driver's stall protection.

  • Zero the target position

    Long-press button 2 to zero the target value; in position mode, the current position is set to zero.

  • Perform Power-On Zero Calibration

    After power-on, use the motor driver's current loop for low-torque motion without a zero reference. At the mechanical limit, establish the coarse zero without a limit switch, then fine-adjust using the single-turn absolute encoder position.

Use it

  • Control motors through CAN or serial

    Send commands through CAN or serial to control the motors; bus mode supports torque, speed, position, and trajectory modes.

  • Connect the RoboDK Serial Driver

    Use the driver that connects Dummy when simulating in RoboDK. The original driver used a TCP network interface, while the version described here uses serial communication and supports the Dummy protocol.

Common problems

  • Recalibration may be needed at every power-up, and motor enable state may fail #40 #84 #98 #114 #121 #150
  • New firmware exceeds flash space and overwrites encoder calibration data #85 #184
  • REF firmware and host tools cannot connect or exchange data #84 #99 #142 #147
  • Motor driver source is missing, incomplete, or fails to compile #50 #95 #182
  • Provided STEP 3D model will not open in SolidWorks #73
  • PCB files are inconsistent with the video and bill of materials #75 #86
  • Robot arm DH parameters may be defined incorrectly #68
  • Motor keeps shaking after a serial position command finishes #155

Parts

  • REF core board (STM32F405RG, FreeRTOS) and the REF base board in the arm's base
  • Ctrl‑Step closed-loop stepper drivers (STM32F103, derived from XDrive with CAN added), one design each for 20 and 42 steppers
  • Six joints: stepper motors with reducers (harmonic drives in the original; firmware ratios 50/30/30/24/30/50)
  • Gripper module and LED-ring PCBs, a wireless spatial-positioning controller PCB, the Peak wireless teach pendant
  • STEP models: the arm, 42-motor covers and a carry case

Tools

  • CNC machining for the aluminium parts (original)
  • Altium Designer (schematics and PCBs are Altium projects)
  • An STM32 programmer such as ST‑Link, and SMD soldering tools

Skills

  • STM32 HAL/CubeMX, FreeRTOS and C++11
  • CAN bus and closed-loop stepper tuning (encoder calibration, PID)
  • Robot kinematics (DH parameters, forward and inverse solutions)
  • The Python CLI tool (reftool)

Software

  • Core‑STM32F4‑fw: kinematics, trapezoidal velocity planning and USB/UART/CAN commands
  • Ctrl‑Step‑Driver‑STM32F1‑fw with a prebuilt HEX
  • DummyStudio (Unity, Windows executable) and reftool (built on odrivetool and fibre)
  • Peak teach-pendant firmware (based on X‑Track, a submodule)

Documents