Skip to the content
2 layers30 × 20 mmCrab robot, the printed circuit board in 3D

A four-legged toy crab with 8 SG90 servos. Scan a QR code to join Wi-Fi, then drive it from a web page on your phone.

Size
30 × 20 mm
Copper layers
2
Thickness
1.6 mm
Parts
6
Nets
2
Pads
6
Tracks, vias
2, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
6 Nov 2026
Updated
6 Nov 2026

Overview

Crab robot is an open-source printed circuit board by triluongmh-byte, from the triluongmh-byte/crab-robot repository on GitHub. It is a 2-layer board of 30 × 20 mm with 6 parts on 2 nets, routed with 2 tracks and 0 vias.

It belongs with the robots and motor control boards of this library.

README

README.md

Crab Robot A1 V4

A four-legged toy crab with 8 SG90 servos. Scan a QR code to join Wi-Fi, then drive it from a web page on your phone. Electronics: LILYGO T-Display-S3 (non-touch) + PCA9685 servo driver + 8-LED WS2812 bar, powered by a two-port 5 V USB power bank. Everything is hand-wired; the 30×20 mm KiCad board is a dummy for the schematic only — it is not ordered or fitted.

Status (6 Nov 2026): candidate ready, teamReady=true. Board, firmware, case and integration passed independent review after repairs. Not yet printed, flashed, assembled or run — walking on a real floor is unproven.

Tiếng Việt: README.vi.md

Getting started

  1. Look at the BOM and the renders: assembled, exploded, top, front.
  2. Print the test pieces first: TEST ONLY + MATING_TEST. The coupons are not part of the robot; if the two MATING_TEST parts fit, keep them as P05/P09. Go through the checklist and confirm both tests pass before printing the production plates.
  3. Follow the step-by-step assembly overview: Full kit → Step 1…9, with a screw/nut card and wiring notes per step.
  4. Wire it, then flash the firmware yourself. Unplug the servo power USB while flashing.
  5. Scan the Wi-Fi QR, pick your 2.4 GHz home network and enter the password, then scan the web-address QR. If the page does not open, go to http://192.168.4.1/. Hold a button to walk, release to stop; if the 600 ms heartbeat is lost the gait stops and the robot eases back to standing. The Assembly page centers, trims and saves the servos. Hold BOOT for 8 s to clear Wi-Fi.

Current build

ItemValue
Body (without legs)126×75×47 mm, including lid screw heads
Parts / screws12 parts; 4× M3×12 + 4× M3×20; 8× M3 nuts; SG90 screws from the servo bag
Print2 PETG plates, ~4h27 + 2h30 = 6h57; 186.9 g
Robot with battery~430–440 g estimated — weigh it when assembled
Joint range±30° in CAD, checked every 5°, min clearance 3.3 mm; all four legs in phase
Symmetry (STEP)0 mm / 0°; not checked on a print
FirmwareBuilds for ESP32-S3; host tests pass for Wi-Fi, web, QR, API, assembly mode, BOOT, gait and PCA9685

Print all holds all parts P01–P12: plate 1 = base + lid, plate 2 = legs + clamp bars.

Print settings used: Bambu A1, 0.4 nozzle, PETG Basic (flow-rate calibrated), 0.20 mm layers, 2 walls, 7% grid infill, tree supports (auto). Part orientation and assembly notes are in the case guide and the fastener map.

Assumptions — check by hand

  • SG90/horn, LILYGO case/Dupont pins, PCA9685 and LED bar sizes come from reference models, not measured from the owner's parts.
  • Power bank: max 100×65×15 mm, 120 g, ≥2.4 A per port.
  • WS2812 data driven directly at 3.3 V is untested: keep the DIN wire short and next to GND; if it flickers, unplug the LED bar and use the robot without it.
  • Still to check on the real robot: servo horn/pocket fit (use the coupon), wire bend under the LILYGO/PCA, QR scanning with the lid closed, real servo direction, leg grip, and whether the power bank auto-shuts off.
  • Sideways walking comes from a simple kinematic model, not a floor-contact simulation. The default gait is slow to limit current spikes.

Pass/fail steps for all of these are in CHECKLIST-RAP — no electrical measuring needed.

Build from source

Run ./build.sh in a KiCad Harness environment with KiCad, CadQuery, Bambu Studio and Arduino CLI installed. The script reports missing tools; it never downloads, installs, flashes, prints or orders anything. Order: board export/checks → STEP → CAD → slice/3MF → overview and images → firmware and tests. Clean-clone validation is in BUILD-VALIDATION.md.

Git holds source, inputs and docs; outputs and caches are ignored, so the render/3MF links above only work after a build. On a new machine, fix the absolute library paths in firmware/flash.json before flashing. Source layout: CAD in case/, firmware in firmware/crab/, board in engineering/. See also the original request and reference images.

Parts

6
QtyValueFootprintReferences
2NPTH_3.2mmDummy:MountingHole_3.2mm_M3MH1, MH2
1SOLDER_PAD_1Dummy:SolderPad_2x3mmJ1
1SOLDER_PAD_2Dummy:SolderPad_2x3mmJ2
1SOLDER_PAD_3Dummy:SolderPad_2x3mmJ3
1SOLDER_PAD_4Dummy:SolderPad_2x3mmJ4

Similar boards

  • 2 layers18.5 × 11.1 mmSwitch, the printed circuit board in 3D

    Switch

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    6 parts4.3kMIT
  • 2 layers14.6 × 33 mmBrain board SD Card 1, the printed circuit board in 3D

    Brain board SD Card 1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    6 parts1.2k
  • 2 layers9 × 9 mmDpoint, the printed circuit board in 3D

    Dpoint

    Jcparkyn/dpoint

    Open-source digital stylus using camera tracking and inertial measurements

    6 parts1.1kMIT
  • 2 layers51.5 × 16.6 mmMicroswitchXY Endstop, the printed circuit board in 3D

    MicroswitchXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    6 parts1.1kGPL-3.0
  • 2 layers21.9 × 76.7 mmAmiga External, the printed circuit board in 3D

    Amiga External

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    6 parts1kGPL-3.0
  • 2 layers88.9 × 50.8 mmBusinesscard, the printed circuit board in 3D

    Businesscard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    6 parts915
  • 2 layers20.3 × 15.2 mmL0 RGB led, the printed circuit board in 3D

    L0 RGB led

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    6 parts546MIT
  • 2 layers9 × 3.6 mmOpticalEncoder, the printed circuit board in 3D

    OpticalEncoder

    adamb314/ServoProject

    Getting the most out of your hobby servo

    6 parts545

Questions

How big is the Crab robot PCB?

It measures 30 × 20 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Crab robot use?

6 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Crab robot KiCad files?

From the triluongmh-byte/crab-robot repository on GitHub, at the commit this page was made from: the board is design/main.kicad_pcb and its schematic design/main.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Crab robot design in my own project?

Its repository states no licence, so its author keeps all rights: ask triluongmh-byte before reusing the design.