Filament sensor switch not working at all #92
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello !
I have installed your nice plugin, and want to use it for a fillament sensor.
I have octoprint running on a RPI3 and I have connected a switch (see attachment) to GPIO26 (pin 37) and GND (pin 39).
SETUP:
Raspberry Pi Inputs
EVENT: printer
Input IO Number: 26
Input Pull Resistor: INPUT PULL UP
Event Trigger: FALL
Printer Action: fillament change
Filament Detection Timeout: 120
Use Board Pin #: not selected
When I start printing and press the switch during a few minutes: nothing happens. If I release the switch, nothing happens also..
I have this code in the fillament change codeblock:
G199 ; pauses the print immediately, and moves the head to X0, Y100.
Don't know what's the problem, doesn't work at all..
Can you help ? I think a lot off people wants to use your plugin..
Thanks in advance !
;-) Arthur
PS: I have also connected an DT22 to GPIO4 (pin 7), and installed the software library for it: that works, I see the temperature and the humity.
I need a couple of things:
What pins have you used to connect the switch? there are three pins, C, NC and NO.
Have you tested a simple input button python script to test your wiring?
ssh on your pi, create the a new file
Name it test.py, then try to run without sudo:
python ./test.pyPress the switch, if nothing happens that means that you have something wrong with your wiring...
the script works, I get the message 'Button Pressed' when I press the button.
Printer doesn't respond to the button at all when printing.
I have added the log..
octoprint.log
The pause command for the Craftbot Plus printer is: G197 and the resume command is G198.
It would be nice if the printer could go to pause mode after pressing the button (later it will be replaced by a fillament-sensor switch). Also the extruder head must be parked to the left side.
After the resume command, the extruderhead must be moved to the last printerposition and continue with the printerjob.
Until now, it doesn't work at all.
Strange thing: the DT22 works nice...
Something is a little bit odd...
despite you mention that use board number is not marked, the log is telling that it is being used.
What happens if you change the filament type action to pause? does it work?
Reboot your pi, it will clear gpio modes, change the setting to pause /resume, and test it out, and send me the log again.
Ok, rebooted again. Checked if the board number is marked: it's not marked.
Printing again, pressed the switch a few times, nothing happens at all ??
octoprint (2).log
screenshots.zip
I have made screenshots and the log is attached too.
Would be great if you can help me to get this working ;-)
So, for your info again: I use a Raspberry Pi v3 model B, connected the switch to GPIO26 (=NC, pin 37) and GPIO19 (=NO, pin35) and the GND of the switch to Ground (=C, pin 39).
I have tried the same again, but now swapped the NC and NO pins, but same results too..
By the way: maybe you can add in the topmenu of Octoprint next to the Temp/Humity display
(Enc: 19.2°C Hum: 32.5%) also a fillament sensor display to see if for example in this setup the status of GPIO26 and GPIO19 ?
Status is possible, i'm re writing the entire thing, I'll add on the next release.
I need access to your raspberry pi to trouble shoot this.. Shoot me an email... (email is on my github page)
I need you to open port 22 on your modem to remote ssh, and username and password...
I have send you 2 emails ;-)
The issue was caused because of the firmware. I don't know why, but octoprint could not send gcodes for your printer.
I'm closing this issue, because it is not really a plugin bug, but an octoprint limitation.