mohan-bee/soil-final
This code defines a printed circuit board (PCB) featuring a sensor chip with associated decoupling capacitors, resistors, indicator LEDs with current-limiting resistors, pin headers for external connections, and a custom spear-shaped probe pad.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
dist/index.js
import { jsxs, jsx } from 'react/jsx-runtime';
var index = () => (jsxs("board", { width: "20mm", height: "80mm", outline: [
{ x: -10, y: 40 },
{ x: 10, y: 40 },
{ x: 10, y: -25 }, /* Start of the angle */
{ x: 0, y: -40 }, /* The Pointed Tip */
{ x: -10, y: -25 }, /* Start of the angle */
], children: [jsx("net", { name: "VCC_3V3", isPowerNet: true }), jsx("net", { name: "GND", isGroundNet: true }), jsx("pinheader", { name: "J_QWIIC_1", pinCount: 4, pcbX: -5, pcbY: 35.4, pcbRotation: 90 }), jsx("pinheader", { name: "J_QWIIC_2", pinCount: 4, pcbX: 5, pcbY: 35.4, pcbRotation: 90 }), jsx("chip", { name: "U_SENSE", footprint: "soic16", pcbX: 0, pcbY: 20, pinLabels: {
pin1: "SDA", pin2: "SCL", pin3: "CMOD", pin4: "CS0",
pin8: "GND", pin15: "GPO0", pin16: "VDD"
} }), jsx("capacitor", { name: "C_MOD", capacitance: "2.2nF", footprint: "0603", pcbX: -6, pcbY: 20 }), jsx("capacitor", { name: "C_DECOUPLE", capacitance: "0.1uF", footprint: "0603", pcbX: 6, pcbY: 20 }), jsx("resistor", { name: "R_SDA", resistance: "4.7k", footprint: "0402", pcbX: -5, pcbY: 28 }), jsx("resistor", { name: "R_SCL", resistance: "4.7k", footprint: "0402", pcbX: 5, pcbY: 28 }), jsx("led", { name: "LED_PWR", color: "red", footprint: "0603", pcbX: -6, pcbY: 12 }), jsx("resistor", { name: "R_PWR", resistance: "1k", footprint: "0402", pcbX: -6, pcbY: 15 }), jsx("led", { name: "LED_STAT", color: "blue", footprint: "0603", pcbX: 6, pcbY: 12 }), jsx("resistor", { name: "R_STAT", resistance: "330", footprint: "0402", pcbX: 6, pcbY: 15 }), jsx("chip", { name: "PROBE", pcbX: 0, pcbY: 0, pinLabels: { pin1: "SENSE" }, footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: 0, pcbY: -5, width: "2mm", height: "2mm", shape: "rect", layer: "top" }), jsx("smtpad", { portHints: ["pin1"], pcbX: 0, pcbY: 0, layer: "top", shape: "polygon", points: [
{ x: -8, y: 5 },
{ x: 8, y: 5 },
{ x: 8, y: -24 },
{ x: 1, y: -36 },
{ x: -1, y: -36 },
{ x: -8, y: -24 },
] }), jsx("courtyardoutline", { outline: [
{ x: -9, y: 6 },
{ x: 9, y: 6 },
{ x: 9, y: -24 },
{ x: 2, y: -37 },
{ x: -2, y: -37 },
{ x: -9, y: -24 },
] })] }) }), jsx("trace", { from: ".J_QWIIC_1 > .pin1", to: "net.GND", thickness: "0.6mm" }), jsx("trace", { from: ".J_QWIIC_1 > .pin2", to: "net.VCC_3V3", thickness: "0.6mm" }), jsx("trace", { from: ".J_QWIIC_2 > .pin1", to: "net.GND", thickness: "0.6mm" }), jsx("trace", { from: ".J_QWIIC_2 > .pin2", to: "net.VCC_3V3", thickness: "0.6mm" }), jsx("trace", { from: ".U_SENSE > .VDD", to: "net.VCC_3V3", thickness: "0.4mm" }), jsx("trace", { from: ".U_SENSE > .GND", to: "net.GND", thickness: "0.4mm" }), jsx("trace", { from: ".C_DECOUPLE > .pin1", to: "net.VCC_3V3" }), jsx("trace", { from: ".C_DECOUPLE > .pin2", to: "net.GND" }), jsx("trace", { from: ".J_QWIIC_1 > .pin3", to: ".J_QWIIC_2 > .pin3" }), jsx("trace", { from: ".J_QWIIC_1 > .pin4", to: ".J_QWIIC_2 > .pin4" }), jsx("trace", { from: ".J_QWIIC_1 > .pin3", to: ".U_SENSE > .SDA" }), jsx("trace", { from: ".J_QWIIC_1 > .pin4", to: ".U_SENSE > .SCL" }), jsx("trace", { from: ".U_SENSE > .SDA", to: ".R_SDA > .pin1" }), jsx("trace", { from: ".R_SDA > .pin2", to: "net.VCC_3V3" }), jsx("trace", { from: ".U_SENSE > .SCL", to: ".R_SCL > .pin1" }), jsx("trace", { from: ".R_SCL > .pin2", to: "net.VCC_3V3" }), jsx("trace", { from: "net.VCC_3V3", to: ".R_PWR > .pin1" }), jsx("trace", { from: ".R_PWR > .pin2", to: ".LED_PWR > .pos" }), jsx("trace", { from: ".LED_PWR > .neg", to: "net.GND" }), jsx("trace", { from: ".U_SENSE > .GPO0", to: ".R_STAT > .pin1" }), jsx("trace", { from: ".R_STAT > .pin2", to: ".LED_STAT > .pos" }), jsx("trace", { from: ".LED_STAT > .neg", to: "net.GND" }), jsx("trace", { from: ".U_SENSE > .CMOD", to: ".C_MOD > .pin1" }), jsx("trace", { from: ".C_MOD > .pin2", to: "net.GND" }), jsx("trace", { from: ".U_SENSE > .pin4", to: ".PROBE > .SENSE", thickness: "0.2mm" })] }));
export { index as default };