aboutsummaryrefslogtreecommitdiff
Simulation and parameterization of a delta robot in MuJoCo

Simulation and parameterization of a delta robot in MuJoCo
with STM32 based stub board

Introduction

A digital twin is a virtual model of a real object that simulates its exact behavior under different external and internal conditions. A digital twin can be used for testing, training, and optimizing a system, as well as for analyzing and predicting its behavior.

There are two kinds of robots:

  • Serial robot — mechanical system, consisting of a single continuous kinematic chain of links and drives connecting the base to the working body (end effector). By controlling the actuators in each joint of this circuit, you can change the position and orientation of the effector in the working space.
  • Parallel robot — a mechanical system using multiple sequential circuits to support a single platform or end effector. That is, a parallel robot has a working link connected to the base by several kinematic circuits with multiple drives, or imposing connections on the robot's movements.

The parallelism of the robot lies in the fact that its carriage has 6 connections with rods, the rods have 2 hinges each, which are attached to the shoulders, the shoulders are attached to the base link, and the link to the base.

1. Overview

  • Stub board and firmware for intercepting servo signals (DIR/STEP/END-CAP) of the robot's control system (up to 8 servos) with control over USART.
  • Description of the delta robot in MJCF.
  • Glue code for hooking up the stub board's USART to MuJoCo's joint controls.

I've omitted the CubeMX "project" from the repo. CubeMX is bloat, don't use it. The relevant parts of the code can be found in the report.

2. Documentation

The exported report can be found at this link.

3. Showcase

drawing.png

Figure 1: Drawing

robot.jpg

Figure 2: CAD view

screenshot.png

Figure 3: Simulator

pin-configuration.png

Figure 4: Pin configuration

clock-setup.png

Figure 5: Clock setup

4. Unlicense

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to https://unlicense.org/

Date: 2025H1

Author: Martin Michalec

Created: 2026-11-09 Mon 21:03