Skip to content

Instantly share code, notes, and snippets.

@jschoch
Created February 1, 2024 18:28
Show Gist options
  • Save jschoch/f0c0784faedfd22f2ebe4e3d1114410f to your computer and use it in GitHub Desktop.
Save jschoch/f0c0784faedfd22f2ebe4e3d1114410f to your computer and use it in GitHub Desktop.
config.json
{
"name": "TangNano9K",
"description": "TangNano9K with 5Axis BOB over SPI",
"boardcfg": "TangNano9K",
"transport": "SPI",
"axis": 9,
"interface": [
{
"type": "w5500",
"ip": "192.168.10.194",
"transport": "UDP",
"port": "2390",
"pins": {
"MOSI": "75",
"MISO": "74",
"SCK": "76",
"SEL": "77"
}
}
],
"enable": {
"pin": "69"
},
"expansion": [
{
"type": "shiftreg",
"bits": 8,
"invert": true,
"pullup": true,
"pins": {
"out": "73",
"in": "72",
"clock": "71",
"load": "70"
}
}
],
"plugins": [
{
"type": "vin_quadencoderz",
"pullup": true,
"name": "spindle_encoder",
"function": "spindle-index",
"scale": 600.0,
"pins": {
"a": "33",
"b": "30",
"z": "29"
}
},
{
"pullup": true,
"pin": "28",
"name": "DIN3",
"type": "din_bit"
},
{
"pullup": true,
"pin": "68",
"name": "DIN4",
"type": "din_bit"
},
{
"pullup": true,
"pin": "79",
"name": "DIN5",
"type": "din_bit"
},
{
"pullup": true,
"pin": "80",
"name": "DIN6",
"type": "din_bit"
},
{
"pullup": true,
"pin": "81",
"name": "DIN7",
"type": "din_bit"
},
{
"pullup": true,
"pin": "82",
"name": "DIN8",
"type": "din_bit"
},
{
"pullup": true,
"pin": "83",
"name": "DIN9",
"type": "din_bit"
},
{
"pullup": true,
"pin": "84",
"name": "DIN10",
"type": "din_bit"
},
{
"pullup": true,
"pin": "85",
"name": "DIN11",
"type": "din_bit"
},
{
"pullup": true,
"pin": "86",
"name": "DIN12",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[0]",
"name": "DIN13",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[1]",
"name": "DIN14",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[2]",
"name": "DIN15",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[3]",
"name": "DIN16",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[4]",
"name": "DIN17",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[5]",
"name": "DIN18",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[6]",
"name": "DIN19",
"type": "din_bit"
},
{
"pin": "EXPANSION0_INPUT[7]",
"name": "DIN20",
"type": "din_bit"
},
{
"invert": true,
"pin": "13",
"name": "DOUT0",
"type": "dout_bit"
},
{
"invert": true,
"pin": "14",
"name": "DOUT1",
"type": "dout_bit"
},
{
"invert": true,
"pin": "15",
"name": "DOUT2",
"type": "dout_bit"
},
{
"invert": true,
"pin": "16",
"name": "DOUT3",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[0]",
"name": "DOUT4",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[1]",
"name": "DOUT5",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[2]",
"name": "DOUT6",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[3]",
"name": "DOUT7",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[4]",
"name": "DOUT8",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[5]",
"name": "DOUT9",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[6]",
"name": "DOUT10",
"type": "dout_bit"
},
{
"invert": true,
"pin": "EXPANSION0_OUTPUT[7]",
"name": "DOUT11",
"type": "dout_bit"
},
{
"type": "vin_pulsecounter",
"pullup": true,
"pins": {
"up": "3",
"down": "4"
},
"name": "VIN0"
},
{
"type": "vout_pwm",
"pins": {
"pwm": "55"
},
"name": "VOUT0"
},
{
"type": "joint_stepper",
"cl": false,
"scale": 800,
"pins": {
"step": "54",
"dir": "53"
},
"name": "JOINT0"
},
{
"type": "joint_stepper",
"cl": false,
"scale": 800,
"pins": {
"step": "51",
"dir": "42"
},
"name": "JOINT1"
},
{
"type": "joint_stepper",
"cl": false,
"scale": 800,
"pins": {
"step": "41",
"dir": "35"
},
"name": "JOINT2"
},
{
"type": "joint_stepper",
"cl": false,
"pins": {
"step": "40",
"dir": "34"
},
"name": "JOINT3"
},
{
"type": "joint_stepper",
"cl": false,
"pins": {
"step": "57",
"dir": "56"
},
"name": "JOINT4"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment