October 23, 2016
Description
A holder for detecting filament using a microswitch. Used for pausing prints when filament runs out.
If you want to put it next to the filament roll (easier, no need to route wiring through signal chain, but a lot of filament remains unprinted), print "Shell 1" and "Shell 2", any normal material for 3D-printing should work.
If you are going to put it directly on the extruder (If you have a direct extruder, you have to route the wiring through the signal chain, but only a few cm of filament will stay unprinted. It might be better to print it with ABS in this case, PLA might get soft in this hotter area.), print "Shell1 (for head with teflon).stl" and "Shell 2". When installing, cut off 1,5 cm of teflon tube and insert it in the bottom hole of the shell1 and the top hole of the extruder where you would insert the teflon usually.
Connect the microswitch to OctopPi header as shown on the hand-drawn diagram (3,3V through the microswitch to parallel-connected pull-down resistor and capacitor, microswitch side connected to GPIO2, other side to ground), use the Octopi header pinout (downloaded from Raspberry Pi website for your reference) as reference for pin numbers. You could also just connect the microswitch between the IO pin and ground, but you might have problems with noise (false alarms).
Install Filament sensor plugin in OctoPi and configure as instructed: If you use the same pinout as me, add the following lines to YAML (easiest way is to use YAMLPatcher plugin):
plugins:
filament:
pin: 2
bounce: 400
Restart and you are done :)
Each time the filament runs out, the Octopi will enter pause mode.
License:
Creative Commons - Public Domain Dedication