#The value 'my_sensor' is not valid for SENSOR

51 messages · Page 1 of 1 (latest)

frigid girder
#

Getting this error after installing a BTT smart runout sensor. I have it plugged into the circled slots, set to PG15 (tried !PG15, same error).

Printer config is attached. Appreciate any ideas.

tall abyss
#

That's because you named it Filament_Sensor not my_sensor

umbral patrol
#

need to include your printer.cfg for analysis so we can see what/why the error is being thrown. ...but an error like that means the way/test/format you name your sensor is simply invalid.

tall abyss
umbral patrol
#

doooohL!

frigid girder
tall abyss
#

well, you are telling your slicer that it is called my_sensor so either change it to be named that in your config, or change it in your slicer to match your config

frigid girder
#

Oooohhh OK thank you.

frigid girder
#

Sorry one last thing: Where do I change it in the slicer? Prusaslicer 2.6 in this case?

tall abyss
frigid girder
#

I didn't.

#

it was that way by default

tall abyss
frigid girder
#

Weird. Cuz I literally did nothing except copy the code from the macros page. Could it be in another cfg file?

tall abyss
frigid girder
#

Nope.

#

Tho since I installed the OS I have always gotten a "Filament sensor undetected" whenever it starts up.

#

And I've reinstalled the OS twice.

tall abyss
frigid girder
#

Positive.

tall abyss
frigid girder
#

Eeeyup. Didn't find anything like it online either.

tall abyss
#

So when you say you have reinstalled Rat-OS, what exactly did you do? Maybe you are restoring something and that has the my_sensor expectation?

frigid girder
#

Well I was getting an issue with it repeatedly so I took the microsd card out of the pi, formatted it, reflashed the OS to it and reinstalled everything including the mainboard drivers.

#

After which it was a few versions back so I updated everything on the config menu.

tall abyss
#

and reinstalled everything

What does that mean?

#

Rat-OS doesn't have you install anything

frigid girder
deft bolt
deft bolt
frigid girder
frigid girder
deft bolt
frigid girder
#

Alright. Lemme start a print

#

Gotta put a beacon on this thing or get that small space macro. probing takes longer than some prints.

deft bolt
frigid girder
#

Yeah I found the gcode you mentioned and it had the 'my_sensor' line in it. I changed it to 'Filament_sensor' but I haven't plugged the BTT back in

deft bolt
frigid girder
#

Oh good to know. does it retain accuracy?

deft bolt
#

If you have the performance config enabled you can increase your z_speed too

[printer]
max_z_accel: 1000
max_z_velocity: 50
deft bolt
frigid girder
#

Bltouch

deft bolt
#

Oh yeah then no 😄

#

You want to keep speed at 7

#

The rest you can still do

#

And also you can enable touch probe mode.. Lemme find the config

frigid girder
#

Yeah I see what it was. I had the start gcode including ";enable this if you have a BTT Smart Filament Sensor
SET_FILAMENT_SENSOR SENSOR=my_sensor ENABLE=0" active in the start gcode.

deft bolt
#
[bltouch]
stow_on_each_sample: False
probe_with_touch_mode: True

I think that's how it works.

frigid girder
#

I changed it to 'Filament_sensor' instead of 'my_sensor'. I'll plug it back in and test it.

Just to be extra sure I should run a reverse bowden tube between the sensor and the extruder to reduce the slack, right?