#+title: Simulation and parameterization of a delta robot in MuJoCo #+subtitle: with STM32 based stub board #+date: 2025H1 * Introduction :PROPERTIES: :CUSTOM_ID: introduction :UNNUMBERED: toc :END: 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. * Overview :PROPERTIES: :CUSTOM_ID: task :END: - 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. * Documentation :PROPERTIES: :CUSTOM_ID: documentation :END: The exported report can be found at [[https://git.michalec.dev/files/uni/term-06/summer-practice/report.pdf][this link]]. * Showcase :PROPERTIES: :CUSTOM_ID: showcase :END: #+caption: Drawing #+attr_html: :width 100% [[https://git.michalec.dev/uni/term-06/summer-practice/drawing.png][https://git.michalec.dev/files/uni/term-06/summer-practice/drawing.png]] #+caption: CAD view #+attr_html: :width 100% [[https://git.michalec.dev/uni/term-06/summer-practice/robot.jpg][https://git.michalec.dev/files/uni/term-06/summer-practice/robot.jpg]] #+caption: Simulator #+attr_html: :width 100% [[https://git.michalec.dev/uni/term-06/summer-practice/screenshot.png][https://git.michalec.dev/files/uni/term-06/summer-practice/screenshot.png]] #+caption: Pin configuration #+attr_html: :width 100% [[https://git.michalec.dev/uni/term-06/summer-practice/pin-configuration.png][https://git.michalec.dev/files/uni/term-06/summer-practice/pin-configuration.png]] #+caption: Clock setup #+attr_html: :width 100% [[https://git.michalec.dev/uni/term-06/summer-practice/clock-setup.png][https://git.michalec.dev/files/uni/term-06/summer-practice/clock-setup.png]] * Unlicense :PROPERTIES: :CUSTOM_ID: unlicense :END: #+include: UNLICENSE verse