using arduino/proto screw shield and GRBL with UGS, how do you wire a touch probe and get it to work?
Thanks
using arduino/proto screw shield and GRBL with UGS, how do you wire a touch probe and get it to work?
Thanks
ok so apparently you just wire some kind of contact plate from pin A5 to ground to close this circuit.
I have also read you may or may not need a "pull up or down resistor" to not fry the arduino??
What is that about?
I know there is a probe helper on UGS but for now all I want to do is get the probe properly wired.
Thanks
Pull up resistor is a weak resistor that connects between the pin and 5V. A pull-down is about the same except the resistor connects between the pin and ground. What they do is insure that the pin doesn't "float" which can cause errant readings.
If you are running Grbl on an Uno, Grbl defaults to activating the built in pull-up resistors. So you don't have to install a pull up resistor if using a NO type switch. The contact plate deal is essentiall a NO switch so you would be ok just hooking between the probe pin and ground.
I am running an UNO.
If I want to use NC limit switches what exactly do need to do with resisters and GRBL settings?
Thanks
There really is nothing mandatory to do on an UNO to use either NO or NC limit switches. The internal pull-up resistor is activated by default, so either NO or NC can be connected directly.
However.... The internal pull-up work but are very weak and you can still get false triggers especially if you have electrical noise. Common sources of noise are spindle motors, power supplies, and even the stepper motor wiring itself. You will need to pay careful attention to routing of all of the limit switch wires to try and route them away from possible sources of noise. You can also add an external RC filter as an additional combatant of noise. This consists of a resistor and capacitor that cleans up the spikes from the noise preventing then from causing a false trigger.
Here is a WIKI page from the Grbl site that does a good job describing limits. The same can be done for a probe since a simple probe is just a switch anyway.
https://github.com/gnea/grbl/wiki/Wiring-Limit-Switches
Thought I should add a little information from personal experience. I personally have used a couple methods.
1. On my first machine, it was already configured to use a PC based controller (LinuxCNC) with a breakout board, so it had a breakout board that had optocouplers for the limits. For this machine I just used an old parallel port cable to connect the arduino to the breakout board. So in essence I had optocouplers for the limits similar to what is shown on the wiki page I linked. No problems here.
2. On another machine I just connected the switches to the arduino directly. This worked ok for homing, but I experienced false triggers from noise during operation. So, I took the lazy way out and enabled the switches for homing but turned off hard limits and only used soft limits on that machine.
3. On the current machine I am building I will do the same as #1 because I plan to use this machine with both Grbl and LinuxCNC again.
Does the touch probe wire need to be shielded or just a twisted pair?
does arduino/grbl ignore any input from the probe when it it not actively probing?
thank you