seveibar/usb-c-flashlight
A compact USB-C powered push button board with a red LED, utilizing a single current-limiting resistor for the LED indicator.
- Version
- 1.0.0
- License
- unset
- Stars
- 6
index.tsx
PCB
Schematic
import { SmdUsbC } from "@tsci/seveibar.smd-usb-c"
export default () => {
return (
<board width="12mm" height="30mm">
<SmdUsbC
connections={{
GND1: "net.GND",
GND2: "net.GND",
VBUS1: "net.VBUS",
VBUS2: "net.VBUS",
}}
pcbY={-10.5}
schX={-4}
/>
<led
name="LED"
supplierPartNumbers={{
jlcpcb: ["965799"],
}}
color="red"
footprint="0603"
pcbY={12}
schY={2}
/>
<pushbutton
name="SW1"
schY={-2}
pcbRotation="90deg"
footprint="pushbutton_id1.3mm_od2mm"
connections={{ pin2: ".R1 > .pos", pin3: "net.VBUS" }}
supplierPartNumbers={{
jlcpcb: ["C110153"],
}}
/>
<resistor name="R1" footprint="0603" resistance="1k" pcbY={7} />
<trace from=".R1 > .neg" to=".LED .pos" />
<trace from=".LED .neg" to="net.GND" />
</board>
)
}