Design and implementation of home fan controller