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 and based on the PIC16F877 microcontroller and the Basic pro program.