This project proposes the model to simulate the open and close function of electric motor by microcontroller in order to reduce the cost of electricity. The operating principle control motor the 220V 2Hp 9.57A by micro controller the 1PIC number. 16F877. A control function of electronic circuits. Using language. Basic.pro. In writing order. To make the work according to the objective.