design and construction of a microcontroller based surge protection system