Skip to content

Homing and limit switches #651

Feb 27, 2024 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Usually the way I do it is enable signals (like limits and controls) pull up. I then wire limits and buttons using normally closed switches with the common connected to ground.

This has the advantage of (in case of a faulty wire or an unconnected switch by accident) detecting a connection interruption an trigger the pin. Also you only need GND to connect the switch.

You can then, if necessary use optocouplers to work with higher voltages to make the circuit more noise immune.

Please read this discussion with a somewhat similar problem and solution.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@Paciente8159
Comment options

@andeksan
Comment options

@Paciente8159
Comment options

Answer selected by andeksan
Comment options

You must be logged in to vote
2 replies
@Paciente8159
Comment options

@andeksan
Comment options

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