maocypher / Octoprint-Smart-Filament-Sensor

OctoPrint plugin that lets integrate Smart Filament Sensors like BigTreeTechs SmartFilamentSensor directly to RaspberryPi GPIO pins.
GNU General Public License v3.0
13 stars 20 forks source link

Test/debug sensor. #13

Closed strangecalling closed 3 years ago

strangecalling commented 3 years ago

I have set up the plug-in using a BTT SFS connected to pin 8 GPIO14 but the print does pause when the filament is stationary.

Is there a log file to view to show switch is functioning? Someway to check setup?

maocypher commented 3 years ago

Hi, you can find the logfiles in octoprint.log: https://community.octoprint.org/t/where-can-i-find-octoprints-and-octopis-log-files/299 If you want to change the loglevel you must add octoprint.plugins.smartfilamentsensor

But what do you mean with stationary? Not moving or stuck?

Your GPIO TXD has special funtionality https://www.raspberrypi.org/documentation/configuration/uart.md

strangecalling commented 3 years ago

I will check the logs and change the log level if needed.

By Stationary I mean filament not moving by disabling the extruder drive arm.

Do GPIO with special function not get assigned as inputs like normal GPIO pins? If so I will wired to a standard pin.

maocypher commented 3 years ago

It might be necessary to disable this funtionality in the pi config first, so the signals are not mixed up.

If still GCodes were send by OctoPrint during the stationary, then it is correct that the print can pause.

It is meassured by G0, G1 in future also G2, G3 commands. Maybe your configuration was too small if everything else was working fine

maocypher commented 3 years ago

Hi is there any news about this issue? If not it will be closed in a few days

maocypher commented 3 years ago

Hi, there is a pre-release now with integrated connection test and a visualization of the current values in the sidebar https://github.com/maocypher/Octoprint-Smart-Filament-Sensor/archive/1.1.5.zip

maocypher commented 3 years ago

Integrated test is released https://github.com/maocypher/Octoprint-Smart-Filament-Sensor/archive/1.1.5.3.zip