sangit/dataset-srj11-45-degree

This code defines a PCB layout with test points, obstacles, and routed traces, including components like rotated and twin pads for physical hardware design.

Version
0.1.0
License
unset
Stars
0

dist/circuits/sample001/circuit.json

PCBPCB preview for dist/circuits/sample001/circuit.json
SchematicSchematic preview for dist/circuits/sample001/circuit.json
[
  {
    "type": "source_group",
    "source_group_id": "source_group_0",
    "is_subcircuit": true,
    "was_automatically_named": true,
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "source_port",
    "source_port_id": "source_port_0",
    "name": "pin1",
    "pin_number": 1,
    "port_hints": [
      "pin1",
      "1"
    ],
    "source_component_id": "source_component_0",
    "subcircuit_id": "subcircuit_source_group_0",
    "subcircuit_connectivity_map_key": "unnamedsubcircuit17_connectivity_net0"
  },
  {
    "type": "source_component",
    "source_component_id": "source_component_0",
    "ftype": "simple_test_point",
    "name": "TP1",
    "supplier_part_numbers": {},
    "footprint_variant": "pad",
    "pad_shape": "circle",
    "pad_diameter": 1.1,
    "are_pins_interchangeable": true,
    "source_group_id": "source_group_0"
  },
  {
    "type": "source_port",
    "source_port_id": "source_port_1",
    "name": "pin1",
    "pin_number": 1,
    "port_hints": [
      "pin1",
      "1"
    ],
    "source_component_id": "source_component_1",
    "subcircuit_id": "subcircuit_source_group_0",
    "subcircuit_connectivity_map_key": "unnamedsubcircuit17_connectivity_net0"
  },
  {
    "type": "source_component",
    "source_component_id": "source_component_1",
    "ftype": "simple_test_point",
    "name": "TP2",
    "supplier_part_numbers": {},
    "footprint_variant": "pad",
    "pad_shape": "circle",
    "pad_diameter": 1.1,
    "are_pins_interchangeable": true,
    "source_group_id": "source_group_0"
  },
  {
    "type": "source_port",
    "source_port_id": "source_port_2",
    "name": "OBSTACLE",
    "pin_number": 1,
    "port_hints": [
      "OBSTACLE",
      "pin1",
      "1"
    ],
    "source_component_id": "source_component_2",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_connect": true
  },
  {
    "type": "source_component",
    "source_component_id": "source_component_2",
    "ftype": "simple_chip",
    "name": "OBS1",
    "supplier_part_numbers": {},
    "source_group_id": "source_group_0"
  },
  {
    "type": "source_port",
    "source_port_id": "source_port_3",
    "name": "OBSTACLE",
    "pin_number": 1,
    "port_hints": [
      "OBSTACLE",
      "pin1",
      "1"
    ],
    "source_component_id": "source_component_3",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_connect": true
  },
  {
    "type": "source_component",
    "source_component_id": "source_component_3",
    "ftype": "simple_chip",
    "name": "OBS2",
    "supplier_part_numbers": {},
    "source_group_id": "source_group_0"
  },
  {
    "type": "source_board",
    "source_board_id": "source_board_0",
    "source_group_id": "source_group_0"
  },
  {
    "type": "source_trace",
    "source_trace_id": "source_trace_0",
    "connected_source_port_ids": [
      "source_port_0",
      "source_port_1"
    ],
    "connected_source_net_ids": [],
    "subcircuit_id": "subcircuit_source_group_0",
    "display_name": "TP1.pin1 to TP2.pin1",
    "subcircuit_connectivity_map_key": "unnamedsubcircuit17_connectivity_net0"
  },
  {
    "type": "schematic_component",
    "schematic_component_id": "schematic_component_0",
    "center": {
      "x": 0,
      "y": -0.39999999999999997
    },
    "size": {
      "width": 0.325,
      "height": 0.2
    },
    "source_component_id": "source_component_0",
    "is_box_with_pins": true,
    "symbol_name": "testpoint_right",
    "schematic_group_id": "schematic_group_0"
  },
  {
    "type": "schematic_component",
    "schematic_component_id": "schematic_component_1",
    "center": {
      "x": 0,
      "y": 0.39999999999999997
    },
    "size": {
      "width": 0.325,
      "height": 0.2
    },
    "source_component_id": "source_component_1",
    "is_box_with_pins": true,
    "symbol_name": "testpoint_right",
    "schematic_group_id": "schematic_group_0"
  },
  {
    "type": "schematic_component",
    "schematic_component_id": "schematic_component_2",
    "center": {
      "x": 0,
      "y": -2.3000000000000003
    },
    "rotation": 0,
    "size": {
      "width": 1.9000000000000001,
      "height": 0.4
    },
    "pin_spacing": 0.2,
    "port_labels": {
      "pin1": "OBSTACLE"
    },
    "source_component_id": "source_component_2",
    "schematic_group_id": "schematic_group_0"
  },
  {
    "type": "schematic_text",
    "schematic_text_id": "schematic_text_0",
    "text": "",
    "schematic_component_id": "schematic_component_2",
    "anchor": "left",
    "rotation": 0,
    "position": {
      "x": -0.9500000000000001,
      "y": -2.6300000000000003
    },
    "color": "#006464",
    "font_size": 0.18
  },
  {
    "type": "schematic_text",
    "schematic_text_id": "schematic_text_1",
    "text": "OBS1",
    "schematic_component_id": "schematic_component_2",
    "anchor": "left",
    "rotation": 0,
    "position": {
      "x": -0.9500000000000001,
      "y": -1.9700000000000002
    },
    "color": "#006464",
    "font_size": 0.18
  },
  {
    "type": "schematic_component",
    "schematic_component_id": "schematic_component_3",
    "center": {
      "x": 0,
      "y": -4.700000000000001
    },
    "rotation": 0,
    "size": {
      "width": 1.9000000000000001,
      "height": 0.4
    },
    "pin_spacing": 0.2,
    "port_labels": {
      "pin1": "OBSTACLE"
    },
    "source_component_id": "source_component_3",
    "schematic_group_id": "schematic_group_0"
  },
  {
    "type": "schematic_text",
    "schematic_text_id": "schematic_text_2",
    "text": "",
    "schematic_component_id": "schematic_component_3",
    "anchor": "left",
    "rotation": 0,
    "position": {
      "x": -0.9500000000000001,
      "y": -5.030000000000001
    },
    "color": "#006464",
    "font_size": 0.18
  },
  {
    "type": "schematic_text",
    "schematic_text_id": "schematic_text_3",
    "text": "OBS2",
    "schematic_component_id": "schematic_component_3",
    "anchor": "left",
    "rotation": 0,
    "position": {
      "x": -0.9500000000000001,
      "y": -4.370000000000001
    },
    "color": "#006464",
    "font_size": 0.18
  },
  {
    "type": "schematic_group",
    "schematic_group_id": "schematic_group_0",
    "is_subcircuit": true,
    "subcircuit_id": "subcircuit_source_group_0",
    "name": "unnamed_board1",
    "center": {
      "x": 0,
      "y": 0
    },
    "width": 0,
    "height": 0,
    "schematic_component_ids": [],
    "source_group_id": "source_group_0",
    "show_as_schematic_box": false
  },
  {
    "type": "schematic_port",
    "schematic_port_id": "schematic_port_0",
    "schematic_component_id": "schematic_component_0",
    "center": {
      "x": -0.2,
      "y": -0.39999999999999997
    },
    "source_port_id": "source_port_0",
    "facing_direction": "left",
    "distance_from_component_edge": 0.4,
    "pin_number": 1,
    "is_connected": true
  },
  {
    "type": "schematic_port",
    "schematic_port_id": "schematic_port_1",
    "schematic_component_id": "schematic_component_1",
    "center": {
      "x": -0.2,
      "y": 0.39999999999999997
    },
    "source_port_id": "source_port_1",
    "facing_direction": "left",
    "distance_from_component_edge": 0.4,
    "pin_number": 1,
    "is_connected": true
  },
  {
    "type": "schematic_port",
    "schematic_port_id": "schematic_port_2",
    "schematic_component_id": "schematic_component_2",
    "center": {
      "x": -1.35,
      "y": -2.3000000000000003
    },
    "source_port_id": "source_port_2",
    "facing_direction": "left",
    "distance_from_component_edge": 0.4,
    "side_of_component": "left",
    "pin_number": 1,
    "true_ccw_index": 0,
    "display_pin_label": "OBSTACLE",
    "is_connected": false
  },
  {
    "type": "schematic_port",
    "schematic_port_id": "schematic_port_3",
    "schematic_component_id": "schematic_component_3",
    "center": {
      "x": -1.35,
      "y": -4.700000000000001
    },
    "source_port_id": "source_port_3",
    "facing_direction": "left",
    "distance_from_component_edge": 0.4,
    "side_of_component": "left",
    "pin_number": 1,
    "true_ccw_index": 0,
    "display_pin_label": "OBSTACLE",
    "is_connected": false
  },
  {
    "type": "schematic_trace",
    "schematic_trace_id": "schematic_trace_0",
    "source_trace_id": "solver_TP1.1-TP2.1",
    "edges": [
      {
        "from": {
          "x": -0.2,
          "y": -0.39999999999999997
        },
        "to": {
          "x": -0.4,
          "y": -0.39999999999999997
        }
      },
      {
        "from": {
          "x": -0.4,
          "y": -0.39999999999999997
        },
        "to": {
          "x": -0.4,
          "y": 0.39999999999999997
        }
      },
      {
        "from": {
          "x": -0.4,
          "y": 0.39999999999999997
        },
        "to": {
          "x": -0.2,
          "y": 0.39999999999999997
        }
      }
    ],
    "junctions": [],
    "subcircuit_connectivity_map_key": "unnamedsubcircuit17_connectivity_net0"
  },
  {
    "type": "pcb_component",
    "pcb_component_id": "pcb_component_0",
    "center": {
      "x": -7.4,
      "y": -1.5
    },
    "width": 1.0999999999999996,
    "height": 1.0999999999999999,
    "layer": "top",
    "rotation": 0,
    "source_component_id": "source_component_0",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_place": false,
    "obstructs_within_bounds": true,
    "position_mode": "relative_to_group_anchor",
    "positioned_relative_to_pcb_board_id": "pcb_board_0",
    "display_offset_x": -7.4,
    "display_offset_y": -1.5
  },
  {
    "type": "pcb_component",
    "pcb_component_id": "pcb_component_1",
    "center": {
      "x": 7.4,
      "y": 1.5
    },
    "width": 1.0999999999999996,
    "height": 1.0999999999999999,
    "layer": "top",
    "rotation": 0,
    "source_component_id": "source_component_1",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_place": false,
    "obstructs_within_bounds": true,
    "position_mode": "relative_to_group_anchor",
    "positioned_relative_to_pcb_board_id": "pcb_board_0",
    "display_offset_x": 7.4,
    "display_offset_y": 1.5
  },
  {
    "type": "pcb_component",
    "pcb_component_id": "pcb_component_2",
    "center": {
      "x": -2.3,
      "y": 2.3
    },
    "width": 2.3499999999999996,
    "height": 2.4000000000000004,
    "layer": "top",
    "rotation": 45,
    "source_component_id": "source_component_2",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_place": false,
    "obstructs_within_bounds": true,
    "is_allowed_to_be_off_board": false,
    "position_mode": "relative_to_group_anchor",
    "positioned_relative_to_pcb_board_id": "pcb_board_0",
    "display_offset_x": -2.3,
    "display_offset_y": 2.3
  },
  {
    "type": "pcb_component",
    "pcb_component_id": "pcb_component_3",
    "center": {
      "x": 2.3,
      "y": -2.3
    },
    "width": 2.3499999999999996,
    "height": 2.4000000000000004,
    "layer": "top",
    "rotation": 45,
    "source_component_id": "source_component_3",
    "subcircuit_id": "subcircuit_source_group_0",
    "do_not_place": false,
    "obstructs_within_bounds": true,
    "is_allowed_to_be_off_board": false,
    "position_mode": "relative_to_group_anchor",
    "positioned_relative_to_pcb_board_id": "pcb_board_0",
    "display_offset_x": 2.3,
    "display_offset_y": -2.3
  },
  {
    "type": "pcb_board",
    "pcb_board_id": "pcb_board_0",
    "source_board_id": "source_board_0",
    "center": {
      "x": 0,
      "y": 0
    },
    "thickness": 1.4,
    "num_layers": 2,
    "width": 19,
    "height": 8.4,
    "material": "fr4",
    "min_trace_width": 0.1,
    "min_via_hole_diameter": 0.2,
    "min_via_pad_diameter": 0.3,
    "min_trace_to_pad_spacing": 0.1,
    "min_pad_to_pad_spacing": 0.1
  },
  {
    "type": "pcb_smtpad",
    "pcb_smtpad_id": "pcb_smtpad_0",
    "pcb_component_id": "pcb_component_0",
    "pcb_port_id": "pcb_port_0",
    "layer": "top",
    "shape": "circle",
    "radius": 0.55,
    "port_hints": [
      "1"
    ],
    "is_covered_with_solder_mask": false,
    "x": -7.4,
    "y": -1.5,
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_solder_paste",
    "pcb_solder_paste_id": "pcb_solder_paste_0",
    "layer": "top",
    "shape": "circle",
    "radius": 0.385,
    "x": -7.4,
    "y": -1.5,
    "pcb_component_id": "pcb_component_0",
    "pcb_smtpad_id": "pcb_smtpad_0",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_silkscreen_text",
    "pcb_silkscreen_text_id": "pcb_silkscreen_text_0",
    "anchor_alignment": "center",
    "anchor_position": {
      "x": -7.4,
      "y": -0.44999999999999996
    },
    "font": "tscircuit2024",
    "font_size": 0.4,
    "layer": "top",
    "text": "TP1",
    "ccw_rotation": 0,
    "pcb_component_id": "pcb_component_0",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_smtpad",
    "pcb_smtpad_id": "pcb_smtpad_1",
    "pcb_component_id": "pcb_component_1",
    "pcb_port_id": "pcb_port_1",
    "layer": "top",
    "shape": "circle",
    "radius": 0.55,
    "port_hints": [
      "1"
    ],
    "is_covered_with_solder_mask": false,
    "x": 7.4,
    "y": 1.5,
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_solder_paste",
    "pcb_solder_paste_id": "pcb_solder_paste_1",
    "layer": "top",
    "shape": "circle",
    "radius": 0.385,
    "x": 7.4,
    "y": 1.5,
    "pcb_component_id": "pcb_component_1",
    "pcb_smtpad_id": "pcb_smtpad_1",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_silkscreen_text",
    "pcb_silkscreen_text_id": "pcb_silkscreen_text_1",
    "anchor_alignment": "center",
    "anchor_position": {
      "x": 7.4,
      "y": 2.55
    },
    "font": "tscircuit2024",
    "font_size": 0.4,
    "layer": "top",
    "text": "TP2",
    "ccw_rotation": 0,
    "pcb_component_id": "pcb_component_1",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_smtpad",
    "pcb_smtpad_id": "pcb_smtpad_2",
    "pcb_component_id": "pcb_component_2",
    "pcb_port_id": "pcb_port_2",
    "layer": "top",
    "shape": "rotated_rect",
    "width": 2.35,
    "height": 2.4,
    "x": -2.3,
    "y": 2.3,
    "ccw_rotation": 45,
    "port_hints": [
      "pin1"
    ],
    "is_covered_with_solder_mask": false,
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_solder_paste",
    "pcb_solder_paste_id": "pcb_solder_paste_2",
    "layer": "top",
    "shape": "rotated_rect",
    "width": 1.645,
    "height": 1.68,
    "x": -2.3,
    "y": 2.3,
    "ccw_rotation": 45,
    "pcb_component_id": "pcb_component_2",
    "pcb_smtpad_id": "pcb_smtpad_2",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_smtpad",
    "pcb_smtpad_id": "pcb_smtpad_3",
    "pcb_component_id": "pcb_component_3",
    "pcb_port_id": "pcb_port_3",
    "layer": "top",
    "shape": "rotated_rect",
    "width": 2.35,
    "height": 2.4,
    "x": 2.3,
    "y": -2.3,
    "ccw_rotation": 45,
    "port_hints": [
      "pin1"
    ],
    "is_covered_with_solder_mask": false,
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_solder_paste",
    "pcb_solder_paste_id": "pcb_solder_paste_3",
    "layer": "top",
    "shape": "rotated_rect",
    "width": 1.645,
    "height": 1.68,
    "x": 2.3,
    "y": -2.3,
    "ccw_rotation": 45,
    "pcb_component_id": "pcb_component_3",
    "pcb_smtpad_id": "pcb_smtpad_3",
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "pcb_port",
    "pcb_port_id": "pcb_port_0",
    "pcb_component_id": "pcb_component_0",
    "layers": [
      "top"
    ],
    "subcircuit_id": "subcircuit_source_group_0",
    "x": -7.4,
    "y": -1.5,
    "source_port_id": "source_port_0"
  },
  {
    "type": "pcb_port",
    "pcb_port_id": "pcb_port_1",
    "pcb_component_id": "pcb_component_1",
    "layers": [
      "top"
    ],
    "subcircuit_id": "subcircuit_source_group_0",
    "x": 7.4,
    "y": 1.5,
    "source_port_id": "source_port_1"
  },
  {
    "type": "pcb_port",
    "pcb_port_id": "pcb_port_2",
    "pcb_component_id": "pcb_component_2",
    "layers": [
      "top"
    ],
    "subcircuit_id": "subcircuit_source_group_0",
    "x": -2.3,
    "y": 2.3,
    "source_port_id": "source_port_2"
  },
  {
    "type": "pcb_port",
    "pcb_port_id": "pcb_port_3",
    "pcb_component_id": "pcb_component_3",
    "layers": [
      "top"
    ],
    "subcircuit_id": "subcircuit_source_group_0",
    "x": 2.3,
    "y": -2.3,
    "source_port_id": "source_port_3"
  },
  {
    "type": "cad_component",
    "cad_component_id": "cad_component_0",
    "position": {
      "x": -7.4,
      "y": -1.5,
      "z": 0.7
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "pcb_component_id": "pcb_component_0",
    "source_component_id": "source_component_0",
    "model_origin_alignment": "center_of_component_on_board_surface",
    "anchor_alignment": "center_of_component_on_board_surface",
    "footprinter_string": "smtpad_circle_d1.1"
  },
  {
    "type": "cad_component",
    "cad_component_id": "cad_component_1",
    "position": {
      "x": 7.4,
      "y": 1.5,
      "z": 0.7
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0
    },
    "pcb_component_id": "pcb_component_1",
    "source_component_id": "source_component_1",
    "model_origin_alignment": "center_of_component_on_board_surface",
    "anchor_alignment": "center_of_component_on_board_surface",
    "footprinter_string": "smtpad_circle_d1.1"
  },
  {
    "type": "source_no_power_pin_defined_warning",
    "source_no_power_pin_defined_warning_id": "source_no_power_pin_defined_warning_0",
    "warning_type": "source_no_power_pin_defined_warning",
    "message": "OBS1 has no pin with requires_power=true",
    "source_component_id": "source_component_2",
    "source_port_ids": [
      "source_port_2"
    ],
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "source_no_power_pin_defined_warning",
    "source_no_power_pin_defined_warning_id": "source_no_power_pin_defined_warning_1",
    "warning_type": "source_no_power_pin_defined_warning",
    "message": "OBS2 has no pin with requires_power=true",
    "source_component_id": "source_component_3",
    "source_port_ids": [
      "source_port_3"
    ],
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "source_no_ground_pin_defined_warning",
    "source_no_ground_pin_defined_warning_id": "source_no_ground_pin_defined_warning_0",
    "warning_type": "source_no_ground_pin_defined_warning",
    "message": "OBS1 has no pin with requires_ground=true",
    "source_component_id": "source_component_2",
    "source_port_ids": [
      "source_port_2"
    ],
    "subcircuit_id": "subcircuit_source_group_0"
  },
  {
    "type": "source_no_ground_pin_defined_warning",
    "source_no_ground_pin_defined_warning_id": "source_no_ground_pin_defined_warning_1",
    "warning_type": "source_no_ground_pin_defined_warning",
    "message": "OBS2 has no pin with requires_ground=true",
    "source_component_id": "source_component_3",
    "source_port_ids": [
      "source_port_3"
    ],
    "subcircuit_id": "subcircuit_source_group_0"
  }
]