velxio/frontend/public
David Montero Crespo 0d5a1d5838 feat(motors): fix stepper rotation + add A4988 driver (real Fritzing SVG)
The stepper-motor and biaxial-stepper parts only decoded a one-hot wave-drive coil sequence, so they never rotated under the common two-phase full-step / Stepper.h / AccelStepper drive that Wokwi's own examples use -- only the servo moved. Rewrote both decoders to track the net magnetic-field vector of the coils (atan2 of the H-bridge currents), so the rotor follows wave, two-phase full-step and half-step drive alike, whether driven directly from GPIO or through a driver's outputs.

Also adds an A4988 STEP/DIR stepper driver (parity with Wokwi's wokwi-a4988): velxio-a4988 element renders the real Pololu A4988 Fritzing breadboard SVG (public/components/a4988.svg); MotorDriverParts.ts finds the wired stepper via the netlist and advances it one (micro)step per STEP rising edge in the DIR direction (MS1-3 microstep + active-low ENABLE). Metadata in component-overrides.json. Three examples (Uno/ESP32/Pico) wire MCU STEP/DIR -> A4988 -> stepper, coil map aligned to Wokwi (1A->B+,1B->B-,2A->A+,2B->A-).

Verified in-browser: motor rotates on Arduino Uno (avr8js) and Raspberry Pi Pico (rp2040js). tsc --noEmit clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 16:28:34 -03:00
..
.well-known feat(android): Digital Asset Links for TWA verification 2026-05-23 04:42:56 -03:00
boards feat: STM32 (Blue Pill / Black Pill) QEMU emulation + Pro board gating 2026-05-30 19:06:14 -03:00
component-svgs fix(scripts): generate-component-svgs no longer skips bmp280 / fails on ssd1306 2026-05-09 00:05:28 -03:00
components feat(motors): fix stepper rotation + add A4988 driver (real Fritzing SVG) 2026-05-31 16:28:34 -03:00
examples-thumbs chore(examples): refresh 6 thumb file(s) [auto] 2026-05-31 08:48:21 +02:00
firmware
fonts
marketing Refactor code structure for improved readability and maintainability 2026-05-21 02:32:19 -03:00
wasm/ngspice-interactive feat(sim/spice): vendor ngspice+XSpice WASM and add NgSpiceInteractive client (Phase 1a) 2026-05-15 16:14:50 +02:00
android-chrome-192.png
android-chrome-512.png
apple-touch-icon.png
components-metadata.json feat(motors): fix stepper rotation + add A4988 driver (real Fritzing SVG) 2026-05-31 16:28:34 -03:00
favicon-16x16.png
favicon-32x32.png
favicon-48x48.png
favicon.ico
favicon.svg
image.png
image.webp
llms.txt feat(seo): llms.txt for AI search engine indexing (D5.6) 2026-05-29 15:54:29 +02:00
manifest.webmanifest chore(manifest): make PWA mobile-friendly + better TWA copy 2026-05-23 03:38:31 -03:00
og-image.png
og-image.svg
robots.txt feat(seo+nav+community): public-project indexing + classroom nav + examples grid 2026-05-29 18:11:28 +02:00
sitemap.xml chore(sitemap): bump lastmod dates to 2026-05-26 2026-05-26 20:53:24 +02:00
vite.svg