Skip to content

Octoprint Filament sensor simplified plugin repository

Notifications You must be signed in to change notification settings

n3qik/Filament_sensor_simplified

 
 

Repository files navigation

Filament sensor simplified

This plugin reacts to short lever microswitch output like this If triggered (switch open) it issues M600 X0 Y0 command to printer.

Let's check some features:

  • pop-up notification when printer runs out of filament
  • very handy pop-up when printer requires user input while changing filament
  • filament check at the start of the print - if no filament present it won't start printing, again pop-up will appear
  • filament check at the end of filament change - just to be sure you won't start printing with no filament
  • check if printer supports M600 when printer connected - if not user will be notified through pop-up
  • info pop-up when plugin hasn't been configured
  • filament runouts can be repeatable which didn't work with other plugins I tried
  • user-friendly and easy to configure
  • runs on OctoPrint 1.3.0 and higher

NOTE: this plugin won't work if you use OctoPrint only to start printing from SD card

Setup

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/luckyx182/Filament_sensor_simplified/archive/master.zip

Configuration

Configuration couldn't be simpler, all you need is to configure listening board pin (board mode) and if the second switch terminal is connected to ground or 3.3V.

Default pin is -1 (not configured) and ground (as it is safer, read below).

WARNING! Never connect the switch input to 5V as it could fry the GPIO section of your Raspberry!

Advice

You might experience the same problem as I experienced - the sensor was randomly triggered. Turns out that if running sensor wires along motor wires, it was enough to interfere with sensor reading.

To solve this connect a shielded wire to your sensor and ground the shielding, ideally on both ends.

If you are unsure about your sensor being triggered, check OctoPrint logs

Support me

This plugin was developed in my spare time. If you find it useful and like it, you can support me by clicking the button below :)

More coffee, more code

Screenshots

Plugin settings: plugin_settings

No configuration pop-up: no_config_pop-up

Pop-up for M600 disabled: M600_not_enabled

No filament when starting print pop-up: start_no_filament_popup

Filament runout pop-up: no_filament_popup

Waiting for user input pop-up: user_input_popup

About

Octoprint Filament sensor simplified plugin repository

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 80.8%
  • HTML 10.8%
  • JavaScript 7.3%
  • CSS 1.1%