The mosfet should be heatsunk as it might dissipate 20 watts. IRF 540?
The pot adjusts between 0 and 1A => plenty. I'd start with 100mA.
The 24v psu MUST be completely isolated from ground - note that ground is on the electrode.
The arduino measures the gap volts - choose eg 2, and use it to drive the stepper to hold it near there.
As I remember a typical spark erosion system only uses a few volts - < 10 - so your +24 is probably well over the top and just adds dissipation. Try 12.
its gonna take me a minute to understand all that, but thanks so much!
not totally sure whats going on with the op amp, but I'll do some reading & figure it out.
what is the purpose of the zener diodes?
as for the isolation, doesn't the PSU ground get connected to the ardunio ground as soon as that mosfet turns on?
and I am using 12v--that power supply has 12 & 24 volt winding. and yah I have seen people do it with as little as 1.5v volts off a AA battery, but I already read about commercial units that use closer to 100V...either way, id like to get it working at 12v.
I am gonna see if I can scavenge these components and build the circuit, will report results, or more likely, come back with questions