I've got a standard NO micro switch plugged into the board across a GND and XMIN pair (thanks to the good layout they are easy to connect to).
When I close the switch it just resets the board (blue 'on' led and tx/rx leds flash) . If I am in a console it outputs the build version and welcome message.
Q> How are the switches supposed to be wired ?
Is it simply a NO switch across a Min/Max and its GND neighbor ?
The min / max switches are actually supposed to reset the board, That's what they do. The idea is that if you hit the limit it's supposed to stop all action.
Your wiring is correct. An NO switch across the switch contact and the ground.
Ok I understand now, but I was worried as resting my board (using the button) looses all my settings, but I can see now after further investigation that the reset performed by the limit switches (soft presumably) is different and does not loose settings like the one performed by the button (hard reset presumably).
This can be confirmed below where I boot the machine, set X TR 1000 then reset using the limit switch, then dump the settings and it is still 1000, then reset using the button and dump the settings and TR is default again
tinyg GCODE[mm] ok> tinyg GCODE[mm] ok> $xfr1000 X axis - Feed rate 1000 mm/min $XFR1000
tinyg GCODE[mm] ok> tinyg GCODE[mm] ok> $x
X axs - Axis mode 1 [0-10] $XMO1
X axis - Seek rate 1500 mm/min $XSR1500 X axis - Feed rate 1000 mm/min $XFR1000
X axis - Travel/rev 2.54 mm $XTR2.54
X axis - Travel hard limit 400 mm $XTH400
X axis - Travel soft limit 380 mm $XTS380
X axis - Step angle 1.80 degrees $XSA1.80
X axis - Microsteps 8 [1,2,4,8] $XMI8
X axis - Motor polarity 0 [0,1] $XPO0
X axis - Power mgmt mode 1 [0,1] $XPW1
X axis - Limit switch mode 1 [0,1] $XLI1
X axis - Homing enabled 1 [0,1] $XHE1
X axis - Homing seek rate 1350 mm/min $XHR1350
X axis - Homing close rate 10 mm/min $XHC10
X axis - Homing offset -200 mm $XHO-200
X axis - Homing backoff 5 mm $XHB5
Your X axis settings translate to:
X axis mode: STANDARD
X max seek: 1969 steps/sec
X max feed: 1312 steps/sec
tinyg GCODE[mm] ok> tinyg GCODE[mm] ok> #### TinyG build 314.03 - "Zygomycosis" ####
Type h for help tinyg GCODE[mm] ok> $x
X axis - Axis mode 1 [0-10] $XMO1
X axis - Seek rate 1500 mm/min $XSR1500 X axis - Feed rate 1000 mm/min $XFR1000
X axis - Travel/rev 2.54 mm $XTR2.54
X axis - Travel hard limit 400 mm $XTH400
X axis - Travel soft limit 380 mm $XTS380
X axis - Step angle 1.80 degrees $XSA1.80
X axis - Microsteps 8 [1,2,4,8] $XMI8
X axis - Motor polarity 0 [0,1] $XPO0
X axis - Power mgmt mode 1 [0,1] $XPW1
X axis - Limit switch mode 1 [0,1] $XLI1
X axis - Homing enabled 1 [0,1] $XHE1
X axis - Homing seek rate 1350 mm/min $XHR1350
X axis - Homing close rate 10 mm/min $XHC10
X axis - Homing offset -200 mm $XHO-200
X axis - Homing backoff 5 mm $XHB5
Your X axis settings translate to:
X axis mode: STANDARD
X max seek: 1969 steps/sec
X max feed: 1312 steps/sec
tinyg GCODE[mm] ok> tinyg GCODE[mm] ok> #### TinyG build 314.03 - "Zygomycosis" ####
Type h for help tinyg GCODE[mm] ok> $x
X axis - Axis mode 1 [0-10] $XMO1
X axis - Seek rate 1500 mm/min $XSR1500 X axis - Feed rate 1350 mm/min $XFR1350
X axis - Travel/rev 2.54 mm $XTR2.54
X axis - Travel hard limit 400 mm $XTH400
X axis - Travel soft limit 380 mm $XTS380
X axis - Step angle 1.80 degrees $XSA1.80
X axis - Microsteps 8 [1,2,4,8] $XMI8
X axis - Motor polarity 0 [0,1] $XPO0
X axis - Power mgmt mode 1 [0,1] $XPW1
X axis - Limit switch mode 1 [0,1] $XLI1
X axis - Homing enabled 1 [0,1] $XHE1
X axis - Homing seek rate 1350 mm/min $XHR1350
X axis - Homing close rate 10 mm/min $XHC10
X axis - Homing offset -200 mm $XHO-200
X axis - Homing backoff 5 mm $XHB5
Your X axis settings translate to:
X axis mode: STANDARD
X max seek: 1969 steps/sec
X max feed: 1772 steps/sec
tinyg GCODE[mm] ok>
So perhaps my question now is :
How do you save settings / hardware profiles on the board ? I cant seem to find documentation on this, presumably there is EEPROM available on the chip.