Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stepper auto-zero should allow reverse logic #1882

Open
tigert opened this issue Dec 18, 2024 · 0 comments
Open

stepper auto-zero should allow reverse logic #1882

tigert opened this issue Dec 18, 2024 · 0 comments

Comments

@tigert
Copy link
Contributor

tigert commented Dec 18, 2024

Is your feature request related to a problem? Please describe.
When using auto-zero switch / optical sensor for stepper motor, optointerruptors are a common way to have optical limit switches, but there are two kinds, normally open (NO) and normally closed (NC). Especially optical interruptors use a phototransistor and can be either NPN or PNP type, which also has the same effect with reverse logic if you happen to have a NPN variant, so the circuit is disconnected when optical blockage is detected and not the other way around. Like if you connected the interruptor as a switch, you'd get a PRESS and RELEASE events swapped.

Describe the solution you'd like
It would be good to have an option to set the type of switch, whether it is a "close upon contact" or "open upon contact" type.

Describe alternatives you've considered
Thought of setting it in the stepper settings, but hardware is logically best set up in the device configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant