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

    Connecting RGBW 24V LED strip to Duet 2 WIFi board

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    24
    1.4k
    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.
    • csosa91undefined
      csosa91 @PCR
      last edited by

      @pcr
      Firmware Version 3.3

      1 Reply Last reply Reply Quote 0
      • o_lampeundefined
        o_lampe @csosa
        last edited by

        @csosa Does the LED strip have any driver chips or a controller onboard? If not, you need some small FET drivers ( 1 Amp should do) between RGB-pins and expansion header. I have good experience with a 2$ quad driver board TB6612. (was 1$ before supply shortage)

        csosaundefined 1 Reply Last reply Reply Quote 0
        • csosaundefined
          csosa @o_lampe
          last edited by

          @o_lampe
          Thanks for the advice. The LEDs do not have a driver chips or a controller onboard. Could you please send me a link to the FET driver you recommended, cant seem to find it on Amazon. Would I need a divers for each color, RGBW?

          o_lampeundefined 1 Reply Last reply Reply Quote 0
          • o_lampeundefined
            o_lampe @csosa
            last edited by o_lampe

            @csosa search for TB6612FNG
            You only need one for RGB

            csosaundefined 1 Reply Last reply Reply Quote 0
            • csosaundefined
              csosa @o_lampe
              last edited by

              @o_lampe

              Thank you for your help. I have never used a driver before so I am not sure how to wire it to the Duet and LEDs. The driver I got has the following pin descriptions:

              AIN1/AIN2: Control Signal input terminal
              BIN1/BIN2: Control Signal input terminal
              PWMA/PWMB: Control Signal input terminal
              A01/A02: Motor control output
              B01/B02: Motor control output
              STBY: normal working/standby state control pin
              VM: motor drive voltage
              VCC: logic level input terminal
              GND: ground

              Would the following wiring connections be correct?

              Left side of driver
              Empty----------->PWMA
              Heater pin 4-->AIN2
              Heater pin 5-->AIN1
              Empty----------->STBY
              Heater pin 6-->BIN1
              Heater pin 7-->BIN2
              Empty----------->PWMB
              Empty----------->GND

              Right Side of driver
              VM<-------- PSU 24v+
              VCC<------- LED 24V
              GND<------ PSU GND
              A01<--------LED R
              A02<--------LED G
              B02<--------LED B
              B01<--------LED W
              GND<-------Empty

              Thanks again for all your help.

              o_lampeundefined 1 Reply Last reply Reply Quote 0
              • o_lampeundefined
                o_lampe @csosa
                last edited by

                @csosa I must apologize, the fact you are using a 24V LED strip slipped my brain. The driver I proposed is good for only 12V 😞
                If you still can use it, you'd have to add at least one GND signal from Duet to driver if they don't use the same powersupply

                csosaundefined 1 Reply Last reply Reply Quote 0
                • csosaundefined
                  csosa @o_lampe
                  last edited by

                  @o_lampe
                  According to the datasheet the TB6612FNG driver can handle an Input voltage between 2.7 V – 10.8 V. Could I instead use something like the Hilitand MOS FET PWM 3-20V to 3.7-27VDC 10A 4-Channel Driver Module PLC Amplifier Circuit Board ?

                  o_lampeundefined 1 Reply Last reply Reply Quote 0
                  • o_lampeundefined
                    o_lampe @csosa
                    last edited by

                    @csosa Yes, this one looks better suited.

                    csosaundefined 1 Reply Last reply Reply Quote 0
                    • csosaundefined
                      csosa @o_lampe
                      last edited by

                      @o_lampe

                      Great! So based on the inputs/outputs of the driver would the wiring diagram below be the correct?

                      Hilitand Driver Module.JPG

                      Duet LED wiring.jpg

                      csosaundefined 1 Reply Last reply Reply Quote 1
                      • csosaundefined
                        csosa @csosa
                        last edited by csosa

                        @o_lampe

                        So the board arrived and I wired it just like in the image from my last post but the LEDs still don't work. I checked the voltage from each of the heater pins and they are all different.

                        Heater pin 4 -> 2.29v
                        Heater pin 5 -> 3.25v
                        Heater pin 6 -> 0.13v
                        Heater pin 7 -> 0.23v

                        To check if the board was working right I checked the voltage from pin 43 which is suppose to be 3.3v and it is working just fine.

                        Next I tried turning on and off the pin using the M42 P# S1 or M42 P# S0 and nothing happens, all the voltages stay the same.

                        I am at a lost and have no idea what I am doing wrong. Below is the section of my config.g code that controls the lights. I tried changing the Q value of the M950 command but that doesn't change anything.

                        ; Lights
                        M950 P5 C"exp.heater4" Q250 ; Assigns red to Pin 13
                        M950 P6 C"exp.heater5" Q250 ; Assigns green to Pin 18
                        M950 P7 C"exp.heater6" Q250 ; Assigns blue to Pin 23
                        M950 P8 C"exp.heater7" Q250 ; Assigns white to Pin 31
                        M42 P5 S0 ; Turn red LED off
                        M42 P6 S0 ; Turn green LED off
                        M42 P7 S0 ; Turn blue LED off
                        M42 P8 S0 ; Turn blue LED off

                        o_lampeundefined 1 Reply Last reply Reply Quote 0
                        • o_lampeundefined
                          o_lampe @csosa
                          last edited by

                          @csosa said in Connecting RGBW 24V LED strip to Duet 2 WIFi board:

                          ; Lights
                          M950 P5 C"exp.heater4" Q250 ; Assigns red to Pin 13

                          You can try and activate the internal pullup for the heater pins with '^' :

                          M950 P5 C"^exp.heater4" Q250 
                          
                          csosaundefined 1 Reply Last reply Reply Quote 0
                          • csosaundefined
                            csosa @o_lampe
                            last edited by

                            @o_lampe

                            I tried added '^' to all four heater pins and nothing changed.

                            I decided to test my board by enabling the pull up resistor '^' and inverting the input '!' to see how it affects the voltage. The results I got are shown below, as you can see the voltages are all over the place.

                            83ceea8e-cd5a-4e7f-87df-69d60a187763-image.png

                            I also tried added MT3608 DC boosters to the pins in hope that that might boost the voltage to 3.3v but every time I connect it, the voltage coming from the pins just drops.

                            o_lampeundefined 1 Reply Last reply Reply Quote 0
                            • o_lampeundefined
                              o_lampe @csosa
                              last edited by o_lampe

                              @csosa
                              That's confusing...are you sure about the GND pin you measured voltages against? Try using #pin2 from the expansion header.
                              Did you try to run M98 P"config.g" to see if any errors pop up?

                              Maybe there's an issue with using a heater output without defining a temp-sensor?
                              Anyone who can chime in here?

                              o_lampeundefined 1 Reply Last reply Reply Quote 0
                              • o_lampeundefined
                                o_lampe @o_lampe
                                last edited by

                                @o_lampe said in Connecting RGBW 24V LED strip to Duet 2 WIFi board:

                                Maybe there's an issue with using a heater output without defining a temp-sensor?

                                Something like

                                M950 H4 C"nil"   ;  undefine heater4 pin
                                M950 P4 C"exp.heater4" Q250
                                
                                csosaundefined 1 Reply Last reply Reply Quote 0
                                • csosaundefined
                                  csosa @o_lampe
                                  last edited by csosa

                                  @o_lampe

                                  I ran the M98 P"config.g" and got back the following

                                  868b6dbf-6b4b-464d-8c4a-903b4ab421f0-image.png

                                  I am not sure is FTP and TELNET are suppose to be enabled but other than that it doesn't look like there are any errors in config.g

                                  I also switched the GND to pin 2 (which is normally connected to my BL Touch). I checked the voltage from all four wires and got the following.

                                  3d9de993-2330-4d87-883f-4416f5935065-image.png

                                  As you can see the voltage is all over the place expect for exp.heater7 which is working as it should. For heater pins 4 ,5 and 6 the voltage didn't change when I ran M42 P# S1.

                                  While I was testing the last two wires (going to exp.heater6 and exp.heater7) my cooling fan started to turn on, the WIFI would disconnect and the diag. light would briefly flash. It did this a few time randomly so I unplugged all the wires going to the expansion pins. Now every time I turn it on it connects to WIFI but after a few minutes it disconnects and the diag. LED starts flashing.

                                  Looks like I might have to erase the firmware and reinstall it before being able to test the "nil" function to undefine the heater pins.

                                  o_lampeundefined 2 Replies Last reply Reply Quote 0
                                  • o_lampeundefined
                                    o_lampe @csosa
                                    last edited by

                                    @csosa
                                    Maybe the fan went on, because you've used the same P# in a fan declaration?
                                    I've tested all 5 heaters without "nil", mentioning that was just a last straw. In my case, they were real heaters, which can make a difference.

                                    1 Reply Last reply Reply Quote 0
                                    • o_lampeundefined
                                      o_lampe @csosa
                                      last edited by

                                      @csosa
                                      From the Wiki:

                                      M42 switches a general purpose I/O pin. Use M42 Px Sy to set pin x to value y. The S field may be in the range 0..1 or 0..255.
                                      

                                      How does M42 know that S1 isn't meant as 1 of 255 ?
                                      Answer: use S1.0 to tell it to switch on 100%

                                      csosaundefined 1 Reply Last reply Reply Quote 0
                                      • csosaundefined
                                        csosa @o_lampe
                                        last edited by

                                        @o_lampe

                                        Since my board kept disconnecting from the wifi and the diag light start flashing. I erased the firmware and tried reinstall it again using Fallback procedure #2. I am not sure why but the firmware doesn't seem to install on the board, the diag light wont turn off. I'm using Bossa to write and verify the firmware, but afterwards the diag light wont turn off. Usually I'm able to just erase the board and reinstall the firmware using Bossa and later YAT to setup the WIFI and make updates but this time it doesn't look like Bossa is installing anything. I also tried installing the firmware using SAM-BA version 2.17 but it wouldn't connect either.

                                        o_lampeundefined 1 Reply Last reply Reply Quote 0
                                        • o_lampeundefined
                                          o_lampe @csosa
                                          last edited by

                                          @csosa
                                          A last straw is to remove all wires, steppers, probes from the board and try Bossa again, but I'm afraid your controller is partially dead.
                                          It's probably time to put a new Duet board on your x-mas wishlist?

                                          csosaundefined 1 Reply Last reply Reply Quote 0
                                          • csosaundefined
                                            csosa @o_lampe
                                            last edited by

                                            @o_lampe

                                            Sadly I think you are right 😭

                                            I did some research and I am thinking of ordering the Duet 3 mini 5+. Since it has a connector for the LED, hopefully it will be easier to set up.

                                            However according to duet guide the LEDs have to be NeoPixel in order to work. Do you think it is possible to get away with using another led strip that used the same WS2812 LED used by NeoPixel. I'm asking because BTF-LIGHTING have basically the same set up but are cheaper.

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