{
  "version": "0.1",
  "title": "PAROL6 desktop robotic arm: wiring",
  "components": [
    {
      "id": "board-parol6-control-board",
      "name": "PAROL6 control board",
      "kind": "board",
      "outline": [
        0.105,
        0.09
      ],
      "holes": [
        [
          0.005,
          0.073,
          0.0025
        ],
        [
          0.0805,
          0.0855,
          0.0025
        ],
        [
          0.086,
          0.004,
          0.0025
        ]
      ],
      "source": "https://source-robotics.github.io/PAROL-docs/page3_1/",
      "ports": [
        {
          "id": "xt30-power",
          "label": "24 V power input",
          "type": "power"
        },
        {
          "id": "usb-b",
          "label": "USB",
          "type": "usb"
        },
        {
          "id": "joint1-motor",
          "label": "Joint1 stepper terminals (J1_A+, J1_A-, J1_B+, J1_B-)",
          "type": "motor"
        },
        {
          "id": "joint2-motor",
          "label": "Joint2 stepper terminals (J2_A+, J2_A-, J2_B+, J2_B-)",
          "type": "motor"
        },
        {
          "id": "joint3-motor",
          "label": "Joint3 stepper terminals (J3_A+, J3_A-, J3_B+, J3_B-)",
          "type": "motor"
        },
        {
          "id": "joint4-motor",
          "label": "Joint4 stepper terminals (J4_A+, J4_A-, J4_B+, J4_B-)",
          "type": "motor"
        },
        {
          "id": "joint5-motor",
          "label": "Joint5 stepper terminals (J5_A+, J5_A-, J5_B+, J5_B-)",
          "type": "motor"
        },
        {
          "id": "joint6-motor",
          "label": "Joint6 stepper terminals (J6_A+, J6_A-, J6_B+, J6_B-)",
          "type": "motor"
        },
        {
          "id": "limit1",
          "label": "Limit 1 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "limit2",
          "label": "Limit 2 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "limit3",
          "label": "Limit 3 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "limit4",
          "label": "Limit 4 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "limit5",
          "label": "Limit 5 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "limit6",
          "label": "Limit 6 input (with 24V / GND where provided)",
          "type": "signal"
        },
        {
          "id": "power-out",
          "label": "POWER output: 24V, GND, None (gripper supply)",
          "type": "power"
        },
        {
          "id": "canbus",
          "label": "CANBUS: CAN1H, CAN1L, CAN2L, CAN2H",
          "type": "can"
        },
        {
          "id": "io-estop-terminal",
          "label": "Connector for CAN, E-STOP and I/O (2 e-stop connections on board)",
          "type": "signal"
        },
        {
          "id": "power-button",
          "label": "Power on/off button header (BTN1, BTN2, LED A, LED K)",
          "type": "signal"
        },
        {
          "id": "fan",
          "label": "Cooling fan header (None, 5V5, GND)",
          "type": "power"
        },
        {
          "id": "programming",
          "label": "Programming adapter / SWD (J9)",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-24v-power-supply",
      "name": "24V power supply",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-gx16-2-pin-power-connector-on-the-robot-base",
      "name": "GX16 2-pin power connector on the robot base",
      "kind": "part",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-gx16-2-pin-male-connector",
      "name": "GX16 2-pin male connector (inside the base)",
      "kind": "part",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-pc",
      "name": "PC",
      "kind": "computer",
      "ports": [
        {
          "id": "usb",
          "label": "USB",
          "type": "usb"
        }
      ]
    },
    {
      "id": "w-j1-j6-stepper-motors",
      "name": "J1-J6 stepper motors",
      "kind": "motor",
      "ports": [
        {
          "id": "motor",
          "label": "motor leads",
          "type": "motor"
        }
      ]
    },
    {
      "id": "w-limit-switches-j2-j3-j5",
      "name": "Limit switches J2, J3, J5",
      "kind": "switch",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-inductive-sensors-j1-j4-j6",
      "name": "Inductive sensors J1, J4, J6",
      "kind": "sensor",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-gripper-m8-connector-pins-1-and-3",
      "name": "Gripper M8 connector pins 1 (24V) and 3 (GND)",
      "kind": "part",
      "node": "L4_visual",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-gripper-m8-connector-pins-2-and-4",
      "name": "Gripper M8 connector pins 2 (CANH) and 4 (CANL)",
      "kind": "part",
      "node": "L4_visual",
      "ports": [
        {
          "id": "can",
          "label": "CAN",
          "type": "can"
        }
      ]
    },
    {
      "id": "w-on-off-button",
      "name": "On/off button",
      "kind": "switch",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-40mm-5v-cooling-fan",
      "name": "40mm 5V cooling fan",
      "kind": "fan",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-e-stop",
      "name": "E-stop (NC)",
      "kind": "switch",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-st-link-official-programming-adapter",
      "name": "ST-Link / official programming adapter (firmware upload only)",
      "kind": "supply",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "w-24v-power-supply",
        "port": "power"
      },
      "to": {
        "component": "w-gx16-2-pin-power-connector-on-the-robot-base",
        "port": "power"
      },
      "type": "power",
      "label": "not stated",
      "notes": "Source: BOM/BOM.md (Electronics); PDF p.90"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-gx16-2-pin-male-connector",
        "port": "power"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "xt30-power"
      },
      "type": "power",
      "label": "wire of at least 110 mm (gauge not stated); follow the polarity on p.89",
      "notes": "Source: PDF p.89; https://source-robotics.github.io/PAROL-docs/page3_1/"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "board-parol6-control-board",
        "port": "usb-b"
      },
      "to": {
        "component": "w-pc",
        "port": "usb"
      },
      "type": "usb",
      "label": "USB B cable",
      "notes": "Source: BOM/BOM.md; https://source-robotics.github.io/PAROL-docs/page4/"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-j1-j6-stepper-motors",
        "port": "motor"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "joint6-motor"
      },
      "type": "motor",
      "label": "4 wires, 1 m per motor",
      "notes": "Source: PDF pp. 9, 85"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "w-limit-switches-j2-j3-j5",
        "port": "signal"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "limit5"
      },
      "type": "signal",
      "label": "2 wires, 1 m",
      "notes": "Source: PDF pp. 9, 85; https://source-robotics.github.io/PAROL-docs/page3_2/"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "w-inductive-sensors-j1-j4-j6",
        "port": "signal"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "limit6"
      },
      "type": "signal",
      "label": "3 wires, 1 m",
      "notes": "Source: PDF pp. 9, 85; https://source-robotics.github.io/PAROL-docs/page3_2/"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "w-gripper-m8-connector-pins-1-and-3",
        "port": "power"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "power-out"
      },
      "type": "power",
      "label": "4 wires, 1 m, 2 twisted pairs",
      "notes": "Source: PDF pp. 32, 86"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "w-gripper-m8-connector-pins-2-and-4",
        "port": "can"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "canbus"
      },
      "type": "can",
      "label": "twisted pair",
      "notes": "Source: PDF pp. 32, 86"
    },
    {
      "id": "wire-9",
      "from": {
        "component": "w-on-off-button",
        "port": "signal"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "power-button"
      },
      "type": "signal",
      "label": "JST PH 2.0mm 4-pin, 80 mm",
      "notes": "Source: PDF p.88; https://source-robotics.github.io/PAROL-docs/page3_1/"
    },
    {
      "id": "wire-10",
      "from": {
        "component": "w-40mm-5v-cooling-fan",
        "port": "power"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "fan"
      },
      "type": "power",
      "label": "fan lead (shorten if needed; note polarity)",
      "notes": "Source: PDF pp. 90-91; https://source-robotics.github.io/PAROL-docs/page3_1/"
    },
    {
      "id": "wire-11",
      "from": {
        "component": "w-e-stop",
        "port": "signal"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "io-estop-terminal"
      },
      "type": "signal",
      "label": "not stated",
      "notes": "Source: https://source-robotics.github.io/PAROL-docs/page3_2/"
    },
    {
      "id": "wire-12",
      "from": {
        "component": "w-st-link-official-programming-adapter",
        "port": "signal"
      },
      "to": {
        "component": "board-parol6-control-board",
        "port": "programming"
      },
      "type": "signal",
      "label": "programming cable; pin order SWCLK, SWDIO, GND, 3V3, 5V",
      "notes": "Source: BOM/BOM.md; https://source-robotics.github.io/PAROL-docs/page3_1/ and page4/"
    }
  ]
}
