Ender 3 / Pro Filament Runout Sensor using Limit Switch

Ender 3 / Pro Filament Runout Sensor using Limit Switch

thingiverse

This is a remix of [Filament Runout Sensor w/ Creality Limit Switch](https://www.thingiverse.com/thing:4547442) The original Sensor is good, but I created this remix because I needed a sensor for my Ender-3 Pro and it is in an enclosure. The original fixing bracket wouldn't work for me, so I created this one that can be attached to the top of my box. As I put BLToutch, the Limit Switch of the Z axis was unusable, so I made a use of it by making this sensor, and it works perfectly. The design uses a 608 bearing and a custom PTFE holder to allow filament to glide through with minimal friction. I wanted to use commonly available parts and more than likely, you probably have the necessary items laying around. <h1>.STL files:</h1> Main body PTFE holder <h1>Parts you need:</h1> Limit switch (taken off the stock mount) 2x 5mm M3 screws (taken off the stock mount) 20mm PTFE tubing Standard 608 bearing aka skateboard bearing (you could probably even print one) Wires (you can use the original cable that was plugged into the limit switch, but you would have to fish it out of the enclosure.) Optional: Using connectors such as JST XH and/or dupont is super helpful for making good connections with your hardware. Otherwise, you'll have to figure out a way to make the connections. <h1>Making the PTFE guide:</h1> Rough up the outside of the PTFE tube using medium grit sandpaper. Adhere PTFE tube to the holder and allow to dry. Original Super Glue worked best for me. Using a sharp blade and while using the holder as a guide, carefully trim off the excess PTFE like shown in the pictures. Attaching ONLY to the metal lever of the limit switch, adhere the PTFE guide with a small drop of glue. Be careful not to get glue on the switch itself! Note: Depending on the tolerances of your limit switch, you may or may not have to file down the PTFE guide. Just make sure the switch has enough room to click and unclick. <h1>Wiring guide:</h1> Using the limit switch PCB as a reference, you will notice the three pins are labelled as S, G, and V. Depending on how you want to wire the switch, you can have it normally open or normally closed. Using pins S and G will make the switch normally open. Using Pins S and V will make the switch normally closed. If you are using the wires that originally plugged into the switch, it is set up for normally closed. Connecting it to your Raspberry Pi (Octopi): Refer to my photos and https://www.raspberrypi.org/documentation/usage/gpio/ You will need to connect one wire of the switch to any GPIO labelled pin and the other wire to ground on the Raspberry Pi. <h1>you need to install some filament sensor plugin with GPIO support</h1> In Plugin settings, choose the board pin you are using, the switch type, and make sure "Pause print when out of filament" is check marked. You may leave debounce time unchanged and Out of filament GCODE blank if you wish. For my setup, I connected the switch to GPIO 23 (board pin 16) and ground on pin 14. Using "Board Mode" I entered a value of 16. My switch is normally closed. Modify your GCODE to whatever works best for you. I only use print/resume GCODE scripts regardless of any interruption to my prints. <h1>Note: I recommend that you print in ABS.</h1> ![If you liked my work, you might want to ...](https://camo.githubusercontent.com/e29f1fc5dc379487863512b926c6309521213c230d49ff0646acd2d58aeb6f14/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f67756964656c696e65732f646f776e6c6f61642d6173736574732d736d2d322e737667 "Title") If you liked my work, maybe you might want to [buy me a coffee](https://www.buymeacoffee.com/nandogommez)

Download Model from thingiverse

With this file you will be able to print Ender 3 / Pro Filament Runout Sensor using Limit Switch 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 Ender 3 / Pro Filament Runout Sensor using Limit Switch.