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

Update README.md #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update README.md #60

wants to merge 1 commit into from

Conversation

xsnoopy
Copy link

@xsnoopy xsnoopy commented Aug 24, 2021

Usually NC are connected from high voltage to the NC switch, then to the Input of a controll unit. For Microcontroller you need to wire them towards ground. This should help people to understand that better.

Usually NC are connected from high voltage to the NC switch, then to the Input of a controll unit. For Microcontroller you need to wire it towards ground. This should help people to understand that better.
Copy link
Contributor

@terjeio terjeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a tad more complicated and depends on the configuration. Both NC and NO switches may be wired to the +ve supply. The pullup resistors can be turned off by $18 (this will enable pulldown instead for most, if not all, drivers) and the inputs inverted by $15.

It is also possible to wire limit switches (with three terminals) to GND, the +ve supply and the inputs.

Relying only on the internal microcontroller weak pullup (or pulldown) resistor only for a board design is, IMO, bad practice. Typically these are around 50 K, with a 3.3V +ve supply the current provided could be below the switch wetting current? A capacitor and/or a lower value pullup/pulldown resistor should be added to the circuit - both for provinding enough current and improve noise immunity. Even better is to use optocouplers (some boards do) - this will increase the switch current, provide better noise immunity (since most are acting as a low-pass filter) and provide protection for the microprocessor pins.

IMO the sentence should be written a bit differently to take this into account.

@xsnoopy
Copy link
Author

xsnoopy commented Aug 24, 2021

Understood, I was just focusing on the struggle I had. It is described pretty well with your explanation and the regular grbl wiki. I will see that I get something together from your answer and the grbl wiki fitting for grblHAL.

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

Successfully merging this pull request may close these issues.

2 participants