Easy 12V LED strip control on 24v supply
-
Hi all,
Just wanted to post up how I wired up my 12V LED strips to the Duet to be controlled easily.I bought a couple of these (https://www.ebay.co.uk/itm/252510974691), as they have enable pins on them.
When they arrived, I wired them up to my 24V supply and tweaked the little potentiometer until it was outputting 12V on the VO+ pin. You could also cut a trace on the back and bridge the the pads marked 12V to achieve this.
Wiring is as follows:
-
VO+ - LED+
-
GND - Common GND (LED- and Power Supply GND)
-
IN+ - 24V+
-
EN - Duet Heater 3 pin on the expansion header
Then, in my config.g add
M307 H3 A-1 C-1 D-1 ; Disable heater on the pin
This lets me use the M42 command with parameter P3 to toggle the lights on and off. S0 turns the lights on, S255 turns them off.
E.G.
M42 P3 S0 ; Lights On G4 P1000 ; Pause 1 sec M42 P3 S255 ; Lights Off G4 P1000 ; Pause 1 sec M42 P3 S0 ; Lights On
I've got a couple of macros set up, one for lights on, one lights off, and a third to flash the lights. I added the lights on to my slicers start GCode, and flash to the end GCode.
-
-
Neat. I still need to figure out a good way to mount lights on my Kossel Mini.
-
Thanks for taking the time to share, this could come in handy.
-
Thanks for the link to the regulator.
@JohnOCFII: On the Kossel Mini, depending on the size of extrusion and the size of LED strip, you might be able to slide the strip into the inside slot on the verticals.
I've tested this on my 2020 v-slot frame and found that the strip that I have will slide in from the ends, but won't insert from the side. -
Thanks for taking the time to share, this could come in handy.
No problem I didn't want to go messing with transistors and other switching circuitry, and this seems to be an ideal solution. Up to 3A (though, I'd probably not trust it beyond 1.5A-2A), adjustable voltage, cheap, and easy to wire. Will also be wiring up one of these at 5v to power a Raspberry Pi to run a webcam.
-
Would it also be possible to get some 5 v rgb leds connect each colour to let's say heater 3-5 on the expansion header and gnd to gnd obiously and controll the colour via M42 commands? Would the heater pins supply enough amps?
-
Just to wire everything right. Can you explain where is EN - Duet Heater 3 pin on the expansion header?
Is it pin #8 on expansion connector? -
Just to wire everything right. Can you explain where is EN - Duet Heater 3 pin on the expansion header?
Is it pin #8 on expansion connector?Yup, pin #8 is correct.
-
You can also use pwm to dim the LEDs
-
@JohnOCFII: On the Kossel Mini, depending on the size of extrusion and the size of LED strip, you might be able to slide the strip into the inside slot on the verticals.
I've tested this on my 2020 v-slot frame and found that the strip that I have will slide in from the ends, but won't insert from the side.Thanks. I've got 2020. Are you lighting from the lower part of the vertical 2020 – below the area where the carriage will run?
-
@JohnOCFII: On the Kossel Mini, depending on the size of extrusion and the size of LED strip, you might be able to slide the strip into the inside slot on the verticals.
I've tested this on my 2020 v-slot frame and found that the strip that I have will slide in from the ends, but won't insert from the side.Thanks. I've got 2020. Are you lighting from the lower part of the vertical 2020 – below the area where the carriage will run?
I'm planning to run most of the height of the verticals on mine, including where the carriages will move.
Since I'm using v-slot wheels on the sides and the ribbon is inserted inside the extrusion, it's below the surface and out of the way of the carriage. -
@hey_allen said in Easy 12V LED strip control on 24v supply:
Thanks. I've got 2020. Are you lighting from the lower part of the vertical 2020 – below the area where the carriage will run?
I'm planning to run most of the height of the verticals on mine, including where the carriages will move.
Since I'm using v-slot wheels on the sides and the ribbon is inserted inside the extrusion, it's below the surface and out of the way of the carriage.Oh yeah! Great idea. I forgot about that.
-
I also used 12V strips on 24V system but I cut them in half and wired them in series. Then directly connected to Duet. Can't get simpler than that I think.