aj0070/lora-node
Battery-powered ESP32-S3 LoRa environmental sensor board with USB-C charging, 3.3 V regulation, BME280 I²C sensing, SX1262 LoRa radio and U.FL antenna connector.
- Version
- 1.0.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/lora-node # download the package files into ./lora-node
tsci add aj0070/lora-node # add it to your project as @tsci/aj0070.lora-nodeIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
imports/ESP32_S3_MINI_1_N8.tsx
import type { ChipProps } from "tscircuit"
export const esp32PinLabels = {
pin1: "GND1",
pin2: "GND2",
pin3: "3V3",
pin4: "IO0",
pin5: "IO1",
pin6: "IO2",
pin7: "IO3",
pin8: "IO4",
pin9: "IO5",
pin10: "IO6",
pin11: "IO7",
pin12: "IO8",
pin13: "IO9",
pin14: "IO10",
pin15: "IO11",
pin16: "IO12",
pin17: "IO13",
pin18: "IO14",
pin19: "IO15",
pin20: "IO16",
pin21: "IO17",
pin22: "IO18",
pin23: "IO19",
pin24: "IO20",
pin25: "IO21",
pin26: "IO26",
pin27: "IO47",
pin28: "IO33",
pin29: "IO34",
pin30: "IO48",
pin61: "GND3",
pin62: "GND4",
pin63: "GND5",
pin64: "GND6",
pin65: "GND7",
pin66: "GND8",
pin67: "GND9",
pin68: "GND10",
pin69: "GND11",
pin70: "GND12",
pin71: "GND13",
pin72: "GND14",
pin73: "GND15",
} as const
const sidePad = (n: number) => {
if (n >= 1 && n <= 15) {
return { x: -6.975, y: 5.95 - (n - 1) * 0.85, w: 0.8, h: 0.4 }
}
if (n >= 16 && n <= 30) {
return { x: -5.95 + (n - 16) * 0.85, y: -7.025, w: 0.4, h: 0.8 }
}
if (n >= 31 && n <= 45) {
return { x: 6.975, y: -5.95 + (n - 31) * 0.85, w: 0.8, h: 0.4 }
}
if (n >= 46 && n <= 60) {
return { x: 5.95 - (n - 46) * 0.85, y: 7.025, w: 0.4, h: 0.8 }
}
const corners: Record<number, [number, number]> = {
61: [-7.0, 7.0],
62: [7.0, 7.0],
63: [-7.0, -7.0],
64: [7.0, -7.0],
}
if (corners[n]) {
return { x: corners[n][0], y: corners[n][1], w: 0.8, h: 0.8 }
}
const cx = [-1.65, 0, 1.65]
const cy = [1.65, 0, -1.65]
const i = n - 65
return { x: cx[i % 3], y: cy[Math.floor(i / 3)], w: 1.2, h: 1.2 }
}
export const ESP32_S3_MINI_1_N8 = (
props: ChipProps<typeof esp32PinLabels>,
) => (
<chip
pinLabels={esp32PinLabels}
manufacturerPartNumber="ESP32-S3-MINI-1-N8"
supplierPartNumbers={{ jlcpcb: ["C2913206"] }}
footprint={
<footprint>
{Array.from({ length: 73 }, (_, idx) => {
const n = idx + 1
const pad = sidePad(n)
return (
<smtpad
key={n}
portHints={[`pin${n}`]}
pcbX={`${pad.x}mm`}
pcbY={`${pad.y}mm`}
width={`${pad.w}mm`}
height={`${pad.h}mm`}
shape="rect"
/>
)
})}
<courtyardrect width="15.4mm" height="15.4mm" />
</footprint>
}
{...props}
/>
)