gokul/macro-six-usbc

A six-key macro keyboard PCB paired with a separate physical enclosure.

Version
0.1.16
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone gokul/macro-six-usbc  # download the package files into ./macro-six-usbc
tsci add gokul/macro-six-usbc    # add it to your project as @tsci/gokul.macro-six-usbc

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

outputs/release/ground-route-cleanup.json

PCBPCB preview for outputs/release/ground-route-cleanup.json
SchematicSchematic preview for outputs/release/ground-route-cleanup.json
{
  "ground_routes_reviewed": 56,
  "ground_routes_shortened": 39,
  "physical_vias_removed": 7,
  "non_ground_routes_unchanged": true,
  "all_route_endpoints_preserved": true,
  "routes": [
    {
      "route_index": 87,
      "connection": ".C_X1 > .pin2",
      "changed": true,
      "start": [
        50.825,
        26
      ],
      "end": [
        50.850011,
        23.600074
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 88,
      "connection": ".SW_POWER > .pin7",
      "changed": true,
      "start": [
        -47,
        4.100068
      ],
      "end": [
        -45.750066,
        1.9999959999999999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 89,
      "connection": ".C_LED3 > .pin2",
      "changed": true,
      "start": [
        29.325,
        14.5
      ],
      "end": [
        27.599951,
        16.549914
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 90,
      "connection": ".C_LED2 > .pin2",
      "changed": true,
      "start": [
        6.325,
        14.5
      ],
      "end": [
        4.599951,
        16.549914
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 91,
      "connection": ".C_V2 > .pin2",
      "changed": false,
      "start": [
        49.325,
        16.5
      ],
      "end": [
        50.825,
        19
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 92,
      "connection": ".C_X2 > .pin2",
      "changed": true,
      "start": [
        50.825,
        19
      ],
      "end": [
        50.850011,
        23.600074
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 93,
      "connection": ".Y1 > .pin4",
      "changed": true,
      "start": [
        50.850011,
        23.600074
      ],
      "end": [
        49.149989,
        21.399926
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 94,
      "connection": ".U1 > .GND3",
      "changed": true,
      "start": [
        33.149999,
        26.200019
      ],
      "end": [
        30.325,
        27
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 95,
      "connection": ".U_ESD > .pin2",
      "changed": true,
      "start": [
        24,
        26.850904
      ],
      "end": [
        24.825,
        24
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 96,
      "connection": ".C_V3 > .pin2",
      "changed": true,
      "start": [
        41.825,
        32
      ],
      "end": [
        42.999865,
        28.850001
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 0
    },
    {
      "route_index": 97,
      "connection": ".J1 > .EH1",
      "changed": true,
      "start": [
        10.674888,
        30.774130800000002
      ],
      "end": [
        10.674888,
        26.594306800000002
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 98,
      "connection": ".J1 > .EH4",
      "changed": true,
      "start": [
        19.325112,
        30.7741308
      ],
      "end": [
        19.325112,
        26.5943068
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 99,
      "connection": ".Y1 > .pin2",
      "changed": false,
      "start": [
        49.149989,
        21.399926
      ],
      "end": [
        44.850001,
        21.400181
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 100,
      "connection": ".C_V4 > .pin2",
      "changed": true,
      "start": [
        30.325,
        27
      ],
      "end": [
        29.325,
        22.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 101,
      "connection": ".SW3 > .pin2",
      "changed": false,
      "start": [
        20.540127,
        18.079873
      ],
      "end": [
        21.5,
        23.825
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 102,
      "connection": ".SW_POWER > .pin1",
      "changed": false,
      "start": [
        -45.750066,
        1.9999959999999999
      ],
      "end": [
        -47,
        -4.100068
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 103,
      "connection": ".SW_POWER > .pin8",
      "changed": true,
      "start": [
        -47,
        -4.100068
      ],
      "end": [
        -46.2510048,
        -6.999873
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 104,
      "connection": ".C_V5 > .pin2",
      "changed": true,
      "start": [
        30.825,
        10.5
      ],
      "end": [
        27.599951,
        16.549914
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 105,
      "connection": ".U_RGB3 > .GND",
      "changed": false,
      "start": [
        27.599951,
        16.549914
      ],
      "end": [
        29.325,
        22.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 106,
      "connection": ".C_V1 > .pin2",
      "changed": false,
      "start": [
        33.825,
        11.5
      ],
      "end": [
        38.199773,
        17.149999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 107,
      "connection": ".U1 > .GND2",
      "changed": true,
      "start": [
        42.999865,
        28.850001
      ],
      "end": [
        44.850001,
        21.400181
      ],
      "before_via_transitions": 4,
      "after_via_transitions": 2
    },
    {
      "route_index": 108,
      "connection": ".U1 > .GND1",
      "changed": true,
      "start": [
        44.850001,
        21.400181
      ],
      "end": [
        38.199773,
        17.149999
      ],
      "before_via_transitions": 6,
      "after_via_transitions": 0
    },
    {
      "route_index": 109,
      "connection": ".ENC1 > .pin7",
      "changed": false,
      "start": [
        37.500011,
        0.250063
      ],
      "end": [
        42.999873,
        -7.250049
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 110,
      "connection": ".ISP > .GND",
      "changed": true,
      "start": [
        40.54,
        -28.27
      ],
      "end": [
        38.184908,
        -19
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 111,
      "connection": ".R_RGB_DOWN > .pin2",
      "changed": true,
      "start": [
        -35.175,
        29
      ],
      "end": [
        -24.175,
        27
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 112,
      "connection": ".C_BULK > .pin2",
      "changed": true,
      "start": [
        -24.175,
        27
      ],
      "end": [
        -25.459873,
        18.079873
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 113,
      "connection": ".SW1 > .pin2",
      "changed": true,
      "start": [
        -25.459873,
        18.079873
      ],
      "end": [
        -18.400049,
        16.549914
      ],
      "before_via_transitions": 3,
      "after_via_transitions": 3
    },
    {
      "route_index": 114,
      "connection": ".U_RGB1 > .GND",
      "changed": true,
      "start": [
        -18.400049,
        16.549914
      ],
      "end": [
        -16.675,
        14.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 115,
      "connection": ".C_LED1 > .pin2",
      "changed": true,
      "start": [
        -16.675,
        14.5
      ],
      "end": [
        -2.459873,
        18.079873
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 116,
      "connection": ".SW2 > .pin2",
      "changed": false,
      "start": [
        -2.459873,
        18.079873
      ],
      "end": [
        4.599951,
        16.549914
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 117,
      "connection": ".U_RGB2 > .GND",
      "changed": true,
      "start": [
        4.599951,
        16.549914
      ],
      "end": [
        8.5,
        23.825
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 118,
      "connection": ".R_CC1 > .pin2",
      "changed": true,
      "start": [
        8.5,
        23.825
      ],
      "end": [
        10.674888,
        26.594306800000002
      ],
      "before_via_transitions": 4,
      "after_via_transitions": 0
    },
    {
      "route_index": 119,
      "connection": ".J1 > .EH2",
      "changed": true,
      "start": [
        10.674888,
        26.594306800000002
      ],
      "end": [
        11.7999937,
        25.8258552
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 120,
      "connection": ".J1 > .GND2",
      "changed": true,
      "start": [
        11.7999937,
        25.8258552
      ],
      "end": [
        18.1999555,
        25.8259568
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 121,
      "connection": ".J1 > .GND1",
      "changed": true,
      "start": [
        18.1999555,
        25.8259568
      ],
      "end": [
        19.325112,
        26.5943068
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 122,
      "connection": ".J1 > .EH3",
      "changed": true,
      "start": [
        19.325112,
        26.5943068
      ],
      "end": [
        21.5,
        23.825
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 123,
      "connection": ".R_CC2 > .pin2",
      "changed": true,
      "start": [
        21.5,
        23.825
      ],
      "end": [
        24.825,
        24
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 124,
      "connection": ".C_ESD > .pin2",
      "changed": false,
      "start": [
        24.825,
        24
      ],
      "end": [
        29.325,
        22.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 125,
      "connection": ".C_AREF > .pin2",
      "changed": true,
      "start": [
        29.325,
        22.5
      ],
      "end": [
        33.149999,
        19.800235
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 126,
      "connection": ".U1 > .GND4",
      "changed": false,
      "start": [
        33.149999,
        19.800235
      ],
      "end": [
        38.199773,
        17.149999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 127,
      "connection": ".U1 > .UGnd",
      "changed": true,
      "start": [
        38.199773,
        17.149999
      ],
      "end": [
        41.125,
        13.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 128,
      "connection": ".C_UCAP > .pin2",
      "changed": true,
      "start": [
        41.125,
        13.5
      ],
      "end": [
        45.539873,
        7.250049
      ],
      "before_via_transitions": 2,
      "after_via_transitions": 2
    },
    {
      "route_index": 129,
      "connection": ".ENC1 > .E",
      "changed": true,
      "start": [
        45.539873,
        7.250049
      ],
      "end": [
        48.499989,
        0.250063
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 130,
      "connection": ".ENC1 > .pin6",
      "changed": false,
      "start": [
        48.499989,
        0.250063
      ],
      "end": [
        42.999873,
        -7.250049
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 131,
      "connection": ".ENC1 > .C",
      "changed": true,
      "start": [
        42.999873,
        -7.250049
      ],
      "end": [
        47.184908,
        -19
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 132,
      "connection": ".SW_BOOT > .pin2",
      "changed": true,
      "start": [
        47.184908,
        -19
      ],
      "end": [
        38.184908,
        -19
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 133,
      "connection": ".SW_RESET > .pin2",
      "changed": true,
      "start": [
        38.184908,
        -19
      ],
      "end": [
        29.325,
        -11.5
      ],
      "before_via_transitions": 4,
      "after_via_transitions": 4
    },
    {
      "route_index": 134,
      "connection": ".C_LED6 > .pin2",
      "changed": true,
      "start": [
        29.325,
        -11.5
      ],
      "end": [
        27.599951,
        -9.450085999999999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 135,
      "connection": ".U_RGB6 > .GND",
      "changed": false,
      "start": [
        27.599951,
        -9.450085999999999
      ],
      "end": [
        20.540127,
        -7.920127
      ],
      "before_via_transitions": 1,
      "after_via_transitions": 1
    },
    {
      "route_index": 136,
      "connection": ".SW6 > .pin2",
      "changed": false,
      "start": [
        20.540127,
        -7.920127
      ],
      "end": [
        6.325,
        -11.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 137,
      "connection": ".C_LED5 > .pin2",
      "changed": true,
      "start": [
        6.325,
        -11.5
      ],
      "end": [
        4.599951,
        -9.450085999999999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 138,
      "connection": ".U_RGB5 > .GND",
      "changed": false,
      "start": [
        4.599951,
        -9.450085999999999
      ],
      "end": [
        -2.459873,
        -7.920127
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 139,
      "connection": ".SW5 > .pin2",
      "changed": true,
      "start": [
        -2.459873,
        -7.920127
      ],
      "end": [
        -16.675,
        -11.5
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 140,
      "connection": ".C_LED4 > .pin2",
      "changed": false,
      "start": [
        -16.675,
        -11.5
      ],
      "end": [
        -18.400049,
        -9.450085999999999
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 141,
      "connection": ".U_RGB4 > .GND",
      "changed": false,
      "start": [
        -18.400049,
        -9.450085999999999
      ],
      "end": [
        -25.459873,
        -7.920127
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    },
    {
      "route_index": 142,
      "connection": ".LED_PWR > .cathode",
      "changed": false,
      "start": [
        -46.2510048,
        -6.999873
      ],
      "end": [
        -25.459873,
        -7.920127
      ],
      "before_via_transitions": 0,
      "after_via_transitions": 0
    }
  ]
}