Electric curtain is to use a motor to take a curtain to extend the track back and forth movement, can also be said to be through a set of mechanical devices to turn the shutter, and good control of the motor is realized. The core of it is this motor. Intelligent electric curtain can be opened and closed according to the change of external light intensity, that is, open the curtain in the morning, close the curtain at night, can also be considered to control the curtain, to create a warm and comfortable environment. The principle of curtain position detection is to obtain the position of curtain bottom through infrared sensor and 51 single chip microcomputer control, and then provide basis for single chip microcomputer control motor. The curtain opening and closing, as well as the number of open, and the outside light intensity, multiple modules work together, so as to achieve intelligent control of the curtain.