Switch turned around (180 degrees)
Switch position adjusted.
Taper filament hole instead of straight parallel hole
Height of switch adjusted
Hole for cable tie added
Attachment holes for the micro switch added
The Tip of the Micro Switch is bent over (About 1-1.5 mm) at approx 45 degrees
The changes are mainly to make it easier to feed and retract the filament
Tevo Tarantula Pro filament run out switch mounting block.
Wire the normally open contacts of the micro switch to Servos2 D4 and Gnd pins.
Add the following lines into Marlin and compile then flash your board (Assuming it is the stock MKS GEN L board).
File - pins_MKS_GEN_L.h
" #define FIL_RUNOUT_PIN 4"
Change the lines
File - Configuration.h
Uncomment (remove the //) from the lines
Uncomment the line
(Do Not include the Quotation Marks only here to show the "#" marks)
The system will now detect when the switch is open i.e. the filament has run out.
When the switch is operated the system halts and the head goes into a park position, the filament retracts around 100mm and the display lets you know when to remove the existing filament and replace it. After replacing the filament the hot end heats back to the set temp and a length of filament is extruded to clear the nozzle once the extrusion has completed you press the switch and printing recommences.