Rishikesh63/BlinkingLED-Circuit-sample
This circuit connects a USB-C power source to an NE555 timer configured as an oscillator to blink a red LED.
Usage: To import and use the "@tsci/Rishikesh63.BlinkingLED-Circuit-sample" package: 1. Import the component: ```tsx import { MyBlinkingLedCircuit } from "@tsci/Rishikesh63.BlinkingLED-Circuit-sample" ``` 2. Use the component in a React-like circuit layout: ```tsx export default () => ( <board> <MyBlinkingLedCircuit /> </board> ) ``` The component creates a complete blinking LED circuit with a USB-C power source, NE555P timer, resistors, capacitors, and an LED, with predefined connections and layout.
- Version
- 0.0.1
- License
- unset
- Stars
- 2
index.tsx
PCB
Schematic
import { useUsbC } from "@tsci/seveibar.smd-usb-c";
import { useRedLed } from "@tsci/seveibar.red-led";
import { useNE555P } from "@tsci/seveibar.a555timer";
export const MyBlinkingLedCircuit = () => {
const USBC = useUsbC("USBC");
const Led = useRedLed("LED");
const A555Timer = useNE555P("B1");
return (
<board width="30mm" height="30mm" schAutoLayoutEnabled>
<USBC GND1="net.GND" VBUS1="net.VBUS" pcbX={-10} pcbY={-10} />
<A555Timer
pin8="net.VBUS"
pin1="net.GND"
pin3="net.OUT"
pin2="net.TRIG"
pin6="net.THRES"
pin7="net.DIS"
pin4="net.RESET"
/>
<resistor name="R1" resistance="1K" footprint="0805" pcbX={-8} pcbY={8} />
<resistor name="R2" resistance="470K" footprint="0805" pcbX={0} pcbY={-8} />
<resistor name="R3" resistance="1K" footprint="0805" pcbX={2.5} pcbY={8} />
<resistor name="R4" resistance="10K" footprint="0805" pcbX={-5} pcbY={-5} />
<capacitor name="C1" capacitance="1uF" footprint="0805" pcbX={-2.5} pcbY={8} />
<capacitor name="C2" capacitance="0.1uF" footprint="0805" pcbX={-6} pcbY={6} />
<capacitor name="C3" capacitance="10uF" footprint="0805" pcbX={4} pcbY={-4} />
<Led pos="net.OUT" neg="net.GND" pcbX={5} pcbY={10} />
<trace from=".USBC > .VBUS1" to=".R1 > .left" />
<trace from=".R1 > .right" to=".R2 > .left" />
<trace from=".R2 > .right" to=".C1 > .left" />
<trace from=".C1 > .right" to=".USBC > .GND1" />
<trace from=".B1 > .pin7" to=".R1 > .right" />
<trace from=".B1 > .pin6" to=".R2 > .right" />
<trace from=".B1 > .pin2" to=".R2 > .right" />
<trace from=".B1 > .pin3" to=".R3 > .left" />
<trace from=".R3 > .right" to=".LED > .pos" />
<trace from=".B1 > .pin4" to=".R4 > .left" />
<trace from=".R4 > .right" to=".USBC > .VBUS1" />
<trace from=".C2 > .left" to=".USBC > .VBUS1" />
<trace from=".C2 > .right" to=".USBC > .GND1" />
<trace from=".C3 > .left" to=".B1 > .pin7" />
<trace from=".C3 > .right" to=".USBC > .GND1" />
</board>
);
};