Setup Duex2



  • Hello,
    I have the duet Wifi + the duex 2 and i would like to controll RGB LED over the LED/Fan Port.

    When i add „M106 P3“ for example in the Config, there is No reaction.

    The led is still of. I have also connected an Fan on Fan-Port3, at the duex. But the Fan dosen‘t work, too.

    In the DWC, the duex is recognized.

    Can someone help me ?
    Thanks.


  • administrators

    M106 P3 Sxxx where xxx is the value between 0 and 256 or 0.00 and 1.00

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On



  • Thank your for your replay, with "M106 P3 S1 or S255" it also dosent work. Do i have to edit something els in the config, for steup the duex?


  • administrators

    There is a VFAN jumper block on the DueX. What position do you have the jumper in? If your LEDs are 12V and your VIN is also 12V, put it in the VIN position. If your LEDs are 12V and your VIN is 24V, put it in the 12V position and also put a jumper on the separate 12V_EN pins.



  • This post is deleted!


  • @dc42
    Ok, the Jumper was one Problem, with a fan on the port it works sometimes. In my config i have ";Duex fan/LED
    M106 P3 S1" but why i works sometimes after a reboot and sometime not?


  • administrators

    try sending control signals for the console as a test to see how your led array responds to being turned on and off with M106



  • Okay, but how can i do this ? And it is also by an installed fan not only by the led. Sometimes the fan and the led works and sometimes not. Than i have to restart the board 2 or 3 times and the it works until the next start


  • administrators

    @dk90 i mean with either a FAN or LED plugged in go to the console page and enter:

    M106 P3 S1
    M106 P3 S0
    M106 P3 S0.5

    etc to see what happens and confirm that its working as expected, before putting it into your config.g



  • @t3p3tony Ah ok, but with the commands in the console, if have the same problem. Somtimes it works and sometimes it dosen´t works, than i have to restart the duet and then it works, until the next restart.


  • administrators

    It sounds like the I2C initialisation of the DueX2 after reset may not always be working. Do you have a short thick ground wire between the VIN- terminal of the Duet and VIN- on the DueX2, as described in the instructions on the wiki?



  • @dc42 Do you mean an extra ground wire? I have VIN- and Vin +, connected to the Duet WIFI and Duex2. VIN+ and VIN - are from the same power supply.

    I have change the wiring. I thing now it is ok.Thank you

    I have an other question.

    I want to iluminate the printer, with the led´s. Eg, the hotend is on, Led ->red, the hotend is cold-> LED blue. Can i make this with M106 and thermostatic control or shoud i use the M42 command?


  • administrators

    @dk90 said in Setup Duex2:

    @dc42 Do you mean an extra ground wire? I have VIN- and Vin +, connected to the Duet WIFI and Duex2. VIN+ and VIN - are from the same power supply.

    I have change the wiring. I thing now it is ok.Thank you

    I have an other question.

    I want to iluminate the printer, with the led´s. Eg, the hotend is on, Led ->red, the hotend is cold-> LED blue. Can i make this with M106 and thermostatic control or shoud i use the M42 command?

    Yes you could do it using thermostatic control. Use one fan output to drive the blue LEDs and set it to normal thermostatic control over a range of temperatures. Do the same for the fan channel driving the red LEDs but use the I1 parameter to invert the PWM.



  • @dc42 Thank you, now it works 😉


Log in to reply