Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Easy 12V LED strip control on 24v supply

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    8
    13
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • keyz182undefined
      keyz182
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • JohnOCFIIundefined
        JohnOCFII
        last edited by

        Neat. I still need to figure out a good way to mount lights on my Kossel Mini.

        1 Reply Last reply Reply Quote 0
        • Kezatundefined
          Kezat
          last edited by

          Thanks for taking the time to share, this could come in handy.

          1 Reply Last reply Reply Quote 0
          • Hey_Allenundefined
            Hey_Allen
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • keyz182undefined
              keyz182
              last edited by

              @Kezat:

              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.

              1 Reply Last reply Reply Quote 0
              • PhilippThundefined
                PhilippTh
                last edited by

                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?

                1 Reply Last reply Reply Quote 0
                • Niko0Dundefined
                  Niko0D
                  last edited by

                  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?

                  1 Reply Last reply Reply Quote 0
                  • keyz182undefined
                    keyz182
                    last edited by

                    @Niko0D:

                    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.

                    1 Reply Last reply Reply Quote 0
                    • AlexLinundefined
                      AlexLin
                      last edited by

                      You can also use pwm to dim the LEDs

                      1 Reply Last reply Reply Quote 0
                      • JohnOCFIIundefined
                        JohnOCFII
                        last edited by

                        @Hey_Allen:

                        @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?

                        1 Reply Last reply Reply Quote 0
                        • Hey_Allenundefined
                          Hey_Allen
                          last edited by

                          @JohnOCFII:

                          @Hey_Allen:

                          @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.

                          JohnOCFIIundefined 1 Reply Last reply Reply Quote 0
                          • JohnOCFIIundefined
                            JohnOCFII @Hey_Allen
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • AdiGitalundefined
                              AdiGital
                              last edited by

                              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.

                              My fully enclosed design

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Unless otherwise noted, all forum content is licensed under CC-BY-SA