{
  "version": "0.1",
  "title": "OpenLCH open low-cost humanoid (v0.3): wiring",
  "components": [
    {
      "id": "board-milk-v-duo-s",
      "name": "Milk-V Duo S (SG2000)",
      "kind": "board",
      "outline": [
        0.04318,
        0.04318
      ],
      "holes": [
        [
          0.00254,
          0.00254,
          0.0025
        ],
        [
          0.04064,
          0.00254,
          0.0025
        ],
        [
          0.00254,
          0.04064,
          0.0025
        ],
        [
          0.04064,
          0.04064,
          0.0025
        ]
      ],
      "source": "https://github.com/milkv-duo/duo-files/blob/b98e4af6688639640cb4c37dbb75aa7130710cda/duo-s/hardware/DUO_S_MB_V1_2-TOP.pdf",
      "ports": [
        {
          "id": "usb-c",
          "label": "USB-C (power in, USB device / USB-NCM networking, flashing)",
          "type": "usb",
          "position": [
            0.02543,
            0.04086,
            0.0031
          ]
        },
        {
          "id": "usb-a",
          "label": "USB-A 2.0 host port (upright / vertical-tongue type)",
          "type": "usb",
          "position": [
            0.03116,
            0.00215,
            0.00883
          ],
          "size": [
            0.00582,
            0.01385,
            0.01445
          ]
        },
        {
          "id": "rj45",
          "label": "100 Mbps Ethernet RJ45",
          "type": "ethernet",
          "position": [
            0.01716,
            0.00586,
            0.00835
          ],
          "size": [
            0.01593,
            0.02125,
            0.0135
          ]
        },
        {
          "id": "j3-header",
          "label": "J3 26-pin GPIO header (3.3 V; UART, I2C, SPI, PWM), pin 1 at the Ethernet end, inner column",
          "type": "ethernet",
          "position": [
            0.00254,
            0.02159,
            0.00585
          ],
          "size": [
            0.00508,
            0.03302,
            0.0085
          ]
        },
        {
          "id": "j4-header",
          "label": "J4 26-pin header (pins 27-52: audio, MIPI DSI, 1.8 V GPIO)",
          "type": "signal",
          "position": [
            0.04064,
            0.02159,
            0.00585
          ],
          "size": [
            0.00508,
            0.03302,
            0.0085
          ]
        },
        {
          "id": "j1-csi",
          "label": "J1 MIPI CSI camera connector, 16-pin 0.5 mm pitch FPC",
          "type": "signal",
          "position": [
            0.03492,
            0.02053,
            0.0031
          ]
        },
        {
          "id": "j2-csi",
          "label": "J2 MIPI CSI camera connector, 15-pin 1.0 mm pitch FPC (pin 1 at the Ethernet end)",
          "type": "ethernet",
          "position": [
            0.00869,
            0.02807,
            0.0031
          ]
        },
        {
          "id": "poe-header",
          "label": "4-pin PoE header (for the Duo S PoE HAT), pin 1 at the Ethernet edge",
          "type": "ethernet",
          "position": [
            0.00673,
            0.00521,
            0.00585
          ],
          "size": [
            0.002,
            0.01,
            0.0085
          ]
        },
        {
          "id": "microsd",
          "label": "microSD card slot (on the BOTTOM side)",
          "type": "signal",
          "position": [
            0.01275,
            0.0354,
            0.0031
          ]
        },
        {
          "id": "ipex-antenna",
          "label": "Wi-Fi/BT antenna IPEX (U.FL-style) connector",
          "type": "signal",
          "position": [
            0.03487,
            0.04097,
            0.0031
          ]
        },
        {
          "id": "unstated-signal",
          "label": "connector not stated",
          "type": "signal"
        }
      ]
    },
    {
      "id": "board-waveshare-bus-servo-adapter-a",
      "name": "Waveshare Bus Servo Adapter (A) (sold as \"Serial Bus Servo Driver Board\", SKU 25514)",
      "kind": "board",
      "outline": [
        0.042,
        0.033
      ],
      "holes": [
        [
          0.0025,
          0.0025,
          0.0025
        ],
        [
          0.0395,
          0.0025,
          0.0025
        ],
        [
          0.0025,
          0.0305,
          0.0025
        ],
        [
          0.0395,
          0.0305,
          0.0025
        ]
      ],
      "source": "https://www.waveshare.com/img/devkit/accBoard/Bus-Servo-Adapter-A/Bus-Servo-Adapter-A-details-size.jpg",
      "ports": [
        {
          "id": "dc1-dc-jack",
          "label": "DC1 power input jack, 5.5 x 2.1 mm, silkscreen 'DC 9~12.6V' (DC-005)",
          "type": "power",
          "position": [
            0.00991,
            0.00649,
            0.0071
          ],
          "size": [
            0.0094,
            0.014,
            0.011
          ]
        },
        {
          "id": "h1-screw-terminal",
          "label": "H1 power input screw terminal, silkscreen 'DC+ DC-' (KF350-2P / DG350-3.5-02P, 3.5 mm pitch)",
          "type": "power",
          "position": [
            0.02085,
            0.00285,
            0.0058
          ],
          "size": [
            0.008,
            0.0068,
            0.0084
          ]
        },
        {
          "id": "usb-c",
          "label": "Type_C1 USB-C (CH343P USB-UART), silkscreen 'USB'",
          "type": "usb",
          "position": [
            0.03211,
            0.00305,
            0.00323
          ],
          "size": [
            0.00959,
            0.00771,
            0.00325
          ]
        },
        {
          "id": "h5-servo",
          "label": "H5 serial bus servo port (left), silkscreen 'D V G' (DATA, V = DC input, GND)",
          "type": "serial-servo",
          "position": [
            0.01053,
            0.03029,
            0.00455
          ],
          "size": [
            0.01,
            0.0049,
            0.0059
          ]
        },
        {
          "id": "h3-servo",
          "label": "H3 serial bus servo port (right), silkscreen 'D V G' (DATA, V = DC input, GND)",
          "type": "serial-servo",
          "position": [
            0.02247,
            0.03029,
            0.00455
          ],
          "size": [
            0.01,
            0.0049,
            0.0059
          ]
        },
        {
          "id": "h2-uart",
          "label": "H2 UART header, silkscreen 'TX RX GND' / 'UART' (for an external MCU, used with jumpers on A)",
          "type": "uart",
          "position": [
            0.03312,
            0.03142,
            0.0061
          ],
          "size": [
            0.0074,
            0.00233,
            0.009
          ]
        },
        {
          "id": "h4-jumpers",
          "label": "H4 mode jumpers (2x3): A = UART~SERVO, B = USB~SERVO (LeRobot: set both jumpers on B)",
          "type": "usb",
          "position": [
            0.03566,
            0.01841,
            0.0061
          ],
          "size": [
            0.00486,
            0.00741,
            0.009
          ]
        },
        {
          "id": "unstated-signal",
          "label": "connector not stated",
          "type": "signal"
        }
      ]
    },
    {
      "id": "board-waveshare-rp2040-lcd-1-28",
      "name": "Waveshare RP2040-LCD-1.28 (RP2040 MCU board with 1.28 inch round LCD and QMI8658 IMU, SKU 22668)",
      "kind": "board",
      "outline": [
        0.03652,
        0.03951
      ],
      "source": "https://www.waveshare.com/img/devkit/RP2040-LCD-1.28/RP2040-LCD-1.28-details-size.jpg",
      "ports": [
        {
          "id": "usb-c",
          "label": "Type_C1 USB-C (power and USB to the RP2040)",
          "type": "usb",
          "position": [
            0.01825,
            0.03548,
            0.00323
          ],
          "size": [
            0.00959,
            0.00771,
            0.00325
          ]
        },
        {
          "id": "h1-header",
          "label": "H1 GPIO header, 'Header 10X2' (GPIO0-GPIO17 and power), 1.27 mm pitch female",
          "type": "power",
          "position": [
            0.00476,
            0.01821,
            0.00385
          ],
          "size": [
            0.003,
            0.0131,
            0.0045
          ]
        },
        {
          "id": "h2-header",
          "label": "H2 GPIO header, 'Header 10X2' (GPIO18-GPIO29, VSYS, GND, RUN, SWD, 3V3), 1.27 mm pitch female",
          "type": "signal",
          "position": [
            0.03176,
            0.01821,
            0.00385
          ],
          "size": [
            0.003,
            0.0131,
            0.0045
          ]
        },
        {
          "id": "p1-battery",
          "label": "P1 lithium battery header (PH1.25-2P / MX1.25, + and - marked)",
          "type": "power",
          "position": [
            0.01081,
            0.02736,
            0.0026
          ],
          "size": [
            0.0056,
            0.0045,
            0.002
          ]
        },
        {
          "id": "unstated-signal",
          "label": "connector not stated",
          "type": "signal"
        }
      ]
    },
    {
      "id": "board-milk-v-cam-gc2083",
      "name": "Milk-V CAM-GC2083 camera module (GC2083 2 MP sensor, PCB silkscreen DUO_SENSOR_V1.0)",
      "kind": "board",
      "source": "https://milkv.io/docs/duo/camera/gc2083",
      "ports": [
        {
          "id": "j1-fpc",
          "label": "J1 16-pin MIPI CSI FPC connector (schematic part 'FPC_16P_LIE'; docs: 16-pin, A-type same-side ribbon cable) to the Duo…",
          "type": "signal"
        },
        {
          "id": "unstated-signal",
          "label": "connector not stated",
          "type": "signal"
        }
      ]
    },
    {
      "id": "board-dfrobot-dfr0571",
      "name": "DFRobot DC-DC Buck-Mode Power Module (8~28V to 5V 3A), SKU DFR0571 (PCB marked DM02-2805002DS REV1.4)",
      "kind": "board",
      "outline": [
        0.022,
        0.0165
      ],
      "source": "https://www.dfrobot.com/product-1768.html",
      "ports": [
        {
          "id": "vin-pads",
          "label": "Input pads: Vi+ (x2) and GND (x2), castellated half-holes on the input short edge (8-28 V in)",
          "type": "power"
        },
        {
          "id": "vout-pads",
          "label": "Output pads: Vo+ (x2) and GND (x2), castellated half-holes on the output short edge (5 V out)",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-left-leg-servos-ids-1-5-the-creators-handwritten",
      "name": "Left leg servos, IDs 1-5 (toml: hip_roll 1, hip_yaw 2, hip_pitch 3, knee_pitch 4, ankle_pitch 5); the creators' handwritten ID sheet draws one chain F-1 - F-2 - F-3 - F4 - F5",
      "kind": "servo",
      "node": "knee_pitch_right_2_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-one-daisy-chain",
      "name": "One daisy chain",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-right-leg-servos-ids-6-10-id-sheet-draws-one-cha",
      "name": "Right leg servos, IDs 6-10 (toml: hip_roll 6 ... ankle_pitch 10); ID sheet draws one chain F-6 - F-7 - F-8 - F-9 - F-10",
      "kind": "servo",
      "node": "knee_pitch_right_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-left-arm-servos-ids-11-13-id-sheet-draws-a11-a12",
      "name": "Left arm servos, IDs 11-13 (toml: shoulder_yaw 11, shoulder_pitch 12, elbow_pitch 13); ID sheet draws A11 - A12 - A13",
      "kind": "servo",
      "node": "left_shoulder_yaw_motor_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-right-arm-servos-ids-14-16-id-sheet-draws-a14-a1",
      "name": "Right arm servos, IDs 14-16 (toml: shoulder_yaw 14, shoulder_pitch 15, elbow_pitch 16); ID sheet draws A14 - A15 - A16",
      "kind": "servo",
      "node": "right_shoulder_yaw_motor_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-ankle-servo",
      "name": "Ankle servo (foot)",
      "kind": "servo",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-knee-servo-left-port-new-wire-from-knee-servo-ri",
      "name": "Knee servo left port; new wire from knee servo right port continues up the leg",
      "kind": "servo",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-hip-pitch-servo",
      "name": "Hip pitch servo",
      "kind": "servo",
      "node": "Torso_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-long-wire-up-towards-the-head-short-wire-through",
      "name": "Long wire up towards the head (electronics); short wire through the back hole to the top of the thigh",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-shoulder-yaw-servo-body-side-port",
      "name": "Shoulder yaw servo body-side port",
      "kind": "servo",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-long-wire-through-the-holes-towards-the-head",
      "name": "Long wire through the holes towards the head",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-shoulder-yaw-servo",
      "name": "Shoulder yaw servo (unused port)",
      "kind": "servo",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-elbow-yaw-servo",
      "name": "Elbow yaw servo",
      "kind": "servo",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-host-computer",
      "name": "Host computer",
      "kind": "computer",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "w-left-leg-servos-ids-1-5-the-creators-handwritten",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-one-daisy-chain",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Serial bus servo cable (5264-3P compatible)",
      "notes": "Source: runtime/README.md servo ID photo; runtime/config/stompymicro.toml"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-right-leg-servos-ids-6-10-id-sheet-draws-one-cha",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-one-daisy-chain",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Serial bus servo cable",
      "notes": "Source: runtime/README.md servo ID photo; stompymicro.toml"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "w-left-arm-servos-ids-11-13-id-sheet-draws-a11-a12",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-one-daisy-chain",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Serial bus servo cable",
      "notes": "Source: servo ID photo; stompymicro.toml"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-right-arm-servos-ids-14-16-id-sheet-draws-a14-a1",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-one-daisy-chain",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Serial bus servo cable",
      "notes": "Source: servo ID photo; stompymicro.toml"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "w-ankle-servo",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-knee-servo-left-port-new-wire-from-knee-servo-ri",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Servo cable",
      "notes": "Source: docs assemble.mdx#install-knee-pitch-servos-and-wiring"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "w-hip-pitch-servo",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-long-wire-up-towards-the-head-short-wire-through",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Servo cables, one long and one short",
      "notes": "Source: docs assemble.mdx#prepare-hip-pitch-servos-wiring"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "w-shoulder-yaw-servo-body-side-port",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-long-wire-through-the-holes-towards-the-head",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Long servo cable",
      "notes": "Source: docs assemble.mdx#connect-wiring-for-shoulder-servos"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "w-shoulder-yaw-servo",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-elbow-yaw-servo",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "Short servo cable",
      "notes": "Source: docs assemble.mdx#connect-elbow-yaw-servos"
    },
    {
      "id": "wire-9",
      "from": {
        "component": "board-milk-v-duo-s",
        "port": "usb-c"
      },
      "to": {
        "component": "w-host-computer",
        "port": "usb"
      },
      "type": "usb",
      "label": "USB (SSH at 192.168.42.1) or Wi-Fi",
      "notes": "Source: runtime/README.md; docs setup.mdx"
    },
    {
      "id": "wire-10",
      "from": {
        "component": "board-milk-v-duo-s",
        "port": "unstated-signal"
      },
      "to": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "unstated-signal"
      },
      "type": "signal",
      "label": "not stated",
      "notes": "Source: not stated in any source opened"
    },
    {
      "id": "wire-11",
      "from": {
        "component": "board-milk-v-duo-s",
        "port": "unstated-signal"
      },
      "to": {
        "component": "board-milk-v-cam-gc2083",
        "port": "unstated-signal"
      },
      "type": "signal",
      "label": "not stated",
      "notes": "Source: BoM only"
    }
  ]
}
