TinyG2 (gShield 5b+ArduinoDue) and limit switches.

TinyG2 (gShield 5b+ArduinoDue) and limit switches.

I cannot find a configuration setting (I would expect $ST or its equivalent) to change the limit switch type in gShield + ArduinoDue TinyG2. There is no item related to this setting on the $$ list. The 3040 is using mechanical limit switches wired to NO by default, while controller reacts to NC (machine gets shutdown state when I release the switch after manually ‘closing’ it first). Any thoughts?

My limit switches are connected to Xmin, Ymin and Zmax for X Y Z axis respectively. The probe is connected to Zmin. I am running http://www.chilipeppr.com/tinyg workspace.

Is it possible to disable individual limit switch pins which are not in use (Xmax and Ymax in my case)?

I think about changing my limit switches to inductive or Hall effect based in the future, but for now I want to run existing configuration.

NO type limit switches worked OK with Arduino Uno + grbl, before I decided to give gShield a try.

The G2 wiki is here: https://github.com/synthetos/g2/wiki

But the real answer is here, I believe:
https://github.com/synthetos/TinyG/wiki/TinyG-Configuration-for-Firmware-Version-0.98#main-differences-between-097-and-098

In FV=0.98, each of the switch inputs becomes independent and highly configurable.

My G2 is off line at the moment, read thru the configuration wikis and then hack a bt at the command line to see if you can find the parameters you need. They don’t appear to be listed in $$.

Ah so, here is the reference to go to: https://github.com/synthetos/g2/wiki/Digital-IO-(GPIO)

@sszafran that last link Carl gave is probably the best, and should be accurate.

The order of the PIN numbers in X-Min (on the silk screen) is DI1/IN1, X-max is DI2/IN2, Y-min is DI3/IN3, Y-max is 4, Z-min is 5, and Z-max is 6.

Please let us know if there are any questions. That documentation hasn’t been used a lot AFAWK so it may be a little thin. Feedback is helpful here so we know what questions to answer.