LED control like Fans
-
Hi there,
I have a 4 Channel Mosfet Board with which I can control e RGBW LED strip. I connected it to the GPIO heater4...7 and can control it perfectly with the M42 gcode.Is it possible to configure the Outputs like a Fan output? I would like to control the colors by temperature like a fan.
This way I would also have the Fan slider to control the different colors.Is this possible? How can I achieve that?
-
In Firmware version 3.0 and later you can define the use of pins. Pretty sure you could do it with M950. Assuming Fan 0 is your hotend fan and Fan 1 is your layer fan, you can define Fan 3 onwards. Not tried it but it would look something like this:
M950 F3 C"exp.heater3" Q500 ; RGB Red
M950 F4 C"exp.heater4" Q500 ; RGB Green
M950 F5 C"exp.heater5" Q500 ; RGB Blue
M950 F6 C"exp.heater6" Q500 ; RGB WhiteYou would probably have to play with the Q (frequency) parameter. you can then control the LEDs with fan sliders in DWC or with M106.
I'm mid build of a new printer and might actually try this myself
-
Thank you for the answer this is exactly what I did but it didnt work...
I also implied the M307 to deactivate the heaters like it is described.
If it would have worked would it still be possible to control it via M42? -
@Beerson said in LED control like Fans:
If it would have worked would it still be possible to control it via M42?
No. You would need to vary fan speeds, by web or Gcode.
Thank you for the answer this is exactly what I did but it didnt work...
The fans appeared in the web interface, but moving the sliders did not make the LEDs light? Or something else?
-
No. You would need to vary fan speeds, by web or Gcode.
so it seems the M950 didnt work because i can still control them via M42
The fans appeared in the web interface, but moving the sliders did not make the LEDs light? Or something else?
exactly the sliders did show up but they coulen not control the LEDs
-
Which firmware version are you using? M950 only works in RRF3.
-
@dc42 RRF3
-
Send M950 F3 with no additional parameters, to see whether the M950 command worked. Same for F4, F5, F6.
-
M950 F4 Warning: M950 command is not supported
; Configuration file for Duet WiFi (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Feb 16 2020 14:21:00 GMT+0100 (Mitteleuropäische Normalzeit) ; General preferences
-
Aaaaah!! Thank you very much, now it works with RRF3!
Thanks for the support!!