[boards] Move custom templates from boardgen, add WB2L_M1 board

This commit is contained in:
Kuba Szczodrzyński
2023-06-18 16:11:55 +02:00
parent 0ef66af342
commit 96dbbe0919
12 changed files with 1037 additions and 0 deletions

View File

@@ -0,0 +1,141 @@
{
"name": "custom-20x24-22",
"title": "Custom 20x24mm form factor (22-pin)",
"width": 20,
"height": 24,
"vars": {
"PINTYPE_VERT": "pin_vert_cast_nohole",
"PINTYPE_HORZ": "pin_horz_cast_nohole",
"RASTER": 2,
"RF_W": 20,
"RF_H": 6.5
},
"front": [
{
"comment": "PCB soldermask",
"type": "rect",
"pos": "0,0",
"size": "20,24",
"preset": "${MASK_PRESET}"
},
{
"comment": "Pins (1-7)",
"id": "left",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,8.5",
"vars": {
"PINDIR": "left"
}
},
{
"comment": "Pins (8-15)",
"id": "right",
"name": "r_pins_vert",
"repeat": 7,
"pos": "20,8.5",
"vars": {
"PINDIR": "right"
}
},
{
"comment": "Pins (16-22)",
"name": "r_pins_horz",
"repeat": 8,
"pos": "3,24",
"vars": {
"PINDIR": "down"
}
},
{
"comment": "Pin labels (16-22)",
"id": "down",
"name": "r_labels_horz",
"repeat": 8,
"pos": "3,24",
"vars": {
"PINDIR": "down"
}
},
{
"comment": "Metal shielding",
"type": "rect",
"pos": "1.2,6.95",
"size": "17.6,15.8",
"preset": "shield"
}
],
"back": [
{
"comment": "PCB soldermask",
"type": "rect",
"pos": "0,0",
"size": "20,24",
"preset": "${MASK_PRESET}"
},
{
"comment": "Pins (8-15)",
"id": "right",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,8.5",
"vars": {
"PINDIR": "left"
}
},
{
"comment": "Pins (1-7)",
"id": "left",
"name": "r_pins_vert",
"repeat": 7,
"pos": "20,8.5",
"vars": {
"PINDIR": "right"
}
},
{
"comment": "Pins (16-22)",
"name": "r_pins_horz",
"repeat": 8,
"pos": "3,24",
"vars": {
"PINDIR": "down"
}
},
{
"comment": "Pin labels (16-22)",
"id": "down",
"name": "r_labels_horz",
"repeat": 8,
"pos": "3,24",
"vars": {
"PINDIR": "down"
}
}
],
"pads": {
"1": "custom-20x24-22.front.left.pin1",
"2": "custom-20x24-22.front.left.pin2",
"3": "custom-20x24-22.front.left.pin3",
"4": "custom-20x24-22.front.left.pin4",
"5": "custom-20x24-22.front.left.pin5",
"6": "custom-20x24-22.front.left.pin6",
"7": "custom-20x24-22.front.left.pin7",
"8": "custom-20x24-22.front.right.pin7",
"9": "custom-20x24-22.front.right.pin6",
"10": "custom-20x24-22.front.right.pin5",
"11": "custom-20x24-22.front.right.pin4",
"12": "custom-20x24-22.front.right.pin3",
"13": "custom-20x24-22.front.right.pin2",
"14": "custom-20x24-22.front.right.pin1",
"15": "custom-20x24-22.front.down.label1.anchor",
"16": "custom-20x24-22.front.down.label2.anchor",
"17": "custom-20x24-22.front.down.label3.anchor",
"18": "custom-20x24-22.front.down.label4.anchor",
"19": "custom-20x24-22.front.down.label5.anchor",
"20": "custom-20x24-22.front.down.label6.anchor",
"21": "custom-20x24-22.front.down.label7.anchor",
"22": "custom-20x24-22.front.down.label8.anchor"
},
"test_pads": {}
}

View File

@@ -0,0 +1,27 @@
{
"name": "tuya-16x24",
"title": "Tuya boards; 16x24mm; 16 or 22 pin",
"width": 16,
"height": 24,
"front": [
{
"comment": "Line below model name",
"type": "rect",
"pos": "0.5,6.2",
"size": "15,0.15",
"fill": {
"color": "${SILK_COLOR}"
}
},
{
"comment": "Board model name",
"type": "text",
"pos": "7.0,5.5",
"text": "${SYMBOL}",
"font_size": 1.0,
"fill": {
"color": "${SILK_COLOR}"
}
}
]
}

View File

@@ -0,0 +1,80 @@
{
"name": "tuya2",
"title": "Tuya boards; 2 series",
"width": 15,
"height": 17.9,
"vars": {
"PINTYPE_HORZ": "pad_10x25",
"PINDIR": "down",
"RASTER": 2,
"RF_W": 15,
"RF_H": 5.5
},
"front": [
{
"name": "tuya2_pcb",
"pos": "0,0"
},
{
"comment": "Metal shielding",
"type": "rect",
"pos": "0.3,6",
"size": "14.4,8",
"preset": "shield"
},
{
"comment": "Pins (10,8,6,4,2)",
"name": "r_pins_horz",
"repeat": 5,
"pos": "3.5,16.3"
},
{
"comment": "Pin labels (10,8,6,4,2)",
"id": "pins",
"name": "r_labels_horz",
"repeat": 5,
"pos": "3.5,17.9"
},
{
"type": "text",
"pos": "7.0,5.0",
"text": "${SYMBOL}",
"font_size": 1.0,
"fill": {
"color": "${SILK_COLOR}"
}
}
],
"back": [
{
"name": "tuya2_pcb",
"pos": "0,0"
},
{
"comment": "Pins (1,3,5,7,9,11)",
"name": "r_pins_horz",
"repeat": 6,
"pos": "2.5,16.3"
},
{
"comment": "Pin labels (1,3,5,7,9,11)",
"id": "pins",
"name": "r_labels_horz",
"repeat": 6,
"pos": "2.5,17.9"
}
],
"pads": {
"1": "tuya2.back.pins.label1.anchor",
"2": "tuya2.front.pins.label5.anchor",
"3": "tuya2.back.pins.label2.anchor",
"4": "tuya2.front.pins.label4.anchor",
"5": "tuya2.back.pins.label3.anchor",
"6": "tuya2.front.pins.label3.anchor",
"7": "tuya2.back.pins.label4.anchor",
"8": "tuya2.front.pins.label2.anchor",
"9": "tuya2.back.pins.label5.anchor",
"10": "tuya2.front.pins.label1.anchor",
"11": "tuya2.back.pins.label6.anchor"
}
}

View File

@@ -0,0 +1,73 @@
{
"name": "tuya2l",
"title": "Tuya boards; 2L series",
"width": 15,
"height": 17.3,
"vars": {
"PINTYPE_HORZ": "pin_horz_cast_hole",
"PINDIR": "down",
"RASTER": 2,
"RF_W": 15,
"RF_H": 5.5
},
"front": [
{
"type": "rect",
"pos": "0,0",
"size": "15,17.3",
"preset": "${MASK_PRESET}"
},
{
"comment": "Metal shielding",
"type": "rect",
"pos": "0.7,6",
"size": "13.6,9",
"preset": "shield"
},
{
"comment": "Pins (1-7)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "1.5,17.3"
},
{
"comment": "Pin labels (1-7)",
"id": "pins",
"name": "r_labels_horz",
"repeat": 7,
"pos": "1.5,17.3"
},
{
"type": "text",
"pos": "4.0,5.5",
"text": "${SYMBOL}",
"font_size": 1.0,
"fill": {
"color": "${SILK_COLOR}"
}
}
],
"back": [
{
"type": "rect",
"pos": "0,0",
"size": "15,17.3",
"preset": "${MASK_PRESET}"
},
{
"comment": "Pins (1-7)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "1.5,17.3"
}
],
"pads": {
"1": "tuya2l.front.pins.label1.anchor",
"2": "tuya2l.front.pins.label2.anchor",
"3": "tuya2l.front.pins.label3.anchor",
"4": "tuya2l.front.pins.label4.anchor",
"5": "tuya2l.front.pins.label5.anchor",
"6": "tuya2l.front.pins.label6.anchor",
"7": "tuya2l.front.pins.label7.anchor"
}
}

View File

@@ -0,0 +1,255 @@
{
"name": "tuyalc5",
"title": "Tuya boards; LC5 series",
"width": 15.8,
"height": 20.3,
"vars": {
"RASTER": 2
},
"front": [
{
"type": "rect",
"pos": "0,0",
"size": "8.5,12.7",
"preset": "${MASK_PRESET}"
},
{
"comment": "Middle cut background",
"type": "rect",
"pos": "4,10.3",
"size": "2.5,2.4",
"fill": {
"color": "white"
}
},
{
"comment": "Middle cut stroke top",
"type": "rect",
"pos": "3.9,10.2",
"size": "2.7,0.1",
"preset": "pcb_stroke"
},
{
"comment": "Middle cut stroke left",
"type": "rect",
"pos": "3.9,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Middle cut stroke right",
"type": "rect",
"pos": "6.5,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Right cut background",
"type": "rect",
"pos": "7.7,10.3",
"size": "0.8,2.4",
"fill": {
"color": "white"
}
},
{
"comment": "Right cut stroke top",
"type": "rect",
"pos": "7.6,10.2",
"size": "0.9,0.1",
"preset": "pcb_stroke"
},
{
"comment": "Right cut stroke left",
"type": "rect",
"pos": "7.6,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Pins (1-2)",
"id": "left",
"name": "r_pins_horz",
"repeat": 2,
"pos": "1.26,11.58",
"vars": {
"PINTYPE_HORZ": "pad",
"PINDIR": "down",
"RASTER": 2,
"W": 1,
"H": 2,
"R": 0.3
}
},
{
"comment": "Pins (3)",
"name": "pad",
"pos": "7.13,11.58",
"vars": {
"W": 1,
"H": 2,
"R": 0.3
}
},
{
"comment": "Pin label (1)",
"id": "pin1",
"name": "label_line_down",
"pos": "1.26,12.7",
"vars": {
"DIR": "left",
"W": 0,
"H": 2
}
},
{
"comment": "Pin label (2)",
"id": "pin2",
"name": "label_line_down",
"pos": "3.26,12.7",
"vars": {
"DIR": "left",
"W": 2,
"H": 4
}
},
{
"comment": "Pin label (3)",
"id": "pin3",
"name": "label_line_down",
"pos": "7.13,12.7",
"vars": {
"DIR": "left",
"W": 5.87,
"H": 6
}
}
],
"back": [
{
"type": "rect",
"pos": "0,0",
"size": "8.5,12.7",
"preset": "${MASK_PRESET}"
},
{
"comment": "Middle cut background",
"type": "rect",
"pos": "8.5-4-2.5,10.3",
"size": "2.5,2.4",
"fill": {
"color": "white"
}
},
{
"comment": "Middle cut stroke top",
"type": "rect",
"pos": "8.5-3.9-2.7,10.2",
"size": "2.7,0.1",
"preset": "pcb_stroke"
},
{
"comment": "Middle cut stroke left",
"type": "rect",
"pos": "8.5-3.9-0.1,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Middle cut stroke right",
"type": "rect",
"pos": "8.5-6.5-0.1,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Right cut background",
"type": "rect",
"pos": "8.5-7.7-0.8,10.3",
"size": "0.8,2.4",
"fill": {
"color": "white"
}
},
{
"comment": "Right cut stroke top",
"type": "rect",
"pos": "8.5-7.6-0.9,10.2",
"size": "0.9,0.1",
"preset": "pcb_stroke"
},
{
"comment": "Right cut stroke left",
"type": "rect",
"pos": "8.5-7.6-0.1,10.3",
"size": "0.1,2.4",
"preset": "pcb_stroke"
},
{
"comment": "Pins (1-2)",
"id": "left",
"name": "r_pins_horz",
"repeat": 2,
"pos": "8.5-1.26-2,11.58",
"vars": {
"PINTYPE_HORZ": "pad",
"PINDIR": "down",
"RASTER": 2,
"W": 1,
"H": 2,
"R": 0.3
}
},
{
"comment": "Pins (3)",
"name": "pad",
"pos": "8.5-7.13,11.58",
"vars": {
"W": 1,
"H": 2,
"R": 0.3
}
},
{
"comment": "Pin label (1)",
"id": "pin1",
"name": "label_line_down",
"pos": "8.5-1.26,12.7",
"vars": {
"DIR": "right",
"W": 0,
"H": 2
}
},
{
"comment": "Pin label (2)",
"id": "pin2",
"name": "label_line_down",
"pos": "8.5-3.26,12.7",
"vars": {
"DIR": "right",
"W": 2,
"H": 4
}
},
{
"comment": "Pin label (3)",
"id": "pin3",
"name": "label_line_down",
"pos": "8.5-7.13,12.7",
"vars": {
"DIR": "right",
"W": 5.87,
"H": 6
}
}
],
"pads": {
"1": "tuyalc5.front.pin1.anchor",
"2": "tuyalc5.back.pin1.anchor",
"3": "tuyalc5.front.pin2.anchor",
"4": "tuyalc5.back.pin2.anchor",
"5": "tuyalc5.front.pin3.anchor",
"6": "tuyalc5.back.pin3.anchor"
}
}

162
boards/templates/tuyau.json Normal file
View File

@@ -0,0 +1,162 @@
{
"name": "tuyau",
"title": "Tuya boards; U series",
"width": 15.8,
"height": 20.3,
"vars": {
"PINTYPE_VERT": "pin_vert_cast_nohole",
"PINTYPE_HORZ": "pin_horz_cast_nohole",
"RF_W": 15.8,
"RF_H": 5.2
},
"front": [
{
"name": "tuyau_pcb",
"pos": "0,0"
},
{
"comment": "Metal shielding",
"type": "rect",
"pos": "1.1,5.6",
"size": "13.6,11.5",
"preset": "shield"
},
{
"comment": "Pins (1-7)",
"id": "left",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,6.1",
"vars": {
"PINDIR": "left",
"RASTER": 1.4
}
},
{
"comment": "Pins (8-14)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "2.5,20.3",
"vars": {
"PINDIR": "down",
"RASTER": 1.8
}
},
{
"comment": "Long pads (8-14)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "2.5,17.5 + 1.2",
"vars": {
"PINTYPE_HORZ": "pad",
"W": "0.6 * 1.8",
"H": 2.4,
"R": 0,
"RASTER": 1.8
}
},
{
"comment": "Pin labels (8-14)",
"id": "down",
"name": "r_labels_horz",
"repeat": 7,
"pos": "2.5,20.3",
"vars": {
"PINDIR": "down",
"RASTER": 1.8
}
},
{
"comment": "Pins (15-21)",
"id": "right",
"name": "r_pins_vert",
"repeat": 7,
"pos": "15.8,6.1",
"vars": {
"PINDIR": "right",
"RASTER": 1.4
}
},
{
"type": "text",
"pos": "4.0,5.5",
"text": "${SYMBOL}",
"font_size": 1.0,
"fill": {
"color": "${SILK_COLOR}"
}
}
],
"back": [
{
"name": "tuyau_pcb",
"pos": "0,0"
},
{
"comment": "Pins (1-7)",
"name": "r_pins_vert",
"repeat": 7,
"pos": "0,6.1",
"vars": {
"PINDIR": "left",
"RASTER": 1.4
}
},
{
"comment": "Pins (8-14)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "2.5,20.3",
"vars": {
"PINDIR": "down",
"RASTER": 1.8
}
},
{
"comment": "Long pads (8-14)",
"name": "r_pins_horz",
"repeat": 7,
"pos": "2.5,17.5 + 1.2",
"vars": {
"PINTYPE_HORZ": "pad",
"W": "0.6 * 1.8",
"H": 2.4,
"R": 0,
"RASTER": 1.8
}
},
{
"comment": "Pins (15-21)",
"name": "r_pins_vert",
"repeat": 7,
"pos": "15.8,6.1",
"vars": {
"PINDIR": "right",
"RASTER": 1.4
}
}
],
"pads": {
"1": "tuyau.front.left.pin1",
"2": "tuyau.front.left.pin2",
"3": "tuyau.front.left.pin3",
"4": "tuyau.front.left.pin4",
"5": "tuyau.front.left.pin5",
"6": "tuyau.front.left.pin6",
"7": "tuyau.front.left.pin7",
"8": "tuyau.front.down.label1.anchor",
"9": "tuyau.front.down.label2.anchor",
"10": "tuyau.front.down.label3.anchor",
"11": "tuyau.front.down.label4.anchor",
"12": "tuyau.front.down.label5.anchor",
"13": "tuyau.front.down.label6.anchor",
"14": "tuyau.front.down.label7.anchor",
"15": "tuyau.front.right.pin7",
"16": "tuyau.front.right.pin6",
"17": "tuyau.front.right.pin5",
"18": "tuyau.front.right.pin4",
"19": "tuyau.front.right.pin3",
"20": "tuyau.front.right.pin2",
"21": "tuyau.front.right.pin1"
}
}