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.cjs
'use strict';
var jsxRuntime = require('react/jsx-runtime');
var index = () => (jsxRuntime.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: [jsxRuntime.jsx("net", { name: "VCC_3V3", isPowerNet: true }), jsxRuntime.jsx("net", { name: "GND", isGroundNet: true }), jsxRuntime.jsx("pinheader", { name: "J_QWIIC_1", pinCount: 4, pcbX: -5, pcbY: 35.4, pcbRotation: 90 }), jsxRuntime.jsx("pinheader", { name: "J_QWIIC_2", pinCount: 4, pcbX: 5, pcbY: 35.4, pcbRotation: 90 }), jsxRuntime.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"
} }), jsxRuntime.jsx("capacitor", { name: "C_MOD", capacitance: "2.2nF", footprint: "0603", pcbX: -6, pcbY: 20 }), jsxRuntime.jsx("capacitor", { name: "C_DECOUPLE", capacitance: "0.1uF", footprint: "0603", pcbX: 6, pcbY: 20 }), jsxRuntime.jsx("resistor", { name: "R_SDA", resistance: "4.7k", footprint: "0402", pcbX: -5, pcbY: 28 }), jsxRuntime.jsx("resistor", { name: "R_SCL", resistance: "4.7k", footprint: "0402", pcbX: 5, pcbY: 28 }), jsxRuntime.jsx("led", { name: "LED_PWR", color: "red", footprint: "0603", pcbX: -6, pcbY: 12 }), jsxRuntime.jsx("resistor", { name: "R_PWR", resistance: "1k", footprint: "0402", pcbX: -6, pcbY: 15 }), jsxRuntime.jsx("led", { name: "LED_STAT", color: "blue", footprint: "0603", pcbX: 6, pcbY: 12 }), jsxRuntime.jsx("resistor", { name: "R_STAT", resistance: "330", footprint: "0402", pcbX: 6, pcbY: 15 }), jsxRuntime.jsx("chip", { name: "PROBE", pcbX: 0, pcbY: 0, pinLabels: { pin1: "SENSE" }, footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: 0, pcbY: -5, width: "2mm", height: "2mm", shape: "rect", layer: "top" }), jsxRuntime.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 },
] }), jsxRuntime.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 },
] })] }) }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin1", to: "net.GND", thickness: "0.6mm" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin2", to: "net.VCC_3V3", thickness: "0.6mm" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_2 > .pin1", to: "net.GND", thickness: "0.6mm" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_2 > .pin2", to: "net.VCC_3V3", thickness: "0.6mm" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .VDD", to: "net.VCC_3V3", thickness: "0.4mm" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .GND", to: "net.GND", thickness: "0.4mm" }), jsxRuntime.jsx("trace", { from: ".C_DECOUPLE > .pin1", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: ".C_DECOUPLE > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin3", to: ".J_QWIIC_2 > .pin3" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin4", to: ".J_QWIIC_2 > .pin4" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin3", to: ".U_SENSE > .SDA" }), jsxRuntime.jsx("trace", { from: ".J_QWIIC_1 > .pin4", to: ".U_SENSE > .SCL" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .SDA", to: ".R_SDA > .pin1" }), jsxRuntime.jsx("trace", { from: ".R_SDA > .pin2", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .SCL", to: ".R_SCL > .pin1" }), jsxRuntime.jsx("trace", { from: ".R_SCL > .pin2", to: "net.VCC_3V3" }), jsxRuntime.jsx("trace", { from: "net.VCC_3V3", to: ".R_PWR > .pin1" }), jsxRuntime.jsx("trace", { from: ".R_PWR > .pin2", to: ".LED_PWR > .pos" }), jsxRuntime.jsx("trace", { from: ".LED_PWR > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .GPO0", to: ".R_STAT > .pin1" }), jsxRuntime.jsx("trace", { from: ".R_STAT > .pin2", to: ".LED_STAT > .pos" }), jsxRuntime.jsx("trace", { from: ".LED_STAT > .neg", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .CMOD", to: ".C_MOD > .pin1" }), jsxRuntime.jsx("trace", { from: ".C_MOD > .pin2", to: "net.GND" }), jsxRuntime.jsx("trace", { from: ".U_SENSE > .pin4", to: ".PROBE > .SENSE", thickness: "0.2mm" })] }));
module.exports = index;