【正文】
設計巴巴工作室 設計巴巴工作室 The Control System for Lighting Based on Single–chip Microputer With the rapid development of electronic technology, the system of control based on Singlechip Microputer is widely applied in industry, agriculture, electric power, electron, intelligent building and so on. Microputer, as the subject and core of the embedded system of control, replaces the traditional system—electronic circuit. At the same time, the development and maturation of the intelligent building have established the substantial foundation for the popularization and application of the control system for lighting based on singlechip microputer. The paper expatiates on the designing theories and implementation method of the control system for lighting by wired or wireless munications. Taking the designing process as mainline, it describes the process of designing from two respects—hardware and software. In another word, the paper describes the process from the method of circuit designing to the software technology of realizing the demanded functions. The host controller of the control system for lighting is based on AT89C51 singlechip microputer, and the auxiliary ones are based on AT89C2051. The system can do many jobs, such as wired munication, wireless data transmitting, controlling and display. The paper describes the designing process of the circuit at length, including: keyboard and LED display circuit, RS485 munication circuit, wireless transmitting circuit, control circuit of lighting, watchdog circuit, etc. The designing of software mainly includes the several programming, such as wired munication, wireless data transmitting, lamplight controlling, timed controlling, keyboard scanning and LED displaying. The wired munication programming function is that through Masterslave munication method based on RS485 the host controller sends orders to the all auxiliary controllers or each one, including: turning on lighting, turning off lighting, regulating brightness of lighting, controlling timed lighting, etc. The wireless data transmitting programming function is that by wireless transmitter it realizes wireless controlling of the lighting, and achieves the functions identical to wired munication. Traditional building automatic controll