Commit Graph
92 Commits
Author SHA1 Message Date
mangavalkandClaude Opus 5.5 aeccba3be7 2026 remote: wiring as found on the real remote, IMU reset fix
- Nextion is on Serial2 (pins 7/8) - already in the last commit; docs updated.
- MPU6050 on Wire (18/19) so everything is on the edge headers (owner's
  choice); the two stick wires from 18/19 move to A7/A8 (21/22).
- Stick mapping checked on the real remote: left stick X/Y/twist on
  A3/A7/A8, right on A0/A1/A2, all inverted but the right twist.
- RemoteIMU: full device reset before waking. The remote's MPU6050 (likely
  a clone) answers and wakes without it but every data register reads 0.
  Axis defaults confirmed (+pitch nose down, +roll right side down).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:03:08 +01:00
mangavalkandClaude Opus 5.5 0b836af8de 2026 remote: tabbed Nextion UI, robot telemetry, servo centre calibration
Protocol v4: CmdPacket grows to 26 bytes (cal_cmd, cal_servo, cal_value);
new 30-byte Telemetry rides back on the nRF24 ack payload (robot state,
IMU, battery, 18 joint angles, packets/s, servo-cal echo). Each end drops
wrong-length packets, so version mismatches still fail closed.

Robot (owner-approved): SERVO_CAL state while disarmed, per-servo centre
trims (+-200 us) in EEPROM, telemetry, battery reading; the IMU estimate
now always runs (leveling still gated by ROBOT GYRO).

Remote: generated HMI (scripts/make_remote_hmi.py) with pages splash,
drive, status, servos, cal, setup, upload; page-aware NextionUI that only
writes the showing page and only what changed; servo calibration and
UPDATE DISPLAY on the touchscreen and serial console; battery module.
The display is on Serial2 (pins 7/8), found on the real remote; the old
sketch's Serial1 was never connected to it.

Sim: RF24 shim supports ack payloads, API version 8
(hxsim_get_ack_payload); sim_smoke checks telemetry and every CAL command.
Unity CmdPacket mirror updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:42:37 +01:00
mangavalkandClaude Opus 5.5 481610c9fd Add nextion-hmi-tools submodule and nxhmi MCP server config
The nxhmi MCP server (.mcp.json) edits and renders the remote's Nextion HMI;
scripts/make_remote_hmi.py uses its Python package from the submodule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:42:28 +01:00
mangavalkandClaude Opus 5.5 0aab04acbf 2026 remote: two more reference photos of the original remote
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:17:24 +01:00
mangavalkandClaude Opus 5.5 1b8166f470 2026 remote: Nextion project in remote/, fix status-text page names
The old HMI's pages are 0 splashsceen, 1 main, 2 servocal, 3 page0,
4 uploadscreen, 5 joysticks; the link-status texts are main.t1 and
page0.t1 (not page1.t1/page3.t1, which the display silently ignored).
remote.HMI is the 2019 project re-saved by Nextion Editor 1.68, to work
on here instead of in 2019-teensy-nrf24/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 12:17:23 +01:00
mangavalkandClaude Opus 5.5 2a4f6335dd 2026 dongle: LED is PA0, add RX/finder/sweep pin-finding modes to the app
- Confirmed the status LED is on PA0 (active-high). README pin table updated:
  amplifier (AT2401C) control is one of PA1/PB1/PF0/PF1, still to distinguish.
- app.c gains bring-up modes for mapping the amplifier pins:
  - 'x' RX on the hexapod protocol (ch96/250k/HXPD1, 22-byte) + packet counter,
    to find the RX-enable pin by which pin lets the remote's packets arrive;
  - 'f'/'n' carrier-detect (RPD) finder (too noisy alone, kept for reference);
  - 'a' sweep every usable pin HIGH ~3s for LED/scope checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 23:39:50 +01:00
mangavalkandClaude Opus 4.8 4fcf9cf3d7 2026 dongle: race SignalRGB for the port in safeboot_flash too
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-14 23:22:22 +01:00
mangavalkandClaude Opus 4.8 5ae1a014ff 2026 dongle: pre-erase link gate + race SignalRGB for the COM port
- dongle_flash.py aborts before erasing unless the ROM-bootloader link tests
  clean (8/8 GETs), so a flaky software-jump link can't wipe a working stick.
- open_racing() retries opening the port to win the race against SignalRGB,
  which grabs CH340 ports on enumeration.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-14 23:21:18 +01:00
mangavalkandClaude Opus 4.8 97f580b6a5 2026 dongle: own firmware for the USB nRF24 stick, wire-free USB flashing
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>
2026-11-14 23:14:16 +01:00
mangavalkandClaude Opus 5.5 0f9655d646 2026 remote v2: add the generated top-shell + inlays 3MF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 22:12:12 +01:00
mangavalkandClaude Opus 5.5 4aeb79dc89 2026 remote v2: clamps for the 56x80 perfboard, generated inlay 3MF
- remote_v2.scad: main board is the measured 56 x 80 mm perfboard, held by
  4 side clamps (M3 button head + washer into inserts), no holes in the board
- export_3mf.py writes remote_v2_top_inlays.3mf (top shell + honeycomb +
  ON/OFF on filaments 1/2/3); remote_v2_top_multicolor.3mf stays the
  owner's OrcaSlicer project
- STLs re-exported, README printing table and PLANNING notes updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 22:12:02 +01:00
mangavalkandClaude Opus 5.5 80270ba17e 2026 remote v2: printable bottom shell, notes for the PC radio link
- Bottom shell: the brace pivot bosses stand on pillars and the lip's tie
  band steps out at 45 deg (both were floating overhangs); the kickstand
  barrel sits on the bed. Checked by slicing the STLs layer by layer: only
  bridges are left. STLs re-exported.
- remote_v2_top_multicolor.3mf: now the owner's OrcaSlicer project (all
  parts on two plates); export_3mf.py regenerates the plain multi-part file.
- README "Planned": a USB nRF24 stick on the PC so Unity can talk to both
  the robot and the remote (what to work out), plus pointers to the other
  notes for later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:13:28 +01:00
mangavalkandClaude Opus 5.5 60605209fb 2026: remote v2 (flat console for the twist-grip sticks), STL/3MF exports, archive page
remote_v2.scad: a new remote for the same electronics, 216 x 116 x 32 mm,
ASA, two shells printed without supports and joined with M3 heat-set
inserts. Hangs level from a neck strap on a balance-point eyelet (top face
or front edge) with a fold-out body brace; kickstand for the table.
JH-D300X-R1 sticks clamp the plate; main perfboard (Teensy 4.0, nRF24,
IMU) clamped at its sides under the display; UPS board with its LEDs
through the floor. Red honeycomb and white ON/OFF inlays in the first
3 layers. Every part checked for collisions.

- stl/remote_v2/: print-ready STLs, plus a multi-part 3MF (export_3mf.py)
  with the inlays on filaments 2 and 3
- ARCHIVE.md: the original remote with the owner's photos; README shows v2
  and how to print it
- Notes for later: battery-voltage reading, IMU on Wire (18/19) with two
  stick axes moved to A7/A8, a stable 6 V supply for the 18 servos
- remote.scad: its sticks are JH-D300X-R1 (the model uses the D400X drawing)
- *.3mf through Git LFS; repo README says Teensy 4.0 remote

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:57:49 +01:00
mangavalkandClaude Opus 5.5 e23216b3a1 2026 remote: build for the Teensy 4.0 actually in the remote
Board teensy41 -> teensy40. All pins exist on the 4.0; the MPU6050's
Wire2 (SDA2 25 / SCL2 24) is on the underside solder pads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:19:16 +01:00
mangavalkandClaude Opus 5.5 769d72462d 2026 Unity: add editor-generated GDK settings asset and GVH settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:19:15 +01:00
mangavalkandClaude Opus 5.5 91b5b99fd5 2026: OpenSCAD robot and remote, physical joint limits, model in Unity
hardware/openscad/ rebuilds the broken Fusion models as OpenSCAD:
body (top/bottom plate, standoffs, battery bay, switch), legs (coxa
bracket, femur link, tibia, horn adapters, TPU socks, servo cables),
the whole robot, and the remote (shell, lid, Nextion 3.5", JH-D400X-R4
sticks, 18650 UPS board, IMU, Teensy 4.0, USB-C breakout). Every part
was checked by slicing against the original STEP solids; the original's
bugs are fixed and listed in PLANNING.md.

The robot now uses a hexagon leg layout (corner legs 60 deg round from
the mid legs; the corner coxa brackets need turning on their splines).
Physical limits from a collision sweep of the model are in Config.h:
per-leg coxa limits and LEG_CLEARANCE_MM 56 (a leg is 55.2 mm wide at
the joints); the sim API exports them (version 7). sim_smoke passes.

Unity loads the model (export_unity.py -> Resources/OpenScadModel,
OpenScadModel.cs builds a new rig in place of the old scene's robot).
The PCB model's mounting holes now use the exact EasyEDA grid. README
shows renders of both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:14:32 +01:00
mangavalkandClaude Opus 4.7 b1c94e4149 2026 hardware: add main-pcb-2026-11-13/
The Teensy 3.6 carrier board mounted inside the robot body (Teensy
peeks through the top-body hole). Contents:

- PCB_test_2026-11-13.json : EasyEDA PCB source (editor v6.5.61).
- OBJ_test.obj + .mtl      : EasyEDA 3D OBJ export (slab + holes only).
- top.png, bottom.png      : EasyEDA renders of each side; bottom.png
                             is the authoritative source for the
                             JP1-JP7 silkscreen numbering.
- 20190524_234512.jpg      : photo of the populated bottom side.
- 20190524_234518.jpg      : photo of the top side, powered on.
- main-pcb.scad            : parametric OpenSCAD reconstruction. Real
                             board outline, 4 M3 holes, and every major
                             component (Teensy 3.6, nRF24L01+, GY-521
                             IMU, 7805, ZENER, JP7 battery JST, six
                             JST-PH 2mm servo headers JP1-JP6, POWER
                             LED + 510R resistor, "Hexapod v1" silk) on
                             the correct side of the board. Placements
                             are the pad-group centres pulled from the
                             EasyEDA JSON, not eyeballed.
- README.md                : explains the files, the EasyEDA format and
                             unit conversion, which side each part is
                             on, and an authoritative placement table.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-11-13 22:30:14 +01:00
mangavalkandClaude Opus 5.5 cb1e9234c6 2019: add the May 2019 printed robot parts (STL)
Fusion 360 STL exports of the body, legs, hinges, foot, servo horn and
test legs into robot-parts/, and an early remote part into remote-case/.
Found in an old Hexapod folder; the remote files that came with them were
already in the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:00:54 +01:00
mangavalk df54f0866d FireFly: add wisFORlive.pdf
PDF version of the IK derivation. It was in the Hexapod-Archief repo from its first commit (2014) until the 2016 cleanup removed it, so it was only left in that repo's history.
2026-10-25 18:53:59 +01:00
mangavalk 557f633897 Owner's reorganisation: frame into 2009-fpga, media regrouped, old math versions removed
- original-frame/ moves into 2009-fpga/original-frame/ (the FPGA version introduced the frame).
- Media regrouped by the owner: the two 2011-07-01 PNGs and MOV02256-02259 to FireFly, SNC00198.jpg to the FPGA version.
- Removed from the current version (still in the history): docs/math wisFORlive.docx, wisFORlive3.docx, wisFORlive4.docx and 'z axis rotation.url'.
- READMEs, 2026-current/CLAUDE.md and the root timeline updated to match.
2026-10-25 18:50:08 +01:00
mangavalk 3d879ad803 robot/: point the old-sketch references to 2019-teensy-nrf24/Hexapod_Teensy
Comments in Config.h and the README referred to LEGACY/, which is folded into the generation folders. Also 'from the repo root' -> 'from the 2026-current folder'. Comment and documentation changes only; approved by the owner.
2026-10-25 17:47:05 +01:00
mangavalk 1b3102296b Add READMEs for the repo and every generation, root CLAUDE.md and .gitattributes
The root README has the timeline of all generations since 2009. Each generation folder explains its hardware and what is in it. .gitattributes turns off line-ending conversion so all files stay as they were.
2026-10-25 17:33:11 +01:00
mangavalk be287b066e Give the 2014, 2016 and 2019 robot sketches their own sketch folder
The Arduino IDE needs the folder name to match the .ino: HexapodRobot/, Hexapod_NEW/ and Hexapod_Teensy/. References in 2026-current/CLAUDE.md updated.
2026-10-25 17:31:44 +01:00
mangavalk b3dd2e5540 Remove build output and editor files from the current version
Visual Studio build output (.obj, .pdb, .tlog, .sdf, .suo, ipch) of the 2012 IK visualiser and Unity's .vs, Logs and UserSettings of the 2018 simulation. They stay in the history. The built 'Hexapod app.exe' (Debug) is kept. Also drops the per-folder .gitattributes of the Processing sketch (the repo root now defines how files are stored) and the 2016 README of the old Hexapod repo (its only content was a GitLab link).
2026-10-25 17:31:09 +01:00
mangavalk dfd4d34512 Fold LEGACY into the generation folders
The LEGACY copies of HexapodRobot, Hexapod_NEW, Hexapod_Teensy and the old remote sketch were identical to the imported repos and are removed. The old Nextion design moves to 2019-teensy-nrf24/remote-nextion/, the 2019 remote case files to 2019-teensy-nrf24/remote-case/. Paths in CLAUDE.md, READMEs, remote/ comments, sim/build.ps1, the Unity DLL message and .vscode/settings.json now point to the new places. robot/ is not touched (its CLAUDE.md asks to check with the owner first).
2026-10-25 17:30:35 +01:00
mangavalk c666bc6039 Current robot: Fusion 360 designs
Body bottom, bottom and mid leg, servo horn (v5 and v6), Hitec HS-485HB servo model and the remote case (v4 and v40), with their preview images and exports. From D:\Fusion 360 export.
2026-10-25 17:28:46 +01:00
mangavalk 0b2d361716 FireFly: other versions of documents found on the share
Files from Electronics\Hexapod whose content differs from the archive copies. They keep their original file name; a date is added where the name would clash.
2026-10-25 17:28:45 +01:00
mangavalk a5372b902d FireFly (2011-2012): photos and videos
Everything created after 2 Nov 2011 20:44:07, incl. the 'Hexapod 29-11-11' film and media.jpg. From Electronics\Hexapod\media, Verwerkte media and media.jpg.
2026-10-25 17:27:04 +01:00
mangavalk 6c54a0caf2 FPGA version (2009-2011): photos and videos
Everything created on or before 2 Nov 2011 20:44:07, incl. the 'hexapod film 18-11-09'. From Electronics\Hexapod\media and Verwerkte media.
2026-10-25 17:26:36 +01:00
mangavalk 62ddaafd80 FireFly: documents, hardware notes and tools
Math (IK, rotation), planning, research papers, concept images, the Arduino Mega + SSC-32 notes and the two 2011 Windows programs. From Hexapod-Archief documentation/ (files only; its history stays in the archived repo).
2026-10-25 17:26:28 +01:00
mangavalk 204fccba0c Original frame: DXF/DWG designs used by every version from 2009 to 2023
From Hexapod-Archief documentation/design.
2026-10-25 17:26:27 +01:00
mangavalk 883d44f807 Teensy 2019: nRF24L01 test sending a data struct
From the Arduino sketchbook (was GettingStarted_HandlingData).
2019-05-25 20:07:45 +02:00
mangavalk 6fda86ebf2 Teensy 2019: nRF24L01 ping test with the robot's radio pins (CE 39, CSN 15, SCK 14)
From the Arduino sketchbook (was nrf24-GettingStarted-test).
2019-05-25 16:17:27 +02:00
mangavalk d68fb0507e Teensy 2019: MPU6050 accelerometer test
From the Arduino sketchbook (was mpu6050-test).
2019-05-16 21:46:37 +02:00
mangavalk 2373167785 Teensy 2019: read SSC-32 style servo commands, first step to replacing the SSC-32
From the Arduino sketchbook.
2019-05-12 18:30:56 +02:00
mangavalk 413f52c008 FireFly library: variant kept in the 2014 GitLab archive
GPS include disabled, out-of-reach flag instead of the 7-segment error. Exact date unknown; dated at the archive's first commit (Feb 2014).
2014-02-17 11:44:17 +01:00
mangavalk 6e50819e01 FireFly 2012: behaviour rewrite now uses the hexapod library
From Electronics\Hexapod\Arduino sketches 2011-2012\FireFly. Data.h, Def.h and SerD.h moved into the library.
2012-07-23 17:56:33 +02:00
mangavalk 304367a769 FireFly 2012: the robot code as an Arduino library 'hexapod' (v3.1): IK, SSC-32, IR, ultrasonic, GPS, 7-segment
From Electronics\Hexapod\Arduino library 2012.
2012-07-23 17:52:23 +02:00
mangavalk f0b272a1d3 FireFly 2012: start of a behaviour-based rewrite (unfinished, does not compile)
From 'FireFly 19.rar'.
2012-07-19 20:51:25 +02:00
mangavalk 0911543c03 FireFly 2012 v3: later version of May 2012
From Electronics\Hexapod\Arduino sketches 2011-2012\hexapodV3 (backup 2012-07-09).
2012-05-29 18:10:16 +02:00
mangavalk f690f307c1 FireFly 2012 v3: restructured into Data/Converter/IK/Servos classes, IR remote, ultrasonic radar head
From 'hexapodV3 28-april-2012-Backup.rar'. Oud/ is the 2011 code it was based on.
2012-04-28 16:42:59 +02:00
mangavalk 2e063fc0d9 FireFly 2012: handheld remote with graphic LCD, IR receiver and Wii Nunchuk
From the Arduino sketchbook (Electronics\Arduino\Hexapod\hexapod_remote_glcd, was GLCD).
2012-03-31 15:38:55 +02:00
mangavalk 8e66e26bb9 FireFly 2011: tuned leg positions, walk sequence and IK
From 'hexapod V2 29-12-11.rar' (main file was hexapod.pde).
2011-12-02 22:03:05 +01:00
mangavalk fe472bfce9 FireFly 2011: Arduino Mega + SSC-32, Wii Nunchuk, preset walking sequences
From Electronics\Hexapod\Arduino sketches 2011-2012\hexapod_oud (banner 'Version 3.0').
2011-10-09 15:56:03 +02:00
mangavalk 160b6ec36a Import Hexapod (2014-2022) with full history 2026-10-25 17:24:12 +01:00
mangavalk 29573971bb Import remote (2019) with full history 2026-10-25 17:23:49 +01:00
mangavalk 7638d594df Import Hexapod-processing (2014) with full history 2026-10-25 17:23:49 +01:00
mangavalk a22ce93ab2 Import Hexapod-App (2012) with full history 2026-10-25 17:23:48 +01:00
mangavalk aa35df1575 Import Hexapod_Simulation_Unity (2018-2023) with full history 2026-10-25 17:23:48 +01:00
mangavalkandClaude Opus 5.5 09f7424714 LEGACY: older hexapod sketches (Hexapod_NEW, HexapodRobot)
From https://mangavalk.com/Hexapod/Hexapod @ 7945005 (its Hexapod_Teensy
is identical to the copy already in LEGACY). Earlier electronics
generation: on-board IK driving an external SSC-32-style servo
controller. Notes on what still applies are in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 01:17:46 +02:00