const anodeTerminal = flux.getNodeById("33280eed-a126-76ed-3000-797ef47fb1a1"); // Anode
const cathodeTerminal = flux.getNodeById("99b4e4f8-b222-3ea3-e380-d601f2044245"); // Cathode
const outputVoltage = flux.createOutputNode("vout");
const inputVoltage = flux.createOutputNode("vin");
const current = flux.createOutputNode("I");
const voltageDrop = flux.createOutputNode("vdrop");
// Setup Event
flux.on("setup", (event) => {
const forwardVoltage = flux.properties.find((prop) => prop.name === "Forward Voltage")?.value || 1.70;
const seriesResistance = 0.42;
const emissionCoefficient = 3.73;
const saturationCurrent = 93.2e-12;
const breakdownVoltage = 0;
flux.simulationModel = {
type: "diode",
breakdownVoltage: breakdownVoltage,
seriesResistance: seriesResistance,
emissionCoefficient: emissionCoefficient,
saturationCurrent: saturationCurrent,
jdorfman
copilot
-
Select SMD LEDs:
- Ensure the SMD LED type you choose is 1113 (2835 Metric) as you specified earlier.
- Verify the forward voltage and current ratings for proper design, though typical values might be 2.0V to 3.5V depending on the LED color.
-
Create LED Matrix Layout:
- Position the SMD LEDs on your PCB to spell out "Bill".
- You can manually place the LEDs or use a grid placement strategy.
-
Connect LEDs in Series or Parallel with Current-Limiting Resistors:
- Determine if you’ll connect the LEDs in series, parallel, or a combination.
- Each LED might need a current-limiting resistor.
-
Schematic Design:
- Assign designators to each LED.
- Draw connections and add resistors, power supply, and ground.
-
PCB Layout:
- Place the LEDs on the PCB.
- Route the traces to connect the components as per the schematic.
Step-by-Step Instructions Schematic- Top segment: $LED_1$ to $LED_2$
- Vertical segment: $LED_3$ to $LED_4$, $LED_5$
PCB Layout- Place LEDs:
- Position LEDs on the PCB to form the letters "B", "i", "l", "l".
- Route Traces:
- Connect LED anodes to a common VCC plane or rail.
- Each LED cathode connects through a resistor to a ground plane or rail.
Example Project Components- LED:
- $LED_1$, $LED_2$, ..., etc.
- Resistors:
- $R_1$, $R_2$, ..., etc.
- Assume resistor values typically of $330 \Omega$ to $1 k\Omega$.
Connections Examplejdorfman
copilot
-
Schematics:
- Sketch out the arrangement of LEDs and resistors.
- Ensure each letter is correctly formed with enough spacing.
-
Assumptions:
- We’ll assume each segment of a letter is formed by 2-3 LEDs.
- Resistors are placed in series with each LED to limit current.
-
Connections:
Connections Summary- Vertical Bar: $LED_1$ to $LED_5$
- Upper Horizontal Bar: $LED_6$, $LED_7$
- Middle Horizontal Bar: $LED_8$, $LED_9$
- Bottom Horizontal Bar: $LED_{10}$, $LED_{11}$
Sample Visual Placement Schematics Connections-
Vertical Bar:
- Connect:
- $LED_1$: Anode to VCC
- $LED_1$: Cathode to $R_1$: 1; $R_1$: 2 to ground
- Repeat for $LED_2$ to $LED_5$
-
Horizontal Bars:
- Connect:
- $LED_6$: Anode to VCC
- $LED_6$: Cathode to $R_6$: 1; $R_6$: 2 to ground
- Repeat for $LED_7$ to $LED_{11}$
Project Implementation in Flux Step 1: Establish Component and Setup-
Place LEDs:
- Use LED designator: LED1, LED2, etc.
-
Place Resistors:
- Use resistor designator: R1, R2, etc.
Step 2: Connect LEDs to Resistorsjdorfman
copilot
- Create a new project.
- Add components:
- Add SMD LED 1113 (2835 Metric) for each section of the letters.
- Add appropriate resistors (start with 330 $\Omega$) in series with each LED.
Step 2: Placing LEDs for Each Letter-
Vertical Bar of 'B':
- Place 5 LEDs vertically.
- Starting with the top, number them as (LED1), (LED2), ..., (LED5).
- Ensure equal spacing between LEDs for coherence.
-
Upper Horizontal Bar:
- Place 2 LEDs horizontally at the top.
- Name them (LED6), (LED7).
-
Middle Horizontal Bar:
- Place 2 LEDs in the middle horizontally.
- Name them (LED8), (LED9).
-
Bottom Horizontal Bar:
- Place 2 LEDs at the bottom horizontally.
- Name them (LED10), (LED11).
Letter 'i'-
Vertical Line:
- Place 2 LEDs vertically.
- Name them (LED12), (LED13).
-
Dot:
- Place 1 LED above the vertical line.
- Name it (LED14).
Letter 'l'- Vertical Line:
- Place 4 LEDs vertically.
- Name them (LED15), (LED16), (LED17), (LED18).
Another Letter 'l'- Vertical Line:
- Place 4 LEDs vertically again.
- Name them (LED19), (LED20), (LED21), (LED22).
Step 3: Connecting LEDs in Schematic- Adding Resistors:
- Place a resistor in series with each LED to limit current (assuming resistor value 330 $\Omega$).
Example for the Vertical Bar of 'B':- Repeat for Letters 'i', 'l', 'l' in the similar manner.
Step 4: Routing on PCB- Flip to the PCB editor.
- Position the LEDs as planned.
- Connect the anodes of LEDs to a common VCC plane or trace.
- Connect the cathodes of LEDs through their respective resistors to the ground plane or trace.
Summary