Indoor intelligent lighting control system circuit design—Circuit diagrams read every day (72)
Source: InternetPublisher:武林萌主 Updated: 2021/04/01
With the rapid development of electronic technology, control systems based on single-chip microcomputer have been widely used in industry, agriculture, electric power, electronics, intelligent buildings and other industries. Microcomputers, as the main body and core of embedded control systems, have replaced the routine of traditional control systems. Electronic circuits. The development and maturity of building intelligence has also laid a solid foundation for the popularization and application of lighting control systems based on microcontrollers. This paper introduces the indoor lighting control system and its principles based on the single-chip microcomputer AT89C51, and proposes an effective energy-saving control method. The system adopts today's relatively mature sensing technology and computer control technology, and uses multiple parameters to control indoor lighting in school classrooms. The system is composed of a single-chip microcomputer as the core and a variety of interface circuits. There are six main parts: AT89C51 chip, optical signal acquisition circuit, human body signal acquisition circuit, clock control circuit DS12887, output control circuit, and timing monitor circuit.
Main controller circuit design
The main controller uses the AT89C51 microcontroller as the microprocessor. AT89C51 is a low-voltage, high-performance CMOS 8-bit microcontroller produced by the American ATMEL company. The chip contains 4K bytes of repeatedly erasable Flash read-only program memory and 128 bytes of random access memory. To obtain data memory (RAM), the device is produced using ATMEL's high-density, non-volatile storage technology and is compatible with the standard MCS-51 instruction system. It has a built-in general-purpose 8-bit central processing unit (CPU) and Flash storage unit. The peripheral interface circuit of the main controller system consists of keyboard, digital display and drive circuit, crystal oscillator, watchdog circuit, communication interface circuit, etc. The hardware circuit schematic diagram of the main controller system is shown in Figure 2-2.

Figure 2-2 Hardware circuit schematic diagram of the main controller system
Design of RS485 communication circuit
In various distributed control systems, one single-chip computer is often used as the host, and multiple single-chip computers are used as slaves. The host controls the operation of the entire system; the slaves collect signals to achieve on-site control; the host and slaves are connected through a bus , as shown in Figure 2-4. The host sends information to each slave (point-to-point) or multiple slaves (broadcast) through TXD, and each slave can also send information to the host, but slaves cannot communicate freely, and information must be transferred through the host. .
The wired communication method of this system uses the RS485 bus for communication. The RS485 standard supports half-duplex communication. Only three wires are needed to send and receive data. At the same time, it has the ability to suppress common mode interference. The receiving sensitivity can reach ±200mV, greatly The communication distance is improved. At the 100K bps rate, the communication distance can reach 1200m. If the communication distance is shortened, the maximum rate can reach 10M bps. The master-slave communication method is used here, with the host machine acting as the main controller and the slave machine acting as the sub-controller. The master is in a dominant and dominant position, and the slaves receive and send data in an interrupt manner. The information sent by the master can be transmitted to all slaves or designated slaves. The information sent by the slaves can only be received by the master, and the slaves cannot Direct communication. The communication circuit diagrams of the master and slave are shown in Figure 2-5 and Figure 2-6 respectively.

Figure 2-5 Host communication circuit diagram
- Water Softener
- The principles and types of power batteries and the main purpose of achieving BMS
- How to construct a small welding machine using a 5 amp transformer and a high current bridge rectifier?
- Using BMP280 to make a weather station
- Building a Dehumidifier for a 3D Printing Dry Box
- DIY a simple weather station
- Design a BLE thermos cup using M5Stack
- How to build an autonomous robot using the DonkeyCar platform
- Automatic recovery electronic fuse with soft start function
- DIY Solar Detector
- How does an optocoupler work? Introduction to the working principle and function of optocoupler
- 8050 transistor pin diagram and functions
- What is the circuit diagram of a TV power supply and how to repair it?
- Analyze common refrigerator control circuit diagrams and easily understand the working principle of refrigerators
- Hemisphere induction cooker circuit diagram, what you want is here
- Circuit design of mobile phone anti-theft alarm system using C8051F330 - alarm circuit diagram | alarm circuit diagram
- Humidity controller circuit design using NAND gate CD4011-humidity sensitive circuit
- Electronic sound-imitating mouse repellent circuit design - consumer electronics circuit diagram
- Three-digit display capacitance test meter circuit module design - photoelectric display circuit
- Advertising lantern production circuit design - signal processing electronic circuit diagram







京公网安备 11010802033920号