# Filament sensor simplified
This plugin reacts to short lever microswitch output like [this](https://chinadaier.en.made-in-china.com/product/ABVJkvyMAqcT/China-1A-125VAC-on-off-Kw10-Mini-Micro-Mouse-Switch.html)
If triggered it issues configured 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
* test button so you know if your sensor really works or not
* 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
* navbar icon where you can immediately see if the filament's in
* info pop-up when plugin hasn't been configured
* filament runouts can be repeatable
* user-friendly and easy to configure
* pin validation so you don't accidentally save wrong pin number
* detection of used GPIO mode - this makes it compatible with other plugins
* handles delibrate M600 filament change
* if your printer doesn't support M600 you have option to use Octoprint pause
* 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](https://docs.octoprint.org/en/master/bundledplugins/pluginmanager.html)
or manually using this URL:
https://github.com/luckyx182/Filament_sensor_simplified/archive/master.zip
## Configuration
Configuration consists of these parameters:
1. **Board mode** - Physical/BOARD or GPIO/BCM mode, **Physical/BOARD mode** - referring to the pins by the number, **GPIO/BCM mode** - referring to the pins
by the "Broadcom SOC channel", if this is selected by 3rd party, this option will be disabled with note on GUI
2. **pin number** - pin number based on selected mode
3. **power input to sensor** - input is connected to **ground or 3.3 V**
4. **switch type** - switch should be **triggered when opened** (input of the sensor doesn't transfer to its output) or **triggered when closed** (input of the sensor is transferred to its output)
5. **runout action** - choose whether you want to **send G-code** to printer or use **Octoprint pause** on filament runout
5. **g-code** to send to printer on filament runout / before OctoPrint pause - default is M600 X0 Y0
Default pin is 0 (not configured) and ground (as it is safer, read below).
After configuring it is best to restart Octoprint and dry-run to check if the filament change works correctly to avoid any problems.
**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](https://community.octoprint.org/t/where-can-i-find-octoprints-and-octopis-log-files/299)
## Support me
![Luke's 3D](screenshots/Lukes_3D_logo.png "Luke's 3D")
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](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5L758LYSUGHW4&source=url)
Have a good one
Luke
## Screenshots
Plugin settings:
![plugin_settings](screenshots/settings.png "Plugin settings")
Navbar icons:
![plugin_settings](screenshots/navbar-icon1.png "Plugin settings")
![plugin_settings](screenshots/navbar-icon2.png "Plugin settings")
No configuration pop-up:
![no_config_pop-up](screenshots/no_conf_popup.png "No configuration pop-up")
No filament when starting print pop-up:
![start_no_filament_popup](screenshots/no_filament.png "Start with no filament pop-up")
Filament runout pop-up:
![no_filament_popup](screenshots/filament_runout.png "No filament pop-up")
Waiting for user input pop-up:
![user_input_popup](screenshots/waiting_for_user_input.png "User input required pop-up")
## Maintainers wanted
As I don't have much time for this plugin anymore any help on maintaining the plugin will be greatly appreciated. I will only do basic maintenance.
没有合适的资源?快使用搜索试试~ 我知道了~
OctoPrint 灯丝传感器简化插件库_Python_代码_相关文件_下载
共22个文件
png:9个
py:2个
md:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 110 浏览量
2022-07-13
22:27:57
上传
评论
收藏 773KB ZIP 举报
温馨提示
简化的灯丝传感器 这个插件对短杆微动开关输出做出反应, 如果触发它会向打印机发出配置的命令。 让我们检查一些功能: 打印机耗材耗尽时弹出通知 当打印机在更换灯丝时需要用户输入时非常方便的弹出窗口 测试按钮,这样你就知道你的传感器是否真的有效 打印开始时检查灯丝 - 如果没有灯丝,则不会开始打印,将再次出现弹出窗口 在灯丝更换结束时检查灯丝 - 只是为了确保您不会在没有灯丝的情况下开始打印 导航栏图标,您可以在其中立即查看灯丝是否在 未配置插件时弹出信息 灯丝跳动可以重复 用户友好且易于配置 密码验证,这样您就不会意外保存错误的密码 检测使用的 GPIO 模式 - 这使其与其他插件兼容 处理故意 M600 灯丝更换 如果您的打印机不支持 M600,您可以选择使用 Octoprint pause 在 OctoPrint 1.3.0 及更高版本上运行 更多详情、使用方法,请下载后细读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
Filament_sensor_simplified-master.zip (22个子文件)
Filament_sensor_simplified-master
MANIFEST.in 219B
octoprint_filamentsensorsimplified
templates
filamentsensorsimplified_settings.jinja2 6KB
filamentsensorsimplified_navbar.jinja2 65B
static
css
filamentsensorsimplified.css 522B
img
Luke's 3D new logo no background black cropped.png 33KB
js
filamentsensorsimplified.js 8KB
__init__.py 23KB
babel.cfg 151B
screenshots
waiting_for_user_input.png 191KB
settings.png 68KB
no_conf_popup.png 144KB
navbar-icon1.png 23KB
Lukes_3D_logo.png 71KB
no_filament.png 170KB
filament_runout.png 98KB
navbar-icon2.png 22KB
requirements.txt 155B
setup.py 4KB
LICENSE.md 11KB
.gitignore 58B
README.md 4KB
.editorconfig 280B
共 22 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- java.Java9的模块化.md
- InvalidSessionStateException解决办法.md
- ContentPreviewUnavailableException解决办法.md
- ShareQuotaExceededException解决办法.md
- java.Spring Boot.md
- java.常用框架.md
- java.Spring.md
- ContentRenderingFailureException解决办法.md
- RemoteServerTimeoutException解决办法.md
- java.Spring Cloud.md
- FilesystemIterator(解决方案).md
- DirectoryIterator(解决方案).md
- UnknownErrorException解决办法.md
- InvalidPenInputException解决办法.md
- RecursiveDirectoryIterator(解决方案).md
- PenNotConnectedException解决办法.md
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功