This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
forked from RomRider/Octoprint-Filament-Revolutions
-
Notifications
You must be signed in to change notification settings - Fork 20
Home
Anni L edited this page Nov 11, 2020
·
5 revisions
Welcome to the Octoprint-Smart-Filament-Sensor wiki!
To check if your sensor is connected properly you can run the delivered Python script filament_motion_sensor_connection_check.py.
- Download the script into your prefered folder:
curl https://github.com/maocypher/Octoprint-Smart-Filament-Sensor/blob/master/octoprint_smart_filament_sensor/filament_motion_sensor_connection_check.py --output filament_motion_sensor_connection_check.py
- Update the configuration values with your settings
- Exchange with your configured value
- Uncomment either GPIO.Board or GPIO.BCM depending on your configuration
USED_PIN = <Your pin>
GPIO.setmode(GPIO.BOARD)
#GPIO.setmode(GPIO.BCM)
- To save some filament unload the filament from the printer, e.g. you can use some offcut
- Run the script
python3 filament_motion_sensor_connection_check.py
- Move the filament manually Now you should see the output Moving or No motion detected