{
  "version": "0.1",
  "title": "XLeRobot dual-arm home robot: wiring",
  "components": [
    {
      "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-serial-servo",
          "label": "connector not stated",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "board-raspberry-pi-5",
      "name": "Raspberry Pi 5",
      "kind": "board",
      "outline": [
        0.085,
        0.056
      ],
      "holes": [
        [
          0.0035,
          0.0035,
          0.0027
        ],
        [
          0.0615,
          0.0035,
          0.0027
        ],
        [
          0.0035,
          0.0525,
          0.0027
        ],
        [
          0.0615,
          0.0525,
          0.0027
        ]
      ],
      "source": "https://datasheets.raspberrypi.com/rpi5/raspberry-pi-5-mechanical-drawing.pdf",
      "ports": [
        {
          "id": "usb-c-power",
          "label": "USB-C power input",
          "type": "power",
          "position": [
            0.0112,
            0.00246,
            0.0032
          ],
          "size": [
            0.00894,
            0.00732,
            0.0032
          ]
        },
        {
          "id": "rtc-battery-j5",
          "label": "RTC battery connector J5 (silkscreen BAT)",
          "type": "power",
          "position": [
            0.019,
            0.00475,
            0.00375
          ],
          "size": [
            0.004,
            0.0029,
            0.0043
          ]
        },
        {
          "id": "micro-hdmi-0",
          "label": "Micro-HDMI 0 (silkscreen HDMI0, nearer USB-C)",
          "type": "usb",
          "position": [
            0.0258,
            0.00262,
            0.0033
          ],
          "size": [
            0.00719,
            0.0085,
            0.0034
          ]
        },
        {
          "id": "uart",
          "label": "Debug UART connector (silkscreen UART), between the micro-HDMI ports",
          "type": "uart",
          "position": [
            0.0325,
            0.00395,
            0.0038
          ],
          "size": [
            0.005,
            0.0029,
            0.0044
          ]
        },
        {
          "id": "micro-hdmi-1",
          "label": "Micro-HDMI 1 (silkscreen HDMI1)",
          "type": "signal",
          "position": [
            0.0392,
            0.00262,
            0.0033
          ],
          "size": [
            0.00719,
            0.0085,
            0.0034
          ]
        },
        {
          "id": "cam-disp-1",
          "label": "MIPI camera/display connector CAM/DISP 1 (the one nearer the HDMI ports)",
          "type": "signal",
          "position": [
            0.0486,
            0.00849,
            0.00365
          ],
          "size": [
            0.003,
            0.0167,
            0.0041
          ]
        },
        {
          "id": "cam-disp-0",
          "label": "MIPI camera/display connector CAM/DISP 0 (the one nearer the Ethernet port)",
          "type": "ethernet",
          "position": [
            0.05481,
            0.00849,
            0.00358
          ],
          "size": [
            0.003,
            0.0167,
            0.00395
          ]
        },
        {
          "id": "poe-j14",
          "label": "4-pin PoE header J14 (silkscreen PoE)",
          "type": "signal",
          "position": [
            0.0615,
            0.0095,
            0.0031
          ]
        },
        {
          "id": "ethernet-j10",
          "label": "Gigabit Ethernet J10 (silkscreen ETHERNET)",
          "type": "ethernet",
          "position": [
            0.07725,
            0.0102,
            0.00825
          ],
          "size": [
            0.0216,
            0.01593,
            0.0133
          ]
        },
        {
          "id": "usb3-stack-j12",
          "label": "USB 3.0 type-A double stack J12 (silkscreen USB3, middle of the port edge)",
          "type": "usb",
          "position": [
            0.07924,
            0.0291,
            0.0097
          ],
          "size": [
            0.01753,
            0.0145,
            0.01619
          ]
        },
        {
          "id": "usb2-stack-j11",
          "label": "USB 2.0 type-A double stack J11 (silkscreen USB2, top of the port edge)",
          "type": "usb",
          "position": [
            0.07906,
            0.047,
            0.00962
          ],
          "size": [
            0.01745,
            0.0145,
            0.01603
          ]
        },
        {
          "id": "fan-j17",
          "label": "PWM fan connector J17 (silkscreen FAN)",
          "type": "pwm",
          "position": [
            0.06675,
            0.052,
            0.00375
          ],
          "size": [
            0.0029,
            0.006,
            0.0043
          ]
        },
        {
          "id": "gpio-j8",
          "label": "40-pin GPIO header J8 (pin 1 at x 8.37, y 51.23: row nearer the board centre, end nearer the corner hole; marked by a s…",
          "type": "signal",
          "position": [
            0.0325,
            0.0525,
            0.00587
          ],
          "size": [
            0.0508,
            0.00508,
            0.00854
          ]
        },
        {
          "id": "pcie-ffc",
          "label": "Single-lane PCIe FFC connector (silkscreen PCIe), on the left edge",
          "type": "signal",
          "position": [
            0.00261,
            0.03,
            0.00365
          ],
          "size": [
            0.003,
            0.0137,
            0.0041
          ]
        },
        {
          "id": "microsd",
          "label": "microSD card socket (underside; card inserts from the -x edge)",
          "type": "signal",
          "position": [
            0.00795,
            0.02809,
            0.0031
          ]
        },
        {
          "id": "unstated-usb",
          "label": "connector not stated",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-power-station-usb-c",
      "name": "Power station USB-C (fast-charging section)",
      "kind": "part",
      "node": "zmass_cart_tray",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-power-station-usb-c-2",
      "name": "Power station USB-C",
      "kind": "part",
      "node": "zmass_cart_tray",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-lekiwi-base-motor-chain",
      "name": "LeKiwi base motor chain (motor 7 to 8 to 9)",
      "kind": "motor",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-one-so-101-arm-s-motor-chain",
      "name": "One SO-101 arm's motor chain (and so its control board)",
      "kind": "motor",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-head-motors-and-the-other-arm",
      "name": "Head motors (IDs 7, 8) and the other arm",
      "kind": "motor",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-2-wrist-cameras-and-the-head-camera",
      "name": "2 wrist cameras and the head camera",
      "kind": "camera",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "w-power-station-usb-c",
        "port": "power"
      },
      "to": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "dc1-dc-jack"
      },
      "type": "power",
      "label": "USB-C to DC cable (12V)",
      "notes": "Source: assemble.md#Wiring; material.md#Electronics"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-power-station-usb-c",
        "port": "power"
      },
      "to": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "dc1-dc-jack"
      },
      "type": "power",
      "label": "USB-C to DC cable (12V)",
      "notes": "Source: assemble.md#Wiring; material.md#Electronics"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "w-power-station-usb-c-2",
        "port": "power"
      },
      "to": {
        "component": "board-raspberry-pi-5",
        "port": "usb-c-power"
      },
      "type": "power",
      "label": "USB-C to USB-C cable",
      "notes": "Source: assemble.md#Wiring"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "usb-c"
      },
      "to": {
        "component": "board-raspberry-pi-5",
        "port": "unstated-usb"
      },
      "type": "usb",
      "label": "USB-C to USB-A data cable",
      "notes": "Source: assemble.md#Wiring"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "usb-c"
      },
      "to": {
        "component": "board-raspberry-pi-5",
        "port": "unstated-usb"
      },
      "type": "usb",
      "label": "USB-C to USB-A data cable",
      "notes": "Source: assemble.md#Wiring"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "w-lekiwi-base-motor-chain",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-one-so-101-arm-s-motor-chain",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "extended 5264 3-pin motor cable",
      "notes": "Source: assemble.md#Wiring; figure 4599c9d0"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "board-waveshare-bus-servo-adapter-a",
        "port": "unstated-serial-servo"
      },
      "to": {
        "component": "w-head-motors-and-the-other-arm",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "motor cable (shown in the wiring figure)",
      "notes": "Source: assemble.md#Configure Motors; figure 798eeebf"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "w-2-wrist-cameras-and-the-head-camera",
        "port": "usb"
      },
      "to": {
        "component": "board-raspberry-pi-5",
        "port": "unstated-usb"
      },
      "type": "usb",
      "label": "camera USB cables",
      "notes": "Source: assemble.md#Wiring; figure 798eeebf; material.md#Electronics (Anker USB Hub)"
    }
  ]
}
