PWM Controlled LED Circuit


Here are the net connections to properly wire the PWM-controlled constant-current LED circuit:

Table


NetConnections
Net 5J1:Pin_2, LED1:Cathode, U1:VIN
Net 3U1:GND, J2:Pin_2, LED1:Anode
Net 2U1:SW, L1:1
Net 1L1:2, J2:Pin_1
Net 6U1:CSN, R1:1, R2:P1
Net 4U1:DIM, C1:1, C2:P1
Apply these changes?
applied changes.
Now I have added an arduino. Connect the pwm control pins
Which Arduino pin would you like to use for the PWM signal to the PT4115’s DIM input?
For example, you could use digital pin 9 (~9) or any other PWM-capable IO on the Mega2560.
@help how can I connect pin ~3 of the Mega2560 to the DIM input of the PT4115 in the Flux schematic?
I wasn’t able to find any Flux documentation on wiring one part pin directly to another via the Copilot “@help” entries. That likely means there isn’t a dedicated guide for this exact task.
You can try these resources for step-by-step assistance:
Draw connection wire
Label net
View pin mapping
Pull-down resistor selection
Calculate resistor

Steady Blue Time Machine

Steady Blue Time Machine thumbnail