A spot welder can be anything between very simple to very complex. People have made them using transformers hacked from Microwave ovens on a simple scale.
Among the problems with using a comparator to measure or compare an AC signal is the AC is constantly crossing a zero reference so the comparator Out will just be a pulse train as the input varies above and below a reference. Even if we use a uC like an Arduino to detect an AC signal using an analog input channel the same problem will persist. Normally AC voltage measurement can be carried out by converting AC voltage into proportional DC Voltage using rectifier and filter circuits. For low AC voltage (mili volts) measurement precision rectifier is used as diode knee voltage is 0.7 Volt. I don't know of a simpler way to go about it.
Ron
Among the problems with using a comparator to measure or compare an AC signal is the AC is constantly crossing a zero reference so the comparator Out will just be a pulse train as the input varies above and below a reference. Even if we use a uC like an Arduino to detect an AC signal using an analog input channel the same problem will persist. Normally AC voltage measurement can be carried out by converting AC voltage into proportional DC Voltage using rectifier and filter circuits. For low AC voltage (mili volts) measurement precision rectifier is used as diode knee voltage is 0.7 Volt. I don't know of a simpler way to go about it.
Ron