Mike Shellim 4 Dec 2013
Last updated 22 April 2016
Here's a recipe for a 'virtual' safety switch. It requires two hands to activate, making it suitable for safety-critical functions such as calibration mode. (A modified version is used as a motor arm/kill switch).To switch on:
To switch off:
There is no need for a switch check at startup, since the switch defaults to off.
The basic safety switch is implemented using four logical switches:
Use L3 as the switch for whatever you want to control. If you wish to use different logical switches to those shown (e.g. if L1-L4 are already used), make sure to amend all references as necessary.