RBGW Led + Duet Wifi (PWM pin or alternative board)



  • Hello,

    I'm currently searching a way to use a RGBW led strip on my Duet Wifi and playing with it using M42. But after reading multiple posts on the forum, I'm not sur Ill be able to just with a Duet Wifi.

    From what I understood on the Duet Wifi there's only 6 PWM pin/port capable :

    • Heater Bed
    • Heater E0
    • Heater E1
    • PWM FAN0
    • PWM FAN1
    • PWM FAN2

    In my config which is quite standard, 2 PWM fan port are unavailable (one is for the heatsink fan, one is for cooling the hot end), and Heater Bed and E0 are used. So from my point of view it seems there's only one PWM fan port left, and Heater E1 that could be used (with M307)

    After reading this : https://duet3d.dozuki.com/Wiki/Using_servos_and_controlling_unused_IO_pins
    It seems that I've listed all available PWM capable pin.

    Is there any additional PWM pin that could be used (I think especially in expansion connector or other) ? if not is there a known board that could convert 1 PWM signal to a ~256 colors set ?


  • administrators

    @hergonoway There are pwm capable pins on the expansion header. See:
    https://duet3d.dozuki.com/Wiki/Duet_Wiring_Diagrams

    On the expansion header you have heater 3-7 so another 5 pwm pins. you would need to use some external fets to use these to drive LEDs.



  • @t3p3tony

    Thanks for your reply, so basically there no mofset behind these pins.

    So for example for blue Led I should do this : (sorry I'm currently on my mobile :))

    [24v source]---[24vMainledpin]---[ledBlueWithR]---[ledBlueGNDpin]---[dpinFET]---[gpinFETtoHeaterPin]---[spinFET]---[GND]

    I suppose I should search for an N-channel mofset that handle 30v of voltage and 1amp of current (not sure but 30-50 leds at 24v shouldn't eat more than that) but what about the gate? What the signal voltage coming from these heater pin?



  • Signal voltage is 3,3V.
    You need so called 'logic level' mosfets.
    Make sure the Rds-on at 3,3V is low enough, so that at your desired current the power dissipation in the mosfet is low enough.



  • @andres

    So after further research on the web, I ended by drawing this (schema per led) :
    alt text

    I'm not a specialist in mosfet but I came by these 2 refs, should they do the job ? (based on your previous comment) :



  • I think the 2nd one will be more than adequate.



  • Thanks I'll give a shot and I'll post results there.


  • administrators

    I also recommend connecting a 1K resistor in series with the gate of the mosfet, to give the Duet some protection if the mosfet fails. The 10K resistor should be on the Duet side of that new resistor.

    The IRLB8721 mosfet isn't really designed for 3.3V gate operation and would be a bad choice for a production board; but in practice for a 1-off it's likely to work, especially if the current drawn by the LED strip isn't very high.



  • @dc42 thanks for the input I'll add a 1K has you suggest (sorry for ASCII art :)) :

    [duet pin]
    |
    L__[1K]---[gate]
    L__[10K]---[-V]

    Could you suggest a more suitable mofset in my case?


  • administrators

    How much current will the LED strip draw?



  • There's no indication on the box...

    I've got an RGB+W so there one led dedicated for white and a led module for RGB. 60 led (30 for white and 30 for RGB) per meter for 24v.

    I've tested a portion of 10 led (My multimeter is in chinesium so it won't go further than 200mA in dc) on my multimeter set on 200m and I've got 58.7mA for white and around 19.7mA for each other color (so times 3 we're around 60mA, like the white one). So rounded up each led seems to draw 0.012Amp @24vdc. At 60 led per meter I've got 0,72Amp per meter so 3.6 Amp for the whole 5meter strip. I put the details in case of someone want to point out something I've missed 🙂

    Since the white led draw the most I should consider that each mosfet (so for each R, G, B and W) should handle 1.8 Amp MAX for the whole led strip


  • administrators

    If I understand you correctly, the white LEDs take 180mA per 1m and the other colours about 1/3 of that each. So to drive a 5m strip, each MOSFET will carry up to 0.9A for white and 0.3A for the others. The PMV40UN2 that we use to drive fans on the Duet would suffice. But they are SMD devices. If you want through hole MOSFETs, I suggest you stick with the IRLB8721.



  • @dc42

    Almost 🙂 sorry for my awfully dense explanation (I'm French)

    White led draw 60mA on 1/6 of a meter (on a strip of 10 led out of 60) so we can say 360mA per meter and as you understood each color draw 1/3 of that so 120mA per color per meter.

    So I'll stick with my initial choice with your recommendation about resistor. I'll post a picture once done 😄

    Thanks again!


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.