How to enable daylight on a stick

Hi, I want to add a daylight on a stick to my minion running an SKR2 board. It is connected to the second heater output. How do I configure RatOS so I get a switch to turn this on and off?
34 Replies
Helge Keck
Helge Keck2y ago
daylight?
oliof
oliof2y ago
24V COB LED in a pragmatic form factor https://github.com/VoronDesign/Voron-Hardware/blob/master/Daylight/README.md I am just not sure where to put the config from the readme in RatOS, and I did not find the right place in the documentation
oliof
oliof2y ago
the 250mm ones just fit the Z tower of a minion like chefkiss
Helge Keck
Helge Keck2y ago
this is how i configure my leds: [neopixel led_toolhead] pin: PA9 chain_count: 3 color_order: GRB initial_RED: 0.0 initial_GREEN: 0.0 initial_BLUE: 0.0 [gcode_macro LIGHT_ON] gcode: SET_LED LED=led_toolhead RED=1.0 GREEN=1.0 BLUE=1.0
oliof
oliof2y ago
and I guess my pin is PB4 and I don't have to worry about neopixel with this being simple COB LEDs alright, I will check the USER OVERRIDES section. Thanks! (after this current print) @Helge Keck like this then?
[output_pin daylight]
pin: PB4
pwm: True
cycle_time: 0.01

[gcode_macro LIGHT_ON]
gcode:
SET_PIN PIN=daylight VALUE=1.0

[gcode_macro LIGHT_OFF]
gcode:
SET_PIN PIN=daylight VALUE=0.0
[output_pin daylight]
pin: PB4
pwm: True
cycle_time: 0.01

[gcode_macro LIGHT_ON]
gcode:
SET_PIN PIN=daylight VALUE=1.0

[gcode_macro LIGHT_OFF]
gcode:
SET_PIN PIN=daylight VALUE=0.0
Helge Keck
Helge Keck2y ago
looks ok to me but i dont know this kind of LED, not sure if this works
oliof
oliof2y ago
the editor shows the whole SET_PIN line red
oliof
oliof2y ago
No description
oliof
oliof2y ago
is this expected?
Helge Keck
Helge Keck2y ago
the editor is stupid
oliof
oliof2y ago
ok
blacksmithforlife
I think so, I think that is just the (terrible) syntax highlighting
oliof
oliof2y ago
then I will wait until this print is done and check if this works any way to get a slider for the value so I can modify the light brightness via UI?
Helge Keck
Helge Keck2y ago
mainsail does this by its own
oliof
oliof2y ago
sweet
Helge Keck
Helge Keck2y ago
well, not exaclty
Helge Keck
Helge Keck2y ago
No description
Helge Keck
Helge Keck2y ago
ii got this for RGB lights
Helge Keck
Helge Keck2y ago
No description
oliof
oliof2y ago
No description
oliof
oliof2y ago
got a slider which works. Damn these things are bright
MDFPereira
MDFPereira2y ago
If you only want a on/off switch, I use this on printer.cfg: [output_pin WHATEVER] pin: WHATEVER And on moonraker, this: [power LED] type: klipper_device object_name: output_pin NAME_FROM_WHATEVER You will have a toggle button under Miscellanous and the same button on the power button on top.
oliof
oliof13mo ago
@Helge Keck you got some time for updating? Current state is
No description
Helge Keck
Helge Keck13mo ago
reset repo, update klipper, execute idex install script
oliof
oliof13mo ago
you mean the klipper repo?
Helge Keck
Helge Keck13mo ago
yes, use the drop down command
oliof
oliof13mo ago
what about moonraker, ratos, klipperscreen?
Helge Keck
Helge Keck13mo ago
first ratos, then the rest
oliof
oliof13mo ago
should I update the idex repo before executing the idex install script?
Helge Keck
Helge Keck13mo ago
yes
oliof
oliof13mo ago
alright, running hard recovery on the klipper repo
Helge Keck
Helge Keck13mo ago
wrong channel btw
oliof
oliof13mo ago
ups, sorry how did I end up here?
Want results from more Discord servers?
Add your server