Design and implementation of automatic phase changer