Info leds…. it's possible?
-
How can know the resistor I must use?
-
It depends on supply voltage applied to LED and LED's type. If you are going to attach LEDs to FAN headers then Vs = Vin (Duet supply voltage 12V or 24V). For LED you need forward voltage drop Vf and working current Id. Then R = (Vs-Vf)/Id. If voltages is in Volts and currents in mA then R would be in kOhms. Forward voltage drops for LEDs typically are: red - 1.8V, green - 2.2V, blue/white - 3.5V. Working currents are about 10-20mA (the greater current the brighter LED lights). For example, Vs =24V, red LED, Id = 10mA then R = (24-1.8)/10 = ca. 2.2kOhm. You can check how bright LED lights simply connecting it in series with choosen resistor directly to board power supply. HTH
-
If you are using a spare I/O pin on the expansion connector, then connect the LED with series resistor between the pin and ground. The voltage will be 3.3V, so base your resistor value on that. You won't be able to get more than about 4mA from the output.
If you have any spare fan and/or heater outputs on the Duet, you can use those, and the voltage will be VIN (12V or 24V).
-
when using LED stripes they are controlled with ground (+12V, R, G, B)
are there any pins i can use to switch ground on/off with a G command?
I have the duetwifi+duet5xas i under stand i have to use
M106 P3 I-1 ; disable Fan on duet5x
M106 P4 I-1 ; disable Fan on duet5x
M106 P5 I-1 ; disable Fan on duet5xdoes it switches ground to or just the + pin?
regards
Phil
-
@phil_ae said in Info leds…. it's possible?:
when using LED stripes they are controlled with ground (+12V, R, G, B)
are there any pins i can use to switch ground on/off with a G command?
I have the duetwifi+duet5xas i under stand i have to use
M106 P3 I-1 ; disable Fan on duet5x
M106 P4 I-1 ; disable Fan on duet5x
M106 P5 I-1 ; disable Fan on duet5xdoes it switches ground to or just the + pin?
regards
Phil
That's correct. The FAN- pin is switched to ground.
-
thank you have it working, switching on/off the colors using M106 Px I1 or i0,
added some lines to the code in cura to turn on all colors when start printing und turn off blue and red when finished (green light indicated print finished)but i am looking for initial heating but cant find it in the config.g over the system editor.
can you tell me where to find the code for the initial heating?
thank you
Philipp
-
How about rgbw neopixel? Is that pissable?
-
The Neopixel is almost impossible to drive efficiently because the processor can't do anything else while the data is being sent. The DotStar is a better option because it uses standard SPI protocol.
-
@dc42 Speaking of DotStars, is there support for them yet? (M150)
-
@jml said in Info leds…. it's possible?:
@dc42 Speaking of DotStars, is there support for them yet? (M150)
So far this is only supported on a board that we made for an OEM customer that has a dedicated output connector for these LEDs. It would be possible to support them on the Duet WiFi using the shared SPI channel, but you would need some external hardware (half a 74HCT32 chip, or one 74HCT02 I think) to gate the clock and level shift the signals to 5V.
Also bear in mind that a strip of DotStars draws up to 60mA per LED, so if you have more than about 20 then you should use a separate 5V power supply.