I have an RGB light strip, not addressable just strictly RGB, and I would like to be able to control it with my SKR Pro V1.2. If I understand how the strip works (and color in general) it makes the different colors based off of the strength of each the R G and B. So am I correct to think that if apply 100% R and 100% B that I will get purple? I think so. But if I want it more of a blueish-purple than I could do 100% B and 50% R or whatever combination I want. With that assumption (correct me if I am wrong) can I just use 3 different PWM pins on the board and send GCODE commands to each color by pin assignment?
If so, what are the most accessible available PWM pins left open typically? This is for my Repeat V4 printer so I am using the fan pins, heating pins, and a few endstop pins already.
The rgb leds are often 12V and if there are a lot, they can take multiple amps. A regular PWM pin can source 20 mA or so max, which is not enough for anything more than one dim led.
You could use the FAN outputs, which are pwm, and have a mosfet ready to boost your current and voltage.
You can also use something like a ULN2003 too boost the voltage and current.
Programmable RGB steps are actually easier in that way. They get power straight from the psu, and the data line doesn’t source any current. The gotcha is that the firmware needs to send the right signal to control them.
Not to hijack the thread…but what pin can you use on the SKR Pro and what needs to be changed in the firmware? i would really like to run a strip of LEDs under my LR3 gantry and having it change the color based on the print job would be cool. i have several strips of WS2815 12v strips so those would be what i would use. And my gantry is 1450mm if that matters.
Thank you! i will for sure take a look. I have never had much luck when it comes to compiling firmware so i may reach out to you again when the time comes lol
If you haven’t already, follow the instructions at: platformio and start with a clean copy of the firmware from MarlinBuilder releases. I know that firmware builds. Start there and then add whatever changes one at a time. That will really limit where to look for changes when something breaks.
I have 1x strip 120 Neopixel leds.
How do I make the first 40 leds blue, next 40 white, next 40 red for example? What’s the configuration for this example in the configuration file?
Yeah i had a look at that…
Im assuming [I<pixel>] is the ID.
Would this work as a range, So in my above example would it be:
M150 B100 I0-40 <---- 0 to 40 led to be Blue
M150 W100 I41-80 <—41 to 80 to be White <----- Would white work even if my neopixel is RGB (no White). or would i have to do this for RGB setup M150 R100 G100 B100 I41-80
M150 R100 I81-120 <—81 to 120 to be Red
Im honestly not sure as Ive never tried it. Once you get it wired up you can try sending Gcode from the terminal on the TFT and see what happens. Might also be able to find some youtube videos for LEDs on a 3d printer with marlin. Will be the same gcode