Filament Guide with Jam Sensor

Filament Guide with Jam Sensor

thingiverse

There are two frustrating situations that can ruin your prints: one is when the filament runs out prematurely and the other is when the filament gets tangled up and knotted on the spool. For the first issue, we have the filament out sensor available at https://www.thingiverse.com/thing:2533511. Introducing a new filament guide that can detect jams and act accordingly. It relies on the roller type stop switch and wiring pi GPIO 2 off the Raspberry Pi as a hardware solution. The Octoprint uses the “Filament Sensor Reloaded” plugin to pause prints graciously, allowing you to change filament, but it only supports one sensor. If you only use the Filament Jam sensor (and not the Filament Out sensor), you can follow the plugin's instructions and be done. If you want to use both the Filament Out sensor (GPIO-0) and Filament Jam Sensor (GPI-2), then the solution is to use Raspberry shell script to detect the filament jam condition and turn off the printer when it occurs. The script "checkForFilamentJam.sh" has been uploaded, all you need to do is download it to the Raspberry Pi. There is a catch - how to make the Raspberry Pi turn the printer off? Well, the solution lies in the "Power Supply, Raspberry Pi, Relay Module, Fan Case" available at https://www.thingiverse.com/thing:2480530, which uses GPIO-1 to turn off/on the printer via a relay module. A YouTube video (https://youtu.be/eZ3a8W54gvE) recorded over 4 minutes showing the Filament Jam Sensor in action (sorry I didn't know exactly when it got jammed). It turned the printer off when filament was deliberately jammed by a paper clip. Just skip to about the last minute to see how the Pi handled it. The video shows the stop switch being "clicked" a few times before it "aligned" with the script's 5-second check to turn the printer off. This means the printer was turned off only when the check at the 5-second interval detected the switch being pressed in that split second (literally). You can set the check timer down to sleep 1s (for 1 second) if you want the printer off within the first or second click, but the Pi might suffer some performance hit. This guide can also be used as an extra On/Off switch if you manually hold it down for a few seconds, no need to reach to the back to turn it off. Caution: try the clip approach to make sure your installation works, but I am not responsible for any damages to your printer or anything. You can see that the extruder can pull the filament quite hard and dragged the 5 lbs spool holder until it hit the frame. This test was pretty brutal but it reflected the real scenario. Wiring: Connect the NO (Normally Open) middle pin of the stop switch to Raspberry Pi pin header 13 (which is GPIO-2 for WiringPi or BCM GPIO-27) if you have the Raspberry Pi Rev B. If you have other versions, you can find out which pin header corresponds to GPIO-2 or modify the shell script accordingly. Connect the second wire to the C (COM) pin on the stop switch to any ground pin on the Raspberry Pi. Software: Download the checkForFilamentJam.sh script to the main /home/pi folder when you log in to the Raspberry Pi and enter the following command after it boots: ./checkForFilamentJam.sh & The script will run in the background and check for the filament jam condition every 5 seconds. If the script does not start, it might be because the copying back and forth made it non-executable. If that's the case, just issue the command "chmod +x checkForFilamentJam.sh". When the script detects the jam from GPIO-2, it sends a signal to GPIO-1 to turn off the printer and exits. You need to resend the command next time around. Installation: You can reuse the side M3 screw and change the top screw to M3-21mm to attach the filament guide to the top left or top right of the Anet A8 printer. Printing: Rotate X axis 270 degrees to print it upside down, use 50mms speed and 30% infill with support generation.

Download Model from thingiverse

With this file you will be able to print Filament Guide with Jam Sensor with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Filament Guide with Jam Sensor.