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
blacksmithforlife
blacksmithforlife•2y ago
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
billyd
billydOP•2y ago
Is there a list of pin names for the various toolboards? Or can I just say !toolboard:PB5?
blacksmithforlife
blacksmithforlife•2y ago
your toolboard should have a pinout and that should tell you the name to use
billyd
billydOP•2y ago
It just calls it PB5 as far as I can tell.
blacksmithforlife
blacksmithforlife•2y ago
You don't need the ! unless you need to invert the switch logic
billyd
billydOP•2y ago
Ok 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
miklschmidt
miklschmidt•2y ago
nono
blacksmithforlife
blacksmithforlife•2y ago
You only make changes in your printer.cfg
miklschmidt
miklschmidt•2y ago
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 🙂
miklschmidt
miklschmidt•2y ago
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.
billyd
billydOP•2y ago
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?
miklschmidt
miklschmidt•2y ago
Unfortunately i don't think so, no.
blacksmithforlife
blacksmithforlife•2y ago
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?
miklschmidt
miklschmidt•2y ago
Yeah that could work Or a filament switch sensor That's prolly better That shows realtime feedback right on the mainsail dashboard
billyd
billydOP•2y ago
Thanks guys
Want results from more Discord servers?
Add your server