97f580b6a5aef9eb0f22165188410476647245fc
Reverse-engineered the AliExpress "USB_24RF Ver3.1" stick (STM32F030F4P6 +
Si24R1 + AT2401C PA + CH330N) and replaced its closed AT-command firmware so it
can be the PC-side radio for the hexapod.
- Pin map found over SWD and confirmed at runtime: USART1 PA9/PA10 (CH330N),
SPI1 PA5/6/7, nRF CSN PA3 / CE PA4 / IRQ PA2. LED + AT2401C control are among
the 5 free pins, still to map.
- Two-stage firmware so wire-free flashing can't be broken by an app update:
- safeboot (4 KB, pages 0-3): permanent recovery bootloader, fixed-baud flash
protocol over USB, only it survives every update;
- app (12 KB, pages 4+): the radio firmware, the only part updates rewrite.
The app updater never erases safeboot; recovery works even with a dead app.
- tools/dongle_flash.py: one-time install via the STM32 ROM bootloader (the only
time the BOOT0 wire is used). tools/safeboot_flash.py: wire-free app updates.
- dongle/README.md documents the hardware, pin map, RDP1 (factory fw can't be
dumped), the memory map and the flashing workflow.
- README: add dongle/ to the layout and the PC-radio plan.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Hexapod robot
Everything about my six-legged walking robot, from the first FPGA-driven version in 2009 to the current Teensy robot with its firmware-in-the-loop Unity simulation. Each generation has its own folder, named after the year it started, with its firmware, simulation, hardware, documents and photos together.
Working on the robot now? Go to 2026-current/. Everything else is history.
Timeline
| Folder | When | Hardware | What it did |
|---|---|---|---|
2009-fpga/ |
2009–2011 | FPGA, own frame design | the first version. The code is lost; photos, videos and the frame design (original-frame/, the base of every version up to 2023) are left |
2011-firefly-mega-ssc32/ |
2011–2012 | Arduino Mega 2560 + Lynxmotion SSC-32 | "FireFly": walking sequences with a Wii Nunchuk, later IR remote, ultrasonic radar head and GPS |
2012-simulation/ |
2012–2014 | PC | a Visual Studio leg-IK visualiser (2012) and a Processing 3D simulator (2014) |
2014-ik-core-task-queue/ |
≤ Feb 2014 | Arduino | a rewrite of the IK core around a task queue, without servo output yet |
2016-ssc32-processing-port/ |
~2016–2018 | Arduino + SSC-32 | the Processing simulator's classes ported to Arduino, driving the SSC-32 again |
2018-unity-sim/ |
2018–2023 | PC + SSC-32, later the Teensy | Unity computes the walking and drives the robot: first the SSC-32 over serial, from 2019 through the remote |
2019-teensy-nrf24/ |
2019–2022 | Teensy 3.6 on the robot (replaces the SSC-32), Teensy remote with Nextion screen, nRF24L01 | servo passthrough: Unity → remote over USB → radio → robot |
2026-current/ |
2026– | Teensy 3.6 robot, Teensy 4.0 remote, Fusion 360 designed parts, OpenSCAD rebuild and new remote | IK, gait, body pose and IMU stabilisation on the robot; the unchanged firmware also runs inside Unity |
Repository notes
- Photos, videos, PDFs, Office files, CAD and other binaries are stored with Git LFS (see
.gitattributes). A normal clone downloads them; setGIT_LFS_SKIP_SMUDGE=1to clone only the code. - Files are stored exactly as they were (no line-ending conversion), so old code is byte-for-byte the original.
- This repo was put together in October 2026 from the Gitea repos
Hexapod_2027,Hexapod,Hexapod-App,Hexapod-processing,Hexapod_Simulation_Unity,remoteandHexapod-Archief, the NAS folderProjecten\Electronics\Hexapod, the Arduino sketchbook and the Fusion 360 exports. The history of every repo exceptHexapod-Archiefis kept (its own history only held the same photos and videos again). Old code versions that only existed as rar files or backup folders are dated commits.
Languages
C++
52.9%
C#
16.7%
OpenSCAD
11.4%
C
10.2%
Python
5%
Other
3.8%