{
  "version": "0.1",
  "title": "Solo 8 torque-controlled quadruped (ODRI): wiring",
  "components": [
    {
      "id": "board-odri-master-board-v2",
      "name": "ODRI Master Board v2",
      "kind": "board",
      "outline": [
        0.065,
        0.035
      ],
      "holes": [
        [
          0.002,
          0.002,
          0.0021
        ],
        [
          0.063,
          0.002,
          0.0021
        ],
        [
          0.063,
          0.033,
          0.0021
        ],
        [
          0.002,
          0.033,
          0.0021
        ]
      ],
      "source": "https://github.com/open-dynamic-robot-initiative/master-board/blob/574fe988270aa3da948484ad3fa1f15dbf8162bf/hardware/V2/esp32_master_board.brd",
      "ports": [
        {
          "id": "spi-0",
          "label": "SPI0 (SPI_0) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.00518,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-1",
          "label": "SPI1 (SPI_1) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.00897,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-2",
          "label": "SPI2 (SPI_2) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.01276,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-3",
          "label": "SPI3 (SPI_3) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.01655,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-4",
          "label": "SPI4 (SPI_4) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.02034,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-5",
          "label": "SPI5 (SPI_5) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.02413,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-6",
          "label": "SPI6 (SPI_6) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.02792,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "spi-7",
          "label": "SPI7 (SPI_7) - SPI port to a Micro Driver; pins MO, CS, CLK, MI, GND",
          "type": "spi",
          "position": [
            0.03171,
            0.02828,
            0.0031
          ]
        },
        {
          "id": "uart1-imu",
          "label": "UART1 (U$6) - 4-pin IMU connector; pins 3.3V, IO32/TX1, I35/RX1, GND",
          "type": "uart",
          "position": [
            0.04493,
            0.00237,
            0.0031
          ]
        },
        {
          "id": "power",
          "label": "POWER - 2-pin DC input (GND, Vin), 4.5-30 V",
          "type": "power",
          "position": [
            0.04953,
            0.03065,
            0.0031
          ]
        },
        {
          "id": "ethernet",
          "label": "U$3 - Ethernet jack",
          "type": "ethernet",
          "position": [
            0.01089,
            0.01429,
            0.0031
          ]
        },
        {
          "id": "prog",
          "label": "PROG - 5-pin 3.3 V serial programming port; pins GND, RST, G0, RX, TX",
          "type": "uart",
          "position": [
            0.0562,
            0.03065,
            0.0031
          ]
        },
        {
          "id": "led",
          "label": "U$5 - 3-pin NeoPixel LED chain connector; pins WS_LED, 3.3V, GND",
          "type": "signal",
          "position": [
            0.03842,
            0.00237,
            0.0031
          ]
        },
        {
          "id": "gpio",
          "label": "U$4 - 6-pin general IO; pins 3.3V, SW0, IO33, IO2, I34, GND",
          "type": "signal",
          "position": [
            0.05334,
            0.00237,
            0.0031
          ]
        },
        {
          "id": "unstated-spi",
          "label": "connector not stated",
          "type": "spi"
        }
      ]
    },
    {
      "id": "board-odri-micro-driver-v2",
      "name": "ODRI Micro Driver v2 (dual brushless motor driver)",
      "kind": "board",
      "outline": [
        0.051,
        0.05
      ],
      "holes": [
        [
          0.003,
          0.002,
          0.0024
        ],
        [
          0.049,
          0.002,
          0.0024
        ],
        [
          0.003,
          0.048,
          0.0024
        ],
        [
          0.049,
          0.048,
          0.0024
        ]
      ],
      "source": "https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/micro_driver_electronics/eagle_design_files/microDriver_v2.brd",
      "ports": [
        {
          "id": "qep-a",
          "label": "QEP_A - encoder A (motor A); pins A, B, I, 5V, GND",
          "type": "motor",
          "position": [
            0.04911,
            0.04024,
            0.0031
          ]
        },
        {
          "id": "qep-b",
          "label": "QEP_B - encoder B (motor B); pins A, B, I, 5V, GND",
          "type": "motor",
          "position": [
            0.04911,
            0.00976,
            0.0031
          ]
        },
        {
          "id": "spi",
          "label": "U$11 - SPI to the Master Board (SPIB: MOSI, STE/CS, CLK, MISO, GND)",
          "type": "spi",
          "position": [
            0.00189,
            0.0347,
            0.0031
          ]
        },
        {
          "id": "motor-a-phase-a",
          "label": "A.A - motor A phase A pad (U$6)",
          "type": "motor",
          "position": [
            0.01777,
            0.0481,
            0.0031
          ]
        },
        {
          "id": "motor-a-phase-b",
          "label": "A.B - motor A phase B pad (U$7)",
          "type": "motor",
          "position": [
            0.0292,
            0.0481,
            0.0031
          ]
        },
        {
          "id": "motor-a-phase-c",
          "label": "A.C - motor A phase C pad (U$8)",
          "type": "motor",
          "position": [
            0.04063,
            0.0481,
            0.0031
          ]
        },
        {
          "id": "motor-b-phase-a",
          "label": "B.A - motor B phase A pad (U$3)",
          "type": "motor",
          "position": [
            0.03936,
            0.0019,
            0.0031
          ]
        },
        {
          "id": "motor-b-phase-b",
          "label": "B.B - motor B phase B pad (U$4)",
          "type": "motor",
          "position": [
            0.02793,
            0.0019,
            0.0031
          ]
        },
        {
          "id": "motor-b-phase-c",
          "label": "B.C - motor B phase C pad (U$5)",
          "type": "motor",
          "position": [
            0.0165,
            0.0019,
            0.0031
          ]
        },
        {
          "id": "power-vplus",
          "label": "+V - supply input pad (U$9); 5-32 V, run at 24 V; wire lead to XT30",
          "type": "power",
          "position": [
            0.0029,
            0.041,
            0.0031
          ]
        },
        {
          "id": "power-gnd",
          "label": "GND - supply input pad (U$10); wire lead to XT30",
          "type": "power",
          "position": [
            0.0029,
            0.0442,
            0.0031
          ]
        },
        {
          "id": "can",
          "label": "U$1 - CAN (H, L); not used in the Solo SPI setup",
          "type": "can",
          "position": [
            0.00745,
            0.00186,
            0.0031
          ]
        },
        {
          "id": "adc",
          "label": "U$12 - 4-pin aux (ADC: board labels ADCINA6, ADCINB6, 3.3V, GND)",
          "type": "signal",
          "position": [
            0.00189,
            0.027,
            0.0031
          ]
        },
        {
          "id": "aux-8",
          "label": "U$13 - 8-pin aux (SPIA, GPIO32/SDA, GPIO33/SCL, GPIO43, GND)",
          "type": "signal",
          "position": [
            0.00189,
            0.0174,
            0.0031
          ]
        },
        {
          "id": "jtag",
          "label": "M1 - 8-pin JTAG flashing connector (1.27 mm pitch)",
          "type": "signal",
          "position": [
            0.00825,
            0.04804,
            0.0031
          ]
        },
        {
          "id": "unstated-signal",
          "label": "connector not stated",
          "type": "signal"
        },
        {
          "id": "unstated-motor",
          "label": "connector not stated",
          "type": "motor"
        },
        {
          "id": "unstated-power",
          "label": "connector not stated",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-actuator-encoder",
      "name": "Actuator encoder (Broadcom AEDT-9810, 5 wires B/5V/A/I/GND)",
      "kind": "motor",
      "ports": [
        {
          "id": "signal",
          "label": "signal",
          "type": "signal"
        }
      ]
    },
    {
      "id": "w-actuator-motor-phases",
      "name": "Actuator motor phases (3)",
      "kind": "motor",
      "ports": [
        {
          "id": "motor",
          "label": "motor leads",
          "type": "motor"
        }
      ]
    },
    {
      "id": "w-imu-lord-microstrain-3dm-cx5-25",
      "name": "IMU Lord Microstrain 3DM-CX5-25",
      "kind": "sensor",
      "node": "base_link_visual",
      "ports": [
        {
          "id": "uart",
          "label": "serial (UART)",
          "type": "uart"
        }
      ]
    },
    {
      "id": "w-robot-interface-wire-robot-side",
      "name": "Robot interface wire, robot side",
      "kind": "part",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-robot-interface-wire-supply-side",
      "name": "Robot interface wire, supply side",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-power-supply",
      "name": "Power supply",
      "kind": "supply",
      "ports": [
        {
          "id": "power",
          "label": "power",
          "type": "power"
        }
      ]
    },
    {
      "id": "w-external-pc-ethernet-port",
      "name": "External PC Ethernet port",
      "kind": "computer",
      "ports": [
        {
          "id": "ethernet",
          "label": "Ethernet",
          "type": "ethernet"
        }
      ]
    }
  ],
  "connections": [
    {
      "id": "wire-1",
      "from": {
        "component": "w-actuator-encoder",
        "port": "signal"
      },
      "to": {
        "component": "board-odri-micro-driver-v2",
        "port": "unstated-signal"
      },
      "type": "signal",
      "label": "LifY 0,14 mm2 wires, Hirose DF13 5-pin socket",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#actuator-module-wiring"
    },
    {
      "id": "wire-2",
      "from": {
        "component": "w-actuator-motor-phases",
        "port": "motor"
      },
      "to": {
        "component": "board-odri-micro-driver-v2",
        "port": "unstated-motor"
      },
      "type": "motor",
      "label": "LiY/LifY 0,50 mm2 wires with Reely 2mm gold connectors",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#micro-driver-board-wiring"
    },
    {
      "id": "wire-3",
      "from": {
        "component": "board-odri-master-board-v2",
        "port": "unstated-spi"
      },
      "to": {
        "component": "board-odri-micro-driver-v2",
        "port": "spi"
      },
      "type": "spi",
      "label": "0,14 mm2 Kabeltronik wires with two 5-pole Hirose DF13 connectors; Solo 8: SPI #0 FLHFE+FLK 16cm, #1 FRHFE+FRK 16cm, #2 HLHFE+HLK 20cm, #3 HRHFE+HRK 14cm",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#spi-wires"
    },
    {
      "id": "wire-4",
      "from": {
        "component": "w-imu-lord-microstrain-3dm-cx5-25",
        "port": "uart"
      },
      "to": {
        "component": "board-odri-master-board-v2",
        "port": "uart1-imu"
      },
      "type": "uart",
      "label": "Ribbon cable with 10-pin rectangular connector (Harwin M50-3300542) plus extension wires with 4-pin Hirose DF13",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#imu-wire"
    },
    {
      "id": "wire-5",
      "from": {
        "component": "board-odri-micro-driver-v2",
        "port": "unstated-power"
      },
      "to": {
        "component": "board-odri-master-board-v2",
        "port": "power"
      },
      "type": "power",
      "label": "2-pin Hirose wire",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/micro_driver_electronics/README.md#motor--power-wire-soldering"
    },
    {
      "id": "wire-6",
      "from": {
        "component": "w-robot-interface-wire-robot-side",
        "port": "power"
      },
      "to": {
        "component": "board-odri-micro-driver-v2",
        "port": "power-gnd"
      },
      "type": "power",
      "label": "1 mm2 Kabeltronik wires with XT30 (supply side female, consumer side male); board power wires 0,50 mm2 with XT30",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#robot-interface-wire"
    },
    {
      "id": "wire-7",
      "from": {
        "component": "w-robot-interface-wire-supply-side",
        "port": "power"
      },
      "to": {
        "component": "w-power-supply",
        "port": "power"
      },
      "type": "power",
      "label": "1 mm2 wires with 4mm power connectors",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#robot-interface-wire"
    },
    {
      "id": "wire-8",
      "from": {
        "component": "board-odri-master-board-v2",
        "port": "ethernet"
      },
      "to": {
        "component": "w-external-pc-ethernet-port",
        "port": "ethernet"
      },
      "type": "ethernet",
      "label": "Self-made 4-pole Ethernet wire with RJ45 plugs on both ends (or a standard Ethernet cable); raw Ethernet frames",
      "notes": "Source: https://github.com/open-dynamic-robot-initiative/open_robot_actuator_hardware/blob/66af1522b4fba0ec4a1d7790e66f5e4652208d30/electronics/details/details_wiring.md#robot-interface-wire"
    }
  ]
}
