{
  "version": "0.1",
  "title": "6-DOF desktop arm with XL-320 servos for education: 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": "usb",
          "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": "board-pixl",
      "name": "Pixl board (Poppy project Raspberry Pi shield for XL-320)",
      "kind": "board",
      "outline": [
        0.03518,
        0.02057
      ],
      "holes": [
        [
          0.00292,
          0.00318,
          0.00254
        ]
      ],
      "source": "https://github.com/poppy-project/pixl/releases/download/1.a.18/Pixl_78A4FE38-92CD-4DAB-9B5A-15E9EAD0FAC1-1.A.18.zip",
      "ports": [
        {
          "id": "rpi-socket",
          "label": "\"RPI conn\": 2x5 socket onto Raspberry Pi GPIO pins 1-10 (underside; socket pin 1 at x 4.191, y 8.509)",
          "type": "signal",
          "position": [
            0.00292,
            0.01359,
            -0.0015
          ]
        },
        {
          "id": "dc-jack",
          "label": "\"POWER CONN\": DC jack, 7.5 V in",
          "type": "power",
          "position": [
            0.02134,
            0.00394,
            0.0071
          ],
          "size": [
            0.009,
            0.0148,
            0.011
          ]
        },
        {
          "id": "xl320-bus",
          "label": "\"Motor connector\": XL-320 bus (GND / VDD / DATA)",
          "type": "serial-servo",
          "position": [
            0.00978,
            0.00102,
            0.00369
          ],
          "size": [
            0.008,
            0.0073,
            0.00418
          ]
        },
        {
          "id": "battery-p1",
          "label": "P1: battery header (LBB-040 holder, one of the 'twice two pins')",
          "type": "power",
          "position": [
            0.0315,
            0.00728,
            0.0046
          ],
          "size": [
            0.0059,
            0.0045,
            0.006
          ]
        },
        {
          "id": "battery-p2",
          "label": "P2: battery header (LBB-040 holder, the other of the 'twice two pins')",
          "type": "power",
          "position": [
            0.0315,
            0.0025,
            0.0046
          ],
          "size": [
            0.0059,
            0.0045,
            0.006
          ]
        }
      ]
    },
    {
      "id": "w-ac-adapter-7-5v-2a",
      "name": "AC adapter 7.5V 2A",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-m1",
      "name": "m1 (XL-320)",
      "kind": "servo",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-m1-2",
      "name": "m1",
      "kind": "part",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-m2-then-m2-to-m3-m3-to-m4-m4-to-m5-m5-to-m6",
      "name": "m2, then m2 to m3, m3 to m4, m4 to m5, m5 to m6",
      "kind": "part",
      "ports": [
        {
          "id": "serial-servo",
          "label": "servo bus",
          "type": "serial-servo"
        }
      ]
    },
    {
      "id": "w-raspberry-pi-camera",
      "name": "Raspberry Pi camera",
      "kind": "camera",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-internet-router-or-directly-to-the-computer",
      "name": "Internet router (recommended) or directly to the computer (needs Zeroconf setup)",
      "kind": "computer",
      "ports": [
        {
          "id": "ethernet",
          "label": "Ethernet",
          "type": "ethernet"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "board-pixl",
        "port": "rpi-socket"
      },
      "to": {
        "component": "board-raspberry-pi-3-model-b",
        "port": "gpio-j8"
      },
      "type": "signal",
      "label": "direct header plug, fixed with an M2.5 10mm standoff and screw",
      "notes": "Source: electronic-assembly.md#2.2"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-ac-adapter-7-5v-2a",
        "port": "power"
      },
      "to": {
        "component": "board-pixl",
        "port": "dc-jack"
      },
      "type": "power",
      "label": "2.1 x 5.5 x 9.5 jack",
      "notes": "Source: bom.md; motor-configuration.md#3.1"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "board-pixl",
        "port": "xl320-bus"
      },
      "to": {
        "component": "w-m1",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "XL-320 motor cable (one comes with each motor)",
      "notes": "Source: mechanical-construction.md#Step 7 - electronics"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-m1-2",
        "port": "serial-servo"
      },
      "to": {
        "component": "w-m2-then-m2-to-m3-m3-to-m4-m4-to-m5-m5-to-m6",
        "port": "serial-servo"
      },
      "type": "serial-servo",
      "label": "XL-320 motor cables, daisy chain; either connector",
      "notes": "Source: mechanical-construction.md#Step 7 - electronics"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "w-raspberry-pi-camera",
        "port": "signal"
      },
      "to": {
        "component": "board-raspberry-pi-3-model-b",
        "port": "csi-camera"
      },
      "type": "signal",
      "label": "camera flex (interface) cable, contacts facing away from the Ethernet port, routed between m1 and the base",
      "notes": "Source: mechanical-construction.md#Step 7 - electronics"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "board-raspberry-pi-3-model-b",
        "port": "ethernet"
      },
      "to": {
        "component": "w-internet-router-or-directly-to-the-computer",
        "port": "ethernet"
      },
      "type": "ethernet",
      "label": "short Ethernet cable",
      "notes": "Source: motor-configuration.md#3.1"
    }
  ]
}
