Smart Filament Sensor Unload button Action not triggering

According to the github (https://github.com/HelgeKeck/RatOS/blob/documentation_v2.1/site/docs/configuration/filament_sensors.md#configuration-3) I've configured it this way:
t0 orbiter smart filament sensor [filament_switch_sensor toolhead_filament_sensor_t0] pause_on_runout: False event_delay: 0.1 switch_pin: ^toolboard_t0:PB3 runout_gcode: _ON_TOOLHEAD_FILAMENT_SENSOR_RUNOUT TOOLHEAD=0 insert_gcode: _ON_TOOLHEAD_FILAMENT_SENSOR_INSERT TOOLHEAD=0 [gcode_button toolhead_filament_sensor_button_t0] pin: ^toolboard_t0:PB4 release_gcode: {% if (printer.print_stats.state == "printing") %} _ON_TOOLHEAD_FILAMENT_SENSOR_CLOG TOOLHEAD=0 {% else %} _ON_FILAMENT_SENSOR_BUTTON_PRESSED TOOLHEAD=0 {% endif %} press_gcode:
When I press the button on the sensor, I want to unload the filament. But the sensor only blinks blue, but nothing happens. Do I need to do anything else to unload on button press?
Solution:
you can try to copy and past the T1 config and redo the T0 config, sometimes when copy and pasting you copy some invisible characters
Jump to solution
26 Replies
Helge Keck
Helge Keck3d ago
how do you have connected the sensor?
Shuni
ShuniOP3d ago
Like this:
Shuni
ShuniOP3d ago
Printables.com
[Guide] Ratrig V-core-4 Smart Filament Sensor + Spacer Fittings by ...
Orbiter Smart Filament Sensor is fitting really good for the RatRig V-Core-4. This is a possible guide. | Download free 3D printable STL models
Helge Keck
Helge Keck3d ago
i mean the cables where are they conencted on the baord
Shuni
ShuniOP3d ago
Listed in the guide [1] 5V = Red [2] GND = Blue [3] FS = Green = PB3 (filament switch) [4] FTU = Yellow = PB4 (tangle/untangle/button) with image even :kellygiggleblush:
Helge Keck
Helge Keck3d ago
if you press the button what does the console say
Shuni
ShuniOP3d ago
nothing
Helge Keck
Helge Keck3d ago
please share your printer.cfg
Shuni
ShuniOP3d ago
thats the part when I inserted the filament
No description
Shuni
ShuniOP3d ago
Most things are in configAdditions, printer.cfg is nearly stock (only VAOC currently added)
Helge Keck
Helge Keck3d ago
please show the mainsail page with the filament sensors you should also remove the ! for the button pins
Shuni
ShuniOP3d ago
(note: I put a ! infront of the pb4 to test, but both results in no action)
Shuni
ShuniOP3d ago
No description
Shuni
ShuniOP3d ago
or do you need another page?
Helge Keck
Helge Keck3d ago
and if press the T0 button nothing happens at all? no output in the console
Helge Keck
Helge Keck3d ago
you can try to use another pin for the button, there is a image of the EBB pins
No description
Shuni
ShuniOP3d ago
correct, but the sensor starts blinking blue
Helge Keck
Helge Keck3d ago
the led doesnt mean anything its most ikely a bad crimp or you connected the cable to the wrong pin accidentaly jsut recheck it it works normaly pretty reliable
Shuni
ShuniOP3d ago
Will load the 2nd toolhead with filament to check if its working there Yep, works fine on the 2nd Toolhead. I'll investigate for bad crimps :kellysalute: (they are both equally wired, as I did both at the same time) Crimp is perfect, no issues there
Helge Keck
Helge Keck3d ago
then try another pin PB8 or 9
Shuni
ShuniOP3d ago
tried PB8, also no reaction. Maybe the sensor button is dead? PB9, same. No reaction
Helge Keck
Helge Keck3d ago
hmm, maybe the cable broken
Solution
Helge Keck
Helge Keck3d ago
you can try to copy and past the T1 config and redo the T0 config, sometimes when copy and pasting you copy some invisible characters
Helge Keck
Helge Keck3d ago
so remove the T0 conenctino and make it new
Shuni
ShuniOP3d ago
thats what I did already, but will try tomorrow again. And I'll check cable with multimeter for conductivity. If those two things are not working, I'll probably need to replace the sensor
Shuni
ShuniOP2d ago
I checked the cable and everything was fine. Copied the config from T1 to T0, edited to make it T0 again and now it works. very weird. Especially because I copied T1 from T0 :derp:
Want results from more Discord servers?
Add your server