{
  "version": "0.1",
  "title": "OpenArm 2.0 bimanual 7-DOF arms: wiring",
  "components": [
    {
      "id": "board-openarm-hub-board",
      "name": "OpenArm hub board PCB (one per arm, OpenArm 1.0 docs)",
      "kind": "board",
      "outline": [
        0.016,
        0.059
      ],
      "holes": [
        [
          0.008,
          0.005,
          0.0052
        ],
        [
          0.008,
          0.054,
          0.0052
        ]
      ],
      "source": "https://docs.openarm.dev/1.0/hardware/bill-of-materials/electrical",
      "ports": [
        {
          "id": "cn1",
          "label": "CN1 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.04437,
            0.0031
          ]
        },
        {
          "id": "cn2",
          "label": "CN2 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.03842,
            0.0031
          ]
        },
        {
          "id": "cn3",
          "label": "CN3 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.03246,
            0.0031
          ]
        },
        {
          "id": "cn4",
          "label": "CN4 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.02651,
            0.0031
          ]
        },
        {
          "id": "cn5",
          "label": "CN5 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.02055,
            0.0031
          ]
        },
        {
          "id": "cn6",
          "label": "CN6 - XT30(2+2) male, power + 2 signal (CAN) pins",
          "type": "can",
          "position": [
            0.00824,
            0.0146,
            0.0031
          ]
        },
        {
          "id": "unstated-power",
          "label": "connector not stated",
          "type": "power"
        },
        {
          "id": "unstated-can",
          "label": "connector not stated",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-power-supply",
      "name": "Power supply (one per arm)",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-e-stop",
      "name": "E-stop (one per arm pair)",
      "kind": "switch",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-e-stop-2",
      "name": "E-stop (two output cables)",
      "kind": "switch",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-usb-to-can-converter",
      "name": "USB-to-CAN(FD) converter",
      "kind": "part",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        },
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-linux-computer",
      "name": "Linux computer",
      "kind": "computer",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-j1-motor-and-j2-motor",
      "name": "J1 motor and J2 motor",
      "kind": "motor",
      "node": "openarm_left_base_link_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-j3-and-j4-motors",
      "name": "J3 and J4 motors",
      "kind": "motor",
      "node": "openarm_left_link3_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-j4-j5-j6-and-j7-motors",
      "name": "J4, J5, J6 and J7 motors",
      "kind": "motor",
      "node": "openarm_left_link3_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-j7-motor",
      "name": "J7 motor (underside connector)",
      "kind": "motor",
      "node": "openarm_left_link6_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-j8-motor",
      "name": "J8 (gripper) motor",
      "kind": "motor",
      "node": "openarm_left_ee_base_link_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-in-hand-camera-arducam-b0495",
      "name": "In-hand camera Arducam B0495 (v2 gripper, one per arm)",
      "kind": "camera",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-computer",
      "name": "Computer (standard UVC USB camera)",
      "kind": "computer",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-damiao-usb-can-debugger",
      "name": "Damiao USB CAN Debugger (ID setup only)",
      "kind": "part",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-motor-can-port-and-windows-pc",
      "name": "Motor CAN port and Windows PC",
      "kind": "computer",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "w-power-supply",
        "port": "power"
      },
      "to": {
        "component": "w-e-stop",
        "port": "power"
      },
      "type": "power",
      "label": "not stated",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/power-can"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-e-stop-2",
        "port": "power"
      },
      "to": {
        "component": "board-openarm-hub-board",
        "port": "unstated-power"
      },
      "type": "power",
      "label": "not stated (Components page lists a 'Power extension' cable per arm)",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/power-can"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "w-usb-to-can-converter",
        "port": "can"
      },
      "to": {
        "component": "board-openarm-hub-board",
        "port": "unstated-can"
      },
      "type": "can",
      "label": "Communication cable; red wire to CANH, black to CANL",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/power-can"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-usb-to-can-converter",
        "port": "usb"
      },
      "to": {
        "component": "w-linux-computer",
        "port": "usb"
      },
      "type": "usb",
      "label": "USB (implied by the device name; not stated)",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/bill-of-materials/electrical"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "board-openarm-hub-board",
        "port": "unstated-can"
      },
      "to": {
        "component": "w-j1-motor-and-j2-motor",
        "port": "can"
      },
      "type": "can",
      "label": "J1/J2-to-hub cable (2 per arm)",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/chest"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "board-openarm-hub-board",
        "port": "unstated-can"
      },
      "to": {
        "component": "w-j3-and-j4-motors",
        "port": "can"
      },
      "type": "can",
      "label": "J3+J4-to-hub cable",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/chest; arm-wiring"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "board-openarm-hub-board",
        "port": "unstated-can"
      },
      "to": {
        "component": "w-j4-j5-j6-and-j7-motors",
        "port": "can"
      },
      "type": "can",
      "label": "J4+J5+J6+J7-to-hub cable",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/bill-of-materials/electrical; arm-wiring"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "w-j7-motor",
        "port": "can"
      },
      "to": {
        "component": "w-j8-motor",
        "port": "can"
      },
      "type": "can",
      "label": "J7-to-J8 cable",
      "notes": "Source: https://docs.openarm.dev/1.0/hardware/wiring-and-casing-guide/arm-wiring"
    },
    {
      "id": "wire-9",
      "from": {
        "component": "w-in-hand-camera-arducam-b0495",
        "port": "usb"
      },
      "to": {
        "component": "w-computer",
        "port": "usb"
      },
      "type": "usb",
      "label": "USB 3.2 Gen 1 Type-C; v2 BOM lists a 1 m UGREEN 20302 camera cable",
      "notes": "Source: https://docs.openarm.dev/hardware/openarm-2.0/gripper; packages/openarm/bom.csv"
    },
    {
      "id": "wire-10",
      "from": {
        "component": "w-damiao-usb-can-debugger",
        "port": "can"
      },
      "to": {
        "component": "w-motor-can-port-and-windows-pc",
        "port": "can"
      },
      "type": "can",
      "label": "motor-package cables; 24V via XT30U-M; J8009P can take the wires directly without the power adapter board",
      "notes": "Source: https://docs.openarm.dev/setup/openarm-setup/motor-id"
    }
  ]
}
