I've been trying to make this electronic surge protector based on an MCU. The basic principle I'm using is a voltage divider and the analog pins of an Arduino.
Obviously the 220V input will be scaled down to 5v then read on an analog pin. The code I'm writing is going to ping the analogPin every 10 millis or less and whenever the I/P voltage goes beyond, say 290 volts it just switches off a 2 pole contactor relay. No, issue there.
But here, as I've observed the vo