At present, in the process of opening and closing the curtains, because people in the interior of the time is limited, can not be timely and effective control curtains according to the room outside of the light intensity and the indoor temperature, thus resulting in the best effect can not get curtains of the problem, so put forward a kind of automatic control system of STM32 based on the curtains. The system comprises a temperature sensor module, a light sensor module, a clock module, a motor module, a liquid crystal display module and a manual control module. After the actual test, the system is simple and convenient, can carry automatic and manual mode to open and close the curtain, can meet the actual needs, can be a wide range of promotion.