mohan-bee/soil-moisture-sensor
This code defines a compact electronic sensing module featuring a PIC microcontroller, multiple sensors and components, power and status LEDs, and a uniquely designed capacitive soil probe with layered rectangular pads.
- 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 },
{ x: 0, y: -40 }, /* The Pointed Tip */
{ x: -10, y: -25 },
], 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, pcbRotation: 90 }), jsxRuntime.jsx("pinheader", { name: "J_QWIIC_2", pinCount: 4, pcbX: 5, pcbY: 35, 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: "0mm", pcbY: "-7mm", width: "16mm", height: "34mm", shape: "rect", layer: "top" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "0mm", pcbY: "-27mm", width: "12mm", height: "6mm", shape: "rect", layer: "top" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "0mm", pcbY: "-32.5mm", width: "6mm", height: "5mm", shape: "rect", layer: "top" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "0mm", pcbY: "-36.5mm", width: "2mm", height: "3mm", shape: "rect", layer: "top" })] }) }), 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 > .CS0", to: ".PROBE > .SENSE", thickness: "0.8mm" })] }));
module.exports = index;