imrishabh18/example-dir3
A simple circuit with a 1kΩ resistor (R1) mounted in a 0402 package.
Usage: To use the component in a project: 1. Import the component: ```tsx import { SomeComponent } from "@tsci/AUTHOR.PACKAGE_NAME" ``` 2. Place the component in a circuit board: ```tsx <board> <SomeComponent name="U1" /> </board> ``` 3. Optionally, connect pins using traces or other components as needed: ```tsx <trace from={sel.U1.VCC} to="net.VCC" /> ``` The component supports standard layout props and has predefined pin labels that can be referenced.
- Version
- 0.0.1
- License
- MIT
- Stars
- 0
dist/circuit.json
PCB
Schematic
[
{
"type": "source_project_metadata",
"source_project_metadata_id": "source_project_metadata_0",
"software_used_string": "@tscircuit/core@0.0.747"
},
{
"type": "source_group",
"source_group_id": "source_group_0",
"is_subcircuit": true,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "source_port",
"source_port_id": "source_port_0",
"name": "pin1",
"pin_number": 1,
"port_hints": [
"pin1",
"anode",
"pos",
"left",
"1"
],
"source_component_id": "source_component_0",
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "source_port",
"source_port_id": "source_port_1",
"name": "pin2",
"pin_number": 2,
"port_hints": [
"pin2",
"cathode",
"neg",
"right",
"2"
],
"source_component_id": "source_component_0",
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "source_component",
"source_component_id": "source_component_0",
"ftype": "simple_resistor",
"name": "R1",
"supplier_part_numbers": {
"jlcpcb": [
"C11702",
"C2906864",
"C25543"
]
},
"resistance": 1000,
"display_resistance": "1kΩ",
"are_pins_interchangeable": true,
"source_group_id": "source_group_0"
},
{
"type": "source_pin_missing_trace_warning",
"source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_0",
"message": "Port pin1 on R1 is missing a trace",
"source_component_id": "source_component_0",
"source_port_id": "source_port_0",
"subcircuit_id": "subcircuit_source_group_0",
"warning_type": "source_pin_missing_trace_warning"
},
{
"type": "source_pin_missing_trace_warning",
"source_pin_missing_trace_warning_id": "source_pin_missing_trace_warning_1",
"message": "Port pin2 on R1 is missing a trace",
"source_component_id": "source_component_0",
"source_port_id": "source_port_1",
"subcircuit_id": "subcircuit_source_group_0",
"warning_type": "source_pin_missing_trace_warning"
},
{
"type": "schematic_component",
"schematic_component_id": "schematic_component_0",
"center": {
"x": 0,
"y": 0
},
"size": {
"width": 1.1,
"height": 0.388910699999999
},
"source_component_id": "source_component_0",
"is_box_with_pins": true,
"symbol_name": "boxresistor_right",
"symbol_display_value": "1kΩ",
"schematic_group_id": "schematic_group_0"
},
{
"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"
},
{
"type": "schematic_port",
"schematic_port_id": "schematic_port_0",
"schematic_component_id": "schematic_component_0",
"center": {
"x": -0.55,
"y": 0
},
"source_port_id": "source_port_0",
"facing_direction": "left",
"distance_from_component_edge": 0.4,
"pin_number": 1,
"display_pin_label": "anode",
"is_connected": false
},
{
"type": "schematic_port",
"schematic_port_id": "schematic_port_1",
"schematic_component_id": "schematic_component_0",
"center": {
"x": 0.55,
"y": 0
},
"source_port_id": "source_port_1",
"facing_direction": "right",
"distance_from_component_edge": 0.4,
"pin_number": 2,
"display_pin_label": "cathode",
"is_connected": false
},
{
"type": "pcb_component",
"pcb_component_id": "pcb_component_0",
"center": {
"x": 0,
"y": 0
},
"width": 1.56,
"height": 0.64,
"layer": "top",
"rotation": 0,
"source_component_id": "source_component_0",
"subcircuit_id": "subcircuit_source_group_0",
"do_not_place": false
},
{
"type": "pcb_board",
"pcb_board_id": "pcb_board_0",
"center": {
"x": 0,
"y": 0
},
"thickness": 1.4,
"num_layers": 2,
"width": 5.5600000000000005,
"height": 4.64,
"material": "fr4"
},
{
"type": "pcb_smtpad",
"pcb_smtpad_id": "pcb_smtpad_0",
"pcb_component_id": "pcb_component_0",
"pcb_port_id": "pcb_port_0",
"layer": "top",
"shape": "rect",
"width": 0.54,
"height": 0.64,
"port_hints": [
"1",
"left"
],
"is_covered_with_solder_mask": false,
"x": -0.51,
"y": 0,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_solder_paste",
"pcb_solder_paste_id": "pcb_solder_paste_0",
"layer": "top",
"shape": "rect",
"width": 0.378,
"height": 0.44799999999999995,
"x": -0.51,
"y": 0,
"pcb_component_id": "pcb_component_0",
"pcb_smtpad_id": "pcb_smtpad_0",
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_smtpad",
"pcb_smtpad_id": "pcb_smtpad_1",
"pcb_component_id": "pcb_component_0",
"pcb_port_id": "pcb_port_1",
"layer": "top",
"shape": "rect",
"width": 0.54,
"height": 0.64,
"port_hints": [
"2",
"right"
],
"is_covered_with_solder_mask": false,
"x": 0.51,
"y": 0,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_solder_paste",
"pcb_solder_paste_id": "pcb_solder_paste_1",
"layer": "top",
"shape": "rect",
"width": 0.378,
"height": 0.44799999999999995,
"x": 0.51,
"y": 0,
"pcb_component_id": "pcb_component_0",
"pcb_smtpad_id": "pcb_smtpad_1",
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_silkscreen_path",
"pcb_silkscreen_path_id": "pcb_silkscreen_path_0",
"pcb_component_id": "pcb_component_0",
"layer": "top",
"route": [
{
"x": 0.51,
"y": 0.72
},
{
"x": -0.98,
"y": 0.72
},
{
"x": -0.98,
"y": -0.72
},
{
"x": 0.51,
"y": -0.72
}
],
"stroke_width": 0.1,
"subcircuit_id": "subcircuit_source_group_0"
},
{
"type": "pcb_silkscreen_text",
"pcb_silkscreen_text_id": "pcb_silkscreen_text_0",
"anchor_alignment": "center",
"anchor_position": {
"x": 0,
"y": 1.22
},
"font": "tscircuit2024",
"font_size": 0.4,
"layer": "top",
"text": "R1",
"ccw_rotation": 0,
"pcb_component_id": "pcb_component_0",
"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": -0.51,
"y": 0,
"source_port_id": "source_port_0"
},
{
"type": "pcb_port",
"pcb_port_id": "pcb_port_1",
"pcb_component_id": "pcb_component_0",
"layers": [
"top"
],
"subcircuit_id": "subcircuit_source_group_0",
"x": 0.51,
"y": 0,
"source_port_id": "source_port_1"
},
{
"type": "cad_component",
"cad_component_id": "cad_component_0",
"position": {
"x": 0,
"y": 0,
"z": 0.7
},
"rotation": {
"x": 0,
"y": 0,
"z": 0
},
"pcb_component_id": "pcb_component_0",
"source_component_id": "source_component_0",
"footprinter_string": "0402"
}
]