LED stripe does not light up after firmware update
-
I somehow totally forgot that configuring the firmware is, by far, the hardest part of building a 3D printer from the scratch
I had a LED stripe up and running in my previous printer using the Duex5 fan ports 5,6,7, using this code, plain and simple (without even using m950 command) in firmware 2.0X:
; Fans
M106 P3 S255 ; Cooling fan
M106 P4 S100 L515 B2 R100 ; Hotend fan 4 Thermostatic control to turned on at 100C
M106 P5 S0.9 ; Green LED to 90% power
M106 P6 S0.9 ; Blue LED to 90% power
M106 P7 S0.9 ; Red LED to 90% powerAfter sequential and successfull updating to 3.52 I cannot bring them back to live (they briefly flash upon startup) and I fear I cannot find the information I am missing about how to configure M950 and M106 correctly. Lastly I tried
; LEDs
M950 P8 C"duex.fan8" Q500 ;
M106 P8 S0.9 ; Red LED to 90% poweramongst many other parameters (I found in the documentation but with all the firm-, hard- and software combinations available these days its getting weired and I am afraid not 100% fool proof anymore) but to no success. Does anybody have a functinoal code based on firmware 3.5X? Many thanks!
-
M950 P creates a GpOut port, whereas M106 controls a fan port. Either use M42 in place of M106, or use M950 F instead of M950 P.
-
@dc42
Many thanks for your fast response!!So I just tried
M950 P8 C"duex.fan8" Q500 ;
M42 P8 S1 ;and
M950 F8 C"duex.fan8" Q500 ;
M106 P8 S1 ;Both didnt work (I also doublechecked that both my fan and the led stripe work, using my lab power supply)..
-
What firmware version are you using?
https://docs.duet3d.com/User_manual/Reference/Gcodes#configuration-examples-and-notes
-
@stellator in your first post you said you were using fan ports 5, 6 and 7. But then you set your M950 command for duex.fan8. Did you move one LED wire to fan8? Unless I’ve misunderstood, you should have three M950 commands, for duex.fan5, duex.fan6 and duex.fan7.
Ian
-
Thanks for your replies, I did not understand from the documentation, that those names like "duex.fan4" etc. are the definitions nowerdays that have to be used rather than just names I can freely choose because in older firmware versions they were defined by M950 P6 e.g.. which was more straight forward than to have to know the dedicated name that allows for even more typos.
I did not stumble across any list that gives me all the RFF 3.5 "names" of all the ports that are available on Duet2wifi / Duex5 in the documentation but I was sure lasy.However, this is how it works for me now in RFF 3.5x (for both fans and LEDs)
M950 F4 C"duex.fan4" Q500 ;
M950 F5 C"duex.fan5" Q500 ;
M950 F6 C"duex.fan6" Q500 ;
M950 F7 C"duex.fan7" Q500 ;And this was the way back then in RFF 2.xx or such:
; Fans
M106 P3 S255 ; Cooling fan
M106 P4 S100 L515 B2 R100 ; Hotend fan 4 Thermostatic control to turned on at 50C of Heaters 1 or 2
M106 P5 S0.9 ; Green LED to 30% power
M106 P6 S0.9 ; Blue LED to 30% power
M106 P7 S0.9 ; Red LED to 30% powerBut I very much appreciate all those new options you can do in RFF 3.5 so an equivalent amount of complexity is the price one has to pay..
-
@stellator I'm glad you got it working.
The pin names for Duet 2 and DueX5 are listed at https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/Duet_2_WiFi_Ethernet_Hardware_Overview#pin-names and https://docs.duet3d.com/Duet3D_hardware/Duet_2_family/DueX2_and_DueX5#pin-names.
-
-