Maybe, but I can't find my copy of MEW249. Is Carl's code and wiring available on the web?
Carl does the change manually with an on/off/on momentary switch. I don't know of an off-the-shelf switch that does that but they're quite likely to exist if you know where to look!
Might be easier to make a wiper switch to fit on the lathe. I think it's easier to do off/on/off and have the Arduino invert the logic.
A contact mounted on the saddle, which is earthed, passes over an insulated contact held at 5V via a resistor, causing a pin the Arduino to register logic 1,0,1:

Main problem is likely to be debouncing and cleaning up the signal presented to the Arduino. Unfortunately, good earths by sparky electrician standards are often a heap of filth in telecommunications! Trouble is microcontrollers are switched by low voltages and react in microseconds. They easily detect that most mechanical switches don't make or break cleanly and bounce many times over tens of milliseconds. They also react to any other low level electrical noise present.
Step one is to try the circuit without a debounce capacitor. If operation is unreliable, try adding a capacitor between 0.01 and 0.1 microfarads. It may be necessary to experiment. With luck the capacitor stores enough charge to fill short negative spikes so the Arduino never sees them, and also decouples any AC on the line to ground, but it's a mild bodge. More elaborate filtering and debouncing may be necessary.
Mucky signals are the bane of microcontrollers. Might even be the reason why what's already been tried isn't working.
Dave
Edited By SillyOldDuffer on 02/07/2022 13:16:26