Addressing pins on a toolboard
I added a microswitch to my setup (to test filament presence) and have attached it to my EBB42 toolboard at PB5 (an extra unused endstop pin). How do I address that pin? Is simply PB5 enough or do I need to add something else to the assignment to let ratos know I mean the toolboard?
15 Replies
I believe you need to add the prefix of toolboard like on this line https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/templates/v-core-3-printer.template.cfg#L291
Is there a list of pin names for the various toolboards? Or can I just say !toolboard:PB5?
your toolboard should have a pinout and that should tell you the name to use
It just calls it PB5 as far as I can tell.
You don't need the
!
unless you need to invert the switch logicOk I found the pin definitions file in ratos so I can add PB5 to it and assign it a name in my printer.cfg file
nono
You only make changes in your printer.cfg
Don't override pin definitions, there's no point
Just do
toolboard:PB5
The above will only fail if that pin is used for something else
Ie, there's never a reason to change the pin aliases, or try and use the aliases themselves if you don't know if one exists.
Just use the pin from your boards pinout diagram 🙂This is described in the docs btw: https://os.ratrig.com/docs/configuration/includes-and-overrides/#overriding-pins
Includes & Overrides | RatOS
RatOS uses a modular configuration that heavily takes advantage of the config file include and merge logic in Klipper. For this reason, the order of includes and overrides are very important, do not change the order of the configuration unless you know what you're doing.
Got it thank you!
I tried to create my own alias at first and it wasn't happy lol. toolboard:PB5 worked.
Is there a way to get the state of the switch on PB5 in mainsail terminal now that I have it assigned just to see if it's working as expected without actually running a print?
Unfortunately i don't think so, no.
could he define it as an endstop temporarily and then use the machine tab to see what state it is in like when testing other endstops?
Yeah that could work
Or a filament switch sensor
That's prolly better
That shows realtime feedback right on the mainsail dashboard
Thanks guys