I have designed a filament-out sensor and will be connecting it to the SmoothieBoard in my printer. I plan to use the P1.30^, P1.31^, and gnd pins for the input connecting to a SPDT microswitch, with the switch's NO contact connected to pin 1.31^. If I understand correctly, when filament is present, the NO contact will be closed, pulling 1.31^ low. That will allow the printer to run normally (at least that's what I want it to do...). When filament breaks or runs out, the switch will toggle and the NO contact will open and the NC contact (at pin 1.30^ will close) causing the machine to pause, per the example in the switch configuration page. When new filament is put through the sensor and into the extruder, the printer can resume printing.
Two questions:
Do I need to do anything to protect the input pins (add some series resistors)?
Will it work the way I'm thinking, or will the closed contact at 1.31^ at the start of a print cause weird behavior?
Here's the sensor:
