{
  "version": "0.1",
  "title": "3D-printed humanoid torso with arms and 13 Dynamixel servos: wiring",
  "components": [
    {
      "id": "board-raspberry-pi-3-model-b",
      "name": "Raspberry Pi 3 Model B",
      "kind": "board",
      "outline": [
        0.085,
        0.056
      ],
      "holes": [
        [
          0.0035,
          0.0035,
          0.00275
        ],
        [
          0.0615,
          0.0035,
          0.00275
        ],
        [
          0.0035,
          0.0525,
          0.00275
        ],
        [
          0.0615,
          0.0525,
          0.00275
        ]
      ],
      "source": "https://datasheets.raspberrypi.com/rpi3/raspberry-pi-3-b-mechanical-drawing.pdf",
      "ports": [
        {
          "id": "micro-usb-power",
          "label": "Micro-USB power input (silkscreen PWR IN)",
          "type": "power",
          "position": [
            0.0106,
            0.00175,
            0.0031
          ]
        },
        {
          "id": "hdmi",
          "label": "HDMI (full size)",
          "type": "signal",
          "position": [
            0.032,
            0.00458,
            0.00485
          ],
          "size": [
            0.0145,
            0.01215,
            0.0065
          ]
        },
        {
          "id": "audio-av",
          "label": "3.5 mm audio / composite video jack (silkscreen A/V)",
          "type": "power",
          "position": [
            0.0535,
            0.005,
            0.0046
          ],
          "size": [
            0.007,
            0.015,
            0.006
          ]
        },
        {
          "id": "csi-camera",
          "label": "CSI camera connector (silkscreen CAMERA)",
          "type": "signal",
          "position": [
            0.045,
            0.0115,
            0.00435
          ],
          "size": [
            0.00395,
            0.0224,
            0.0055
          ]
        },
        {
          "id": "dsi-display",
          "label": "DSI display connector (silkscreen DISPLAY)",
          "type": "signal",
          "position": [
            0.00348,
            0.028,
            0.00435
          ],
          "size": [
            0.00395,
            0.0224,
            0.0055
          ]
        },
        {
          "id": "usb-a-lower",
          "label": "USB 2.0 type-A double stack (lower, nearer Ethernet)",
          "type": "usb",
          "position": [
            0.07815,
            0.029,
            0.0096
          ],
          "size": [
            0.0177,
            0.01392,
            0.016
          ]
        },
        {
          "id": "usb-a-upper",
          "label": "USB 2.0 type-A double stack (upper, nearer GPIO edge)",
          "type": "usb",
          "position": [
            0.07815,
            0.047,
            0.0096
          ],
          "size": [
            0.0177,
            0.01392,
            0.016
          ]
        },
        {
          "id": "ethernet",
          "label": "10/100 Ethernet (silkscreen ETHERNET)",
          "type": "ethernet",
          "position": [
            0.07633,
            0.01025,
            0.00835
          ],
          "size": [
            0.02135,
            0.01551,
            0.0135
          ]
        },
        {
          "id": "gpio-j8",
          "label": "40-pin GPIO header J8 (pin 1 at x 8.37, y 51.23: square pad, row nearer the board centre, end nearer the corner hole)",
          "type": "signal",
          "position": [
            0.0325,
            0.0525,
            0.00585
          ],
          "size": [
            0.0508,
            0.005,
            0.0085
          ]
        },
        {
          "id": "microsd",
          "label": "microSD card socket (underside; card inserts from the -x edge)",
          "type": "signal",
          "position": [
            0.00741,
            0.02811,
            0.0031
          ]
        },
        {
          "id": "unstated-usb",
          "label": "connector not stated",
          "type": "usb"
        }
      ]
    },
    {
      "id": "board-usb2ax",
      "name": "USB2AX v3.2 (USB to Dynamixel TTL adapter)",
      "kind": "board",
      "outline": [
        0.02,
        0.015
      ],
      "source": "https://github.com/Xevel/usb2ax/blob/5d1432dc1a41a1a89d55cb959630566025188a25/hardware/usb2ax_v3.2.brd",
      "ports": [
        {
          "id": "usb-a-plug",
          "label": "USB1: USB type-A plug (goes into the host)",
          "type": "usb",
          "position": [
            -0.0057,
            0.0075,
            0.0031
          ]
        },
        {
          "id": "dxl-3p",
          "label": "DXL1: Dynamixel TTL 3-pin port (GND at y 11.93, 12V/VBUS at 9.43, DATA at 6.93; pins at x 14.79)",
          "type": "serial-servo",
          "position": [
            0.01734,
            0.00943,
            0.0031
          ]
        }
      ]
    },
    {
      "id": "board-robotis-3p-extension-pcb",
      "name": "ROBOTIS 3P Extension PCB (Bioloid 3P PCB hub)",
      "kind": "board",
      "source": "https://robotis.us/3p-extension-pcb",
      "ports": [
        {
          "id": "dxl-3p-1",
          "label": "3P Dynamixel port 1",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-2",
          "label": "3P Dynamixel port 2",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-3",
          "label": "3P Dynamixel port 3",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-4",
          "label": "3P Dynamixel port 4",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-5",
          "label": "3P Dynamixel port 5",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-6",
          "label": "3P Dynamixel port 6",
          "type": "serial-servo"
        },
        {
          "id": "unstated-serial-servo",
          "label": "connector not stated",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "board-robotis-smps2dynamixel",
      "name": "ROBOTIS SMPS2Dynamixel",
      "kind": "board",
      "source": "https://robotis.us/smps2dynamixel",
      "ports": [
        {
          "id": "smps-input",
          "label": "SMPS terminal (12 V supply input)",
          "type": "power"
        },
        {
          "id": "dxl-3p-1",
          "label": "3P Dynamixel port 1 (AX/MX TTL)",
          "type": "serial-servo"
        },
        {
          "id": "dxl-3p-2",
          "label": "3P Dynamixel port 2 (AX/MX TTL)",
          "type": "serial-servo"
        },
        {
          "id": "dxl-4p-1",
          "label": "4P Dynamixel port 1 (DX/RX/EX RS-485)",
          "type": "serial-servo"
        },
        {
          "id": "dxl-4p-2",
          "label": "4P Dynamixel port 2 (DX/RX/EX RS-485)",
          "type": "serial-servo"
        },
        {
          "id": "unstated-serial-servo",
          "label": "connector not stated",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-head-z-hub",
      "name": "head_z / hub",
      "kind": "part",
      "node": "chest_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-head-y",
      "name": "head_y",
      "kind": "part",
      "node": "neck_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-shoulder-y-shoulder-x-arm-z-elbow-y",
      "name": "shoulder_y -> shoulder_x -> arm_z -> elbow_y",
      "kind": "part",
      "node": "chest_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-chain-on-each-arm",
      "name": "chain on each arm",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-bust-x-bust-y-abs-z",
      "name": "bust_x -> bust_y -> abs_z",
      "kind": "part",
      "node": "bust_motors_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-chain-down-the-spine",
      "name": "chain down the spine",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-12-v-supply",
      "name": "12 V supply",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-5-v-micro-usb-supply",
      "name": "5 V micro USB supply",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "board-raspberry-pi-3-model-b",
        "port": "unstated-usb"
      },
      "to": {
        "component": "board-usb2ax",
        "port": "usb-a-plug"
      },
      "type": "usb",
      "label": "USB",
      "notes": "Source: wiring_arrangement.md#81"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "board-usb2ax",
        "port": "dxl-3p"
      },
      "to": {
        "component": "board-robotis-3p-extension-pcb",
        "port": "unstated-serial-servo"
      },
      "type": "serial-servo",
      "label": "3-pin Dynamixel cable (centre +12 V wire optionally cut)",
      "notes": "Source: wiring_arrangement.md; warnings.md#5"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "board-robotis-3p-extension-pcb",
        "port": "unstated-serial-servo"
      },
      "to": {
        "component": "board-robotis-smps2dynamixel",
        "port": "unstated-serial-servo"
      },
      "type": "serial-servo",
      "label": "3P Dynamixel cables",
      "notes": "Source: trunk_assembly.md 6.1, 6.3, 6.4"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-head-z-hub",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-head-y",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "3P cable (text says 100 mm; head BOM lists 140 mm)",
      "notes": "Source: head_assembly.md"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "w-shoulder-y-shoulder-x-arm-z-elbow-y",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-chain-on-each-arm",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "3P 200 mm and 140 mm",
      "notes": "Source: arms_assembly.md; torso-wires.png"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "w-bust-x-bust-y-abs-z",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-chain-down-the-spine",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "3P 60 mm and 200 mm",
      "notes": "Source: trunk_assembly.md 6.2-6.3; torso-wires.png"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "w-12-v-supply",
        "port": "power"
      },
      "to": {
        "component": "board-robotis-smps2dynamixel",
        "port": "smps-input"
      },
      "type": "power",
      "label": "DC power",
      "notes": "Source: wiring_arrangement.md#82"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "w-5-v-micro-usb-supply",
        "port": "power"
      },
      "to": {
        "component": "board-raspberry-pi-3-model-b",
        "port": "micro-usb-power"
      },
      "type": "power",
      "label": "Micro USB",
      "notes": "Source: wiring_arrangement.md#82"
    }
  ]
}
