Hi all! I have a photoresistor and I want to make sure that the motor does not move in the dark, but moves in the light. Is it possible to implement such an endless check? Is there a demon like in RepRap?
The sensor will react to the light from the LED, if it is not there, then the motor movement must be suspended. If the sensor catches the light, then it is necessary to resume the movement of the motor. I don’t use heaters
Not knowing more of the project like has already been asked.
If I wanted this type of condition, this may be oversimplifying it, but I would simply use a gpio pin, add it as a filament sensor that triggers a special pause macro that saves your current state, and will resume when cleared. If your not using heaters so much the better, not sure why… but If you want to explain further maybe we can be more assistance. have a great day
A photoresistor is connected to the PC5, when light appears, the extruder “transporter” is synchronized with the main extruder, otherwise it is desynchronized.
By itself, the “Button” works fine, but as soon as printing begins (or the usual sending of G1 commands), it behaves very strangely. The button seems to be unable to execute its code between successive commands G1 … E5, but as soon as the G1 commands are finished, the console is completely clogged with information about the synchronization change.
Sometimes the error “Exception in flush_handler” appeared
Unfortunately, I cannot provide more guidance here.
In general, you will always have the challenge that Klipper is always first working down his gcode queue, before reacting to any other input. The only exception is an Emergency Shutdown.
This is what I was referring to with “due to design” in my above post.