Intelligent switch control system for LED lamps based on single chip control

0 Preface

At present, despite the rapid development of automation technology, the control of household appliances in people's daily life is mainly to achieve functional control of electrical appliances. The practical, energy-saving, low-carbon home intelligent control system is less and less, mainly because the technology is still immature and the price cannot be popularized.

The home intelligent control system has three functions of achieving safe, intelligent and humanized short-range and remote control, realizing energy saving of household appliances and realizing information sharing. With the development of the times and the research on LEDs, the LED performance conversion rate is very high, the power consumption is much lower than the existing traditional lamps, and compared with the current energy-saving lamps, LEDs are more energy-efficient, power-saving, in life, environmental protection, etc. There are incomparable advantages in terms of aspects. Therefore, an intelligent switch control system is designed to cooperate with LED lamps to promote new technologies of novelty, energy saving and low carbon to each family and enterprise.

1 The basic idea of ​​design

The use of single-chip microcomputer to achieve intelligent switch control is closely related to the development of single-chip chip technology. The earliest single-chip microcomputers can only be developed using assembly language, and there are many peripheral circuits. Therefore, the hardware and interface design level of the designers are required to be high, resulting in high design and production costs. The current MCU chip has high integration, has a fast CPU speed, has built-in flash memory, MD conversion, PWM output, 16-bit timer, oscillation and other functions. Its biggest advantage is that there are few peripheral circuits compared with the past, and can be used in C language. Assembly language or a mixture of both programming greatly reduces development and production costs. Therefore, the control system will be developed based on the microcontroller.

The control panel of the novel and practical LED lighting intelligent switch control system is composed of 8051 single-chip microcomputer, infrared sensor and photoresistor. Among them, the 8051 single-chip microcomputer controls the detection signals such as ambient brightness and presence of others, and focuses on effective and reliable. It controls energy-saving LED lamps and other lighting electrical equipment connected with the single-chip microcomputer to realize various design functions. The combination of the photoresistor and the infrared sensor can achieve accurate control of each connected electrical device, and the control function can be expanded by the program processing of the single chip microcomputer, for example, the sensing is turned on, the time delay is turned off, and the like. This greatly facilitates people's daily life, and also saves electricity and improves the safety of electricity use. Therefore, three considerations and four technical indicators must be considered in the overall design process of the intelligent switch control system, as shown in Table 1.

Table 1 Notes and technical indicators

2 working principle

The intelligent switch control system has illumination detection technology, which can apply advanced infrared sensors under different environmental brightness conditions to actively detect the movement state of the human body approaching and moving, and turn on or off the LED lamps by the control of the single chip microcomputer, thereby saving electric energy. Reduce carbon emissions. Especially for the elderly at night, it is possible to save the trouble of finding a light switch and to ensure the safety of its lighting. At the same time, it also eliminates the concern of family members to forget to turn off the lamps and improve the safety of electricity consumption. Figure 1 is a block diagram of the control circuit. The combination detection circuit consisting of an infrared sensor and a photoresistor is used for detection, and the external signal can be accurately detected. Therefore, the signal is processed by the single chip microcomputer. The basic circuit composed of infrared, photoresistor and single-chip microcomputer has simple structure, small wiring and high reliability, which greatly reduces the price of the total circuit, and facilitates the inspection and maintenance in the future, and can also realize the control function by adjusting the switching elements. The expansion has improved the practicality of the intelligent switch control system.

Figure 1 control circuit block diagram

The intelligent switch control system uses the STCl2C5410AD series 20-pin package 8051 single-chip microcomputer. The MCU has 15 input and output ports. Except for the detection signal, one input port can be used for switch control. Figure 2 is a partial schematic diagram of the system. The control system will use a part of the port as the manual switch input, and the other part of the port is used as the action control of the corresponding relay, so that people can install most of the LED lamps or other lighting appliances in the room, and reduce the daily routine. The cost of use in life.

Figure 2 System part schematic

3 system software design

The system adopts two-switch control. If the environment does not reach the condition of automatic opening, it can be manually controlled by the button according to individual needs, or the opening condition can be manually adjusted to adapt to changes in the environment. Since there are multiple input and output terminals in the single-chip microcomputer, we can use these ports to change the electrical products such as electric fans and exhaust fans other than LED lamps in the home from manual switches to intelligent switch controls. The control system is mainly used for controlling green light source LED lamps, which has long service life, energy saving and no toxic and harmful substances such as lead and mercury. It can save 50% compared with traditional lamps, and the single chip does not have the specified time. The input signal will also go to sleep, reduce power consumption, and conform to the green, low-carbon and energy-saving fashion. Figure 3 is a flow chart of the system programming.

Figure 3 system programming flow chart

Here are some of the programming source code:

4 Conclusion

By designing a control circuit and system program consisting of 8051 single-chip microcomputer, infrared sensor, photoresistor, etc., it is possible to complete one-way intelligent input, and multi-channel switch output such as relay or thyristor to control DC and AC power. Thereby controlling energy-saving LED lamps and other lighting appliances to achieve various predetermined functions. Practice has proved that the circuit is reliable, practical and feasible, which facilitates people's daily life, reduces energy consumption, reduces carbon emissions, and protects the environment.

Edit: Cedar

As LCD display in YFJ company that we usually use it to military grade battery ,especially Lithium-ion batteries ,for these battery applications ,we have obvious advantage is that we focus more on shor circuit protection which we follow the US military standard.

Short circuit protection:The following test shall be performed. Charge batteriesas specified in  ; use of 4.6.3 is permitted. Measure and record the OCV. Short each battery across all the positive and negative terminals with a total external resistance not greater than 50 milliohms. After one hour remove the short from across the terminals. Measure and record the OCV. Stabilize batteries at the normal conditions of 4.3.1 for not less than 2 hours. Chargebatteries in accordance with 4.6; use of 4.6.3 is permitted. Stabilize batteries at normal conditions for not less than 2 hours, then discharge the battery in accordance with 4.7.2.3. The battery shall meet the requirements of 3.7.2.3.

Li-Ion Battery With Lcd Display 

Charge voltage:                                 16.8V

Nominal voltage :                               14.8V  (4S7P)

Initial impedance :                            120mΩ

Nominal capacity:                             19.6Ah

Minimum capacity:                            19.4Ah

Communication methods :                  SMBUS data communication

Electricity quantity show:                    LCD Electricity quantity show

Charge current:                                Standard Charging::0.2C5A (3.9A)

  Rapid charge:                                 0.5C5A C(9.8A) Max

Standard Charging method :              3.9A(0.2C5A) CC(constant current)charge to 16.8V,then CV(constant voltage 16.8V)charge till charge current decline to ≤196mA(≈0.01C5A)

Charging time:Standard Charging:      6.5hours(Ref.)

Rapid charge:                                   3.5 hours(Ref.)

Max.discharge current:                      9.8A(0.5C5A)

Discharge cut-off voltage:                 10.0V

Cycle life (0.2C5A/0.2C5A) :              500 items,≧80%DOD; 300 times,≧80%DOD

Operating temperature :                   Charging:  0℃~45℃

                                                     Discharging:-20℃~+60℃

10

Li-ion Battery With LCD Display

Li-Ion Battery With Lcd Display,Battery Charger With Lcd Display,Battery Pack With Lcd Display,Rechargeable Battery Pack With Lcd Display

YFJ TECHNOLOGY (HK) CO.,LIMITED , http://www.yfjpower.com