Skip to content

Commit 44ea3b5

Browse files
author
Anton Vynohradov
committed
Update Doppelstep to v0.3.0 and Stepper-C to v1.5.0
Doppelstep (projects.js, robot.html): - Status "v0.3.0 · Pre-release" instead of "In progress" - 157 tests per CI run (was 91) - Drives a real 17HS19-2004S1 stepper at 12 V and 24 V, checked with DYNAMIXEL Wizard 2.0; hardware comparators (0.5 µs), self-test and overheating trip - Done / Next lists follow the project status in the README Stepper-C (projects.js, index.html): - v1.5.0 (was v1.2.0) - 512 B RAM per motor, 240 B worst-case stack - Dead-time compensation, power-stage self-test, port to the B-G431B-ESC1; stall reported 48 ms after the pull-out angle Regenerate the prerendered cards in projects.html and articles.html. Signed-off-by: Anton Vynohradov <avynohradov@systemfromscratch.com>
1 parent 96fa22f commit 44ea3b5

5 files changed

Lines changed: 25 additions & 23 deletions

File tree

‎website/articles.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h1>Articles</h1>
7171

7272
<section class="section">
7373
<div class="container">
74-
<div class="articles-list" data-articles="all"><!-- prerender:articles --><article class="card article-card"><a class="article-media" href="robot.html" tabindex="-1" aria-hidden="true"><img src="assets/img/robot/article-robot.webp" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">November 2026</span><h3>A robot arm, every layer engineered end to end</h3><p>SmartManipulator-X case study: the unchanged ROBOTIS OpenMANIPULATOR-X ROS 2 stack drives a 3D-printed BCN3D Moveo arm through a SmartFusion2 controller that answers as DYNAMIXEL servos. Seven layers, one command followed from MoveIt 2 to the motor, and three ways to wire the joints compared.</p><dl class="article-results"><div><dt>7</dt><dd>layers, from mechanics to quality and security</dd></div><div><dt>0</dt><dd>lines changed in the ROBOTIS robot software</dd></div><div><dt>3</dt><dd>wiring architectures compared: central, RS-485, CAN</dd></div></dl><ul class="project-tags"><li class="tag">ROS 2</li><li class="tag">MoveIt 2</li><li class="tag">DYNAMIXEL</li><li class="tag">Zephyr</li><li class="tag">SmartFusion2</li><li class="tag">Case study</li></ul><div class="article-actions"><a class="btn btn-primary" href="robot.html">Explore the robot<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch/sfs-smartmanipulator-x-robot" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><article class="card article-card"><a class="article-media" href="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/" target="_blank" rel="noopener" tabindex="-1" aria-hidden="true"><img src="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/assets/images/hero-3d.svg" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">October 2026</span><h3>Stepper-C: stepper motor control from model to metal</h3><p>An open-source C library that turns a position command into phase voltages for two-phase stepper motors. The same C code is verified in a Scilab/Xcos motor model and a transistor-level power-stage model before it drives a 17HS19 motor on the B-G431B-ESC1 board.</p><dl class="article-results"><div><dt>100 %</dt><dd>line and branch coverage from 76 unit tests</dd></div><div><dt>8.2 kB</dt><dd>of code behind a 15-function control API</dd></div><div><dt>20 kHz / 1 kHz</dt><dd>current loop and motion loop rates</dd></div></dl><ul class="project-tags"><li class="tag">Stepper motor</li><li class="tag">Microstepping</li><li class="tag">Scilab/Xcos</li><li class="tag">ngspice</li><li class="tag">Software-in-the-loop</li></ul><div class="article-actions"><a class="btn btn-primary" href="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/" target="_blank" rel="noopener">Explore the article<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch-Articles/Stepper-C-Motor-Control-Library" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><article class="card article-card"><a class="article-media" href="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/" target="_blank" rel="noopener" tabindex="-1" aria-hidden="true"><img src="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/assets/images/social-card.png" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">October 2026</span><h3>One wire, many MCUs, no lost messages: Baton-C as a Zephyr module</h3><p>How a deterministic single-wire UART bus written in MISRA C became a Zephyr module: devicetree binding, interrupt glue and a three-node bus tested on native_sim under five line-noise patterns. Every number is reproducible from the repository.</p><dl class="article-results"><div><dt>40 / 40</dt><dd>test cases passed across five noise patterns</dd></div><div><dt>200 / 200</dt><dd>events delivered with 1 corrupted byte in 150</dd></div><div><dt>≈ 6 KB</dt><dd>of library code on Cortex-M3 (-Os); the integration replaces ~200 lines of hand-written UART ISR code</dd></div></dl><ul class="project-tags"><li class="tag">Zephyr</li><li class="tag">UART</li><li class="tag">MISRA C</li><li class="tag">native_sim</li><li class="tag">SmartFusion2</li></ul><div class="article-actions"><a class="btn btn-primary" href="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/" target="_blank" rel="noopener">Explore the article<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch-Articles/Baton-C-One-wire-many-MCUs-no-lost-messages" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><!-- /prerender:articles --></div>
74+
<div class="articles-list" data-articles="all"><!-- prerender:articles --><article class="card article-card"><a class="article-media" href="robot.html" tabindex="-1" aria-hidden="true"><img src="assets/img/robot/article-robot.webp" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">November 2026</span><h3>A robot arm, every layer engineered end to end</h3><p>SmartManipulator-X case study: the unchanged ROBOTIS OpenMANIPULATOR-X ROS 2 stack is built to drive a 3D-printed BCN3D Moveo arm through Doppelstep stepper drives that answer as DYNAMIXEL servos. Seven layers, one command followed from MoveIt 2 to the motor, three ways to wire the joints compared, and three levels to learn on it.</p><dl class="article-results"><div><dt>7</dt><dd>layers, from mechanics to quality and security</dd></div><div><dt>0</dt><dd>lines changed in the ROBOTIS robot software</dd></div><div><dt>3</dt><dd>wiring architectures compared: central, shared bus, CAN</dd></div></dl><ul class="project-tags"><li class="tag">ROS 2</li><li class="tag">MoveIt 2</li><li class="tag">DYNAMIXEL</li><li class="tag">Doppelstep</li><li class="tag">Education</li><li class="tag">Case study</li></ul><div class="article-actions"><a class="btn btn-primary" href="robot.html">Explore the robot<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch/sfs-smartmanipulator-x-robot" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><article class="card article-card"><a class="article-media" href="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/" target="_blank" rel="noopener" tabindex="-1" aria-hidden="true"><img src="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/assets/images/hero-3d.svg" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">October 2026</span><h3>Stepper-C: stepper motor control from model to metal</h3><p>An open-source C library that turns a position command into phase voltages for two-phase stepper motors. The same C code is verified in a Scilab/Xcos motor model and a transistor-level power-stage model before it drives a 17HS19 motor on the B-G431B-ESC1 board.</p><dl class="article-results"><div><dt>100 %</dt><dd>line and branch coverage from 76 unit tests</dd></div><div><dt>8.2 kB</dt><dd>of code behind a 15-function control API</dd></div><div><dt>20 kHz / 1 kHz</dt><dd>current loop and motion loop rates</dd></div></dl><ul class="project-tags"><li class="tag">Stepper motor</li><li class="tag">Microstepping</li><li class="tag">Scilab/Xcos</li><li class="tag">ngspice</li><li class="tag">Software-in-the-loop</li></ul><div class="article-actions"><a class="btn btn-primary" href="https://systemfromscratch-articles.github.io/Stepper-C-Motor-Control-Library/" target="_blank" rel="noopener">Explore the article<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch-Articles/Stepper-C-Motor-Control-Library" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><article class="card article-card"><a class="article-media" href="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/" target="_blank" rel="noopener" tabindex="-1" aria-hidden="true"><img src="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/assets/images/social-card.png" alt="" loading="lazy"></a><div class="article-body"><span class="article-date">October 2026</span><h3>One wire, many MCUs, no lost messages: Baton-C as a Zephyr module</h3><p>How a deterministic single-wire UART bus written in MISRA C became a Zephyr module: devicetree binding, interrupt glue and a three-node bus tested on native_sim under five line-noise patterns. Every number is reproducible from the repository.</p><dl class="article-results"><div><dt>40 / 40</dt><dd>test cases passed across five noise patterns</dd></div><div><dt>200 / 200</dt><dd>events delivered with 1 corrupted byte in 150</dd></div><div><dt>≈ 6 KB</dt><dd>of library code on Cortex-M3 (-Os); the integration replaces ~200 lines of hand-written UART ISR code</dd></div></dl><ul class="project-tags"><li class="tag">Zephyr</li><li class="tag">UART</li><li class="tag">MISRA C</li><li class="tag">native_sim</li><li class="tag">SmartFusion2</li></ul><div class="article-actions"><a class="btn btn-primary" href="https://systemfromscratch-articles.github.io/Baton-C-One-wire-many-MCUs-no-lost-messages/" target="_blank" rel="noopener">Explore the article<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg></a><div class="project-links"><a href="https://github.com/SystemFromScratch-Articles/Baton-C-One-wire-many-MCUs-no-lost-messages" target="_blank" rel="noopener"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a11.5 11.5 0 0 0-3.64 22.41c.58.1.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.33-1.28-1.69-1.28-1.69-1.05-.71.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.56-.29-5.25-1.28-5.25-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.77 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.26 5.67.41.36.78 1.06.78 2.14v3.17c0 .31.21.67.8.56A11.5 11.5 0 0 0 12 .5Z"/></svg>Source code</a></div></div></div></article><!-- /prerender:articles --></div>
7575
</div>
7676
</section>
7777

‎website/assets/js/projects.js‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,20 @@ window.SFS_PROJECTS = [
136136
"Hardware-agnostic closed-loop microstepping current control for two-phase stepper motors in C11, with sensorless stall detection: from a position command to phase voltages, with the hardware reached only through callbacks.",
137137
features: [
138138
"Per-phase PI current control tuned from R, L and one bandwidth; back-EMF feed-forward, anti-windup, bus voltage compensation",
139-
"Sensorless stall detection: a back-EMF observer reports a stalled rotor or lost synchronism, 43 to 60 ms after the load angle passes 90° on the motor model",
139+
"Dead-time compensation from the measured bus voltage and the current reference: on the motor model the largest current error of a 1 Hz move drops from 16 mA to 3 mA",
140+
"Sensorless stall detection: a back-EMF observer reports a stalled rotor or lost synchronism, 48 ms after the rotor passes the pull-out angle on the motor model",
140141
"1–256 microsteps, trapezoidal motion planning, homing and exact integer positions; fixed-point or float backend",
141-
"Two H-bridges or three half-bridges; overcurrent, over/undervoltage and fault protection",
142-
"100 % line and branch coverage in both backends, 0 MISRA C:2012 violations; run in the loop against a motor model in Stepper-Lab",
142+
"Two H-bridges or three half-bridges; self-test of the power stage and the wiring before the first enable; overcurrent, over/undervoltage and fault protection",
143+
"Ported to the B-G431B-ESC1 with a 17HS19-2004S1 motor; 100 % line and branch coverage in both backends, 0 MISRA C:2012 violations",
143144
],
144-
status: "v1.2.0 · Stable",
145+
status: "v1.5.0 · Stable",
145146
stable: true,
146147
featured: false,
147148
homeSection: "motor-control",
148149
categories: ["Libraries", "Robotics"],
149150
highlights: [
150-
{ value: "432 B", label: "RAM per motor" },
151-
{ value: "216 B", label: "worst-case stack" },
151+
{ value: "512 B", label: "RAM per motor" },
152+
{ value: "240 B", label: "worst-case stack" },
152153
{ value: "0", label: "MISRA violations" },
153154
],
154155
tags: ["C11", "Stepper motor", "Motor control", "STM32G4", "MISRA C:2012", "Apache-2.0"],
@@ -219,19 +220,20 @@ window.SFS_PROJECTS = [
219220
summary:
220221
"Zephyr RTOS firmware that turns a two-phase stepper motor and a small STM32 motor-control board into a DYNAMIXEL XM430-W350 smart servo: ROS 2, DynamixelSDK and DYNAMIXEL Wizard control it without changes.",
221222
features: [
222-
"Full XM430-W350 (model 1020) Control Table over Protocol 2.0; ros2_control loop at 100 Hz tested with the official DynamixelSDK",
223-
"Closed-loop microstepping current control in a 20 kHz interrupt; overcurrent, bus voltage and shared-leg faults switch the outputs off inside it",
224-
"Simulated motor and power stage on the board or on a PC (native_sim), so motion and protocol work before a motor is connected",
223+
"Full XM430-W350 (model 1020) Control Table over Protocol 2.0; checked with DYNAMIXEL Wizard 2.0, and a ros2_control loop at 100 Hz tested with the official DynamixelSDK",
224+
"Drives a real 17HS19-2004S1 stepper on the B-G431B-ESC1 at 12 V and 24 V: all 20 bench test scenarios, the hardware comparators and two minutes of moves at 1.5 A",
225+
"Closed-loop microstepping current control (Stepper-C) in a 20 kHz interrupt; comparators switch the gates off within 0.5 µs, a self-test checks the bridge and the wiring before the first Torque Enable, plus an overheating trip",
226+
"Simulated motor and power stage on the board or on a PC (native_sim), so motion and protocol are tested on every change before they reach the hardware",
225227
"MCUboot checks an RSA-2048 signature at every start and accepts new firmware over the DYNAMIXEL bus",
226228
],
227-
status: "In progress",
229+
status: "v0.3.0 · Pre-release",
228230
stable: false,
229231
featured: false,
230232
homeSection: "robotics",
231233
categories: ["Robotics", "RTOS"],
232234
highlights: [
233235
{ value: "20 kHz", label: "current loop" },
234-
{ value: "91", label: "tests per CI run" },
236+
{ value: "157", label: "tests per CI run" },
235237
{ value: "75.5 KiB", label: "application flash" },
236238
],
237239
tags: ["Zephyr", "STM32", "DYNAMIXEL", "ROS 2", "MCUboot", "Apache-2.0"],

‎website/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ <h3>X430 Emulator ↗</h3>
321321
<p>Any motor answers as a DYNAMIXEL X430 servo; existing robot software works unchanged.</p>
322322
</a>
323323
<a class="card link-card reveal" href="https://antonvynohradov.github.io/Stepper-C/" target="_blank" rel="noopener">
324-
<span class="meta is-stable">v1.2.0 · Stable</span>
324+
<span class="meta is-stable">v1.5.0 · Stable</span>
325325
<h3>Stepper-C ↗</h3>
326326
<p>Precise motor control that notices a stalled motor without extra sensors.</p>
327327
</a>

0 commit comments

Comments
 (0)