The control device of LED intelligent desk lamp
Technical field
The utility model relates generally to the desk lamp field, relates in particular to a kind of control device of LED intelligent desk lamp.
Background technology
The LED desk lamp is exactly with LED(Light Emitting Diode) be light emitting diode, be the desk lamp of light source, LED is a kind of solid-state semiconductor devices, it can directly be converted into light to electricity.
The LED illumination is solid-state illumination, as the third generation lighting engineering behind incandescent lamp, fluorescent lamp, have energy-saving and environmental protection, safe and reliable characteristics, the Future Ten year that solid state light emitter is had an optimistic view of by industry is replaced the new type light source that the traditional lighting utensil has potentiality, represents the future of lighting engineering.The LED desk lamp is typical green illumination light product-derived, and the product that illumination is promoted the use of as national green has broad application prospects.
In the application of reality, still with same power light-emitting, there is waste of energy in discovery LED lamp when peripheral brightness is large.Secondly because there are positively related relation in caloric value and electric current of LED, warming-up effect the life-span of LED, so under unnecessary brightness, also reduced the life-span of LED.Yet, when LED in peripheral brightness hour, the LED lamp can not provide enough and appropriate luminosity, has affected so again reading, causes visual fatigue.
The utility model content
The utility model purpose is exactly in order to remedy the defective of prior art, a kind of control device with LED intelligent desk lamp of energy-conservation and automatic dimming function to be provided.
The utility model is achieved through the following technical solutions:
The control device of LED intelligent desk lamp, include the led array circuit, it is characterized in that: also include single-chip computer control system, pyroelectric infrared sensor, photo resistance, manual control module, the control core of described single-chip computer control system is single-chip microcomputer, the signal output part of described pyroelectric infrared sensor accesses single-chip microcomputer by instrument amplifier, described photo resistance accesses single-chip microcomputer by AD converter, described manual control module includes the switch of a plurality of parallel connections, one end of each switch altogether, the other end accesses respectively each control port of single-chip microcomputer, input has PWM dimmer procedure, the external led array circuit of the PWM output port of single-chip microcomputer in the single-chip microcomputer.
Described led array circuit adopts the circuit combination of the direct insertion positive white light straw hat formula LED of 5 and 8 strings.
Described single-chip computer control system adopts the AT89C2051 single-chip microcomputer.
Described instrument amplifier is the instrument amplifier of four high guaily unit (LP2902M).
The chip of described AD converter is ADC0808 analog-digital conversion chip.
Described manual control module includes the key switch of four parallel connections.
Principle of the present utility model is:
The utility model includes manual control and automatically controls two kinds of patterns, and automatic control function can not use when manually controlling, and manually control is divided into different gears, comes the brightness of adjustable desk lamp; Automatically control includes pyroelectric infrared sensor and photo resistance, and pyroelectric infrared sensor is experienced human body infrared signal, and signal amplifies, inputs to single-chip microcomputer after relatively through instrument amplifier, judges by the desk lamp whether the people is arranged, and people Ze Kai is arranged, and nobody then closes; The other brightness of desk lamp is experienced in photo resistance, the voltage signal of photo resistance is converted to data signal through AD converter and inputs to single-chip microcomputer, according to the PWM dimmer procedure in the single-chip microcomputer and hand control and automation changeover program, under the prerequisite that does not change the PWM square-wave cycle, adjust the PWM control register of single-chip microcomputer by the method for software and adjust the dutycycle of PWM, thereby control the supply current to the led array circuit.
The utility model has the advantages that:
(1) environmental protection: pollution-free, ultraviolet, infrared ray and heat radiation; (2) low power design: power consumption in 150 hours just once, desk lamp is providing in the situation of sufficient light, power is the smaller the better, the light source that adopts semiconductor technology to make has high electricity conversion, allows electric energy can become to greatest extent light;
(3) long-life light source: need not change the bulb in 10 years, be 100 times of common bulb; (4) the light emitting source toxic heavy metal such as tungstenic, mercury not: semiconductor light-emitting source does not have the tungsten filament in the incandescent lamp not have the mercury of fluorescent lamp, electricity-saving lamp the inside yet;
(5) safety: 12V low-voltage DC supply; Without holding breakable glass component, guarantee user's safety; (6) without stroboscopic, not dazzling, adopt direct current supply without ultraviolet semiconductor light sources, the stroboscopic that does not have Alternating Current Power Supply to produce, senior LGP is looked at straight the light soften handled not dazzling, semiconductor light sources spectrum is controlled, stops the ultraviolet ray supervened fully, uses eye not bitterly for a long time; (7) higher colour temperature, refrigerant light sensation.
Description of drawings
Fig. 1 is structured flowchart of the present utility model.
Fig. 2 is circuit diagram of the present utility model.
Fig. 3 is the schematic diagram of manual control module of the present utility model.
Fig. 4 is flow chart of the present utility model.
The specific embodiment
Shown in Fig. 1-4, the control device of LED intelligent desk lamp, include led array circuit 1, single-chip computer control system 2, pyroelectric infrared sensor 3, photo resistance 4, manual control module 5, the control core of single-chip computer control system 2 is single-chip microcomputer, the signal output part of pyroelectric infrared sensor 3 is by instrument amplifier 6 access single-chip microcomputers, photo resistance 4 is by AD converter 7 access single-chip microcomputers, manual control module 5 includes the switch of a plurality of parallel connections, one end of each switch altogether, the other end accesses respectively each control port of single-chip microcomputer, input has PWM dimmer procedure and hand control and automation changeover program, the PWM output port 8 external led array circuit 1 of single-chip microcomputer in the single-chip microcomputer.
Led array circuit 1 adopts the circuit combination of the direct insertion positive white light straw hat formula LED of 5 and 8 strings.
Single-chip computer control system 2 adopts the AT89C2051 single-chip microcomputer.
Instrument amplifier 6 is the instrument amplifier of four high guaily unit (LP2902M).
The chip of AD converter 7 is ADC0808 analog-digital conversion chip.
Manual control module 5 includes the key switch of four parallel connections.
The utility model is take STC89C2051 as control core, by photo resistance induction luminosity, and utilize the PWM light regulating technology LED to be carried out the automatic adjusting of luminosity, and add that infrared ray sensor is as automatically control, light fixture autoshutdown when realizing nobody, light fixture automatic illuminating when the people is arranged, the people walks rear light fixture automatic distinguishing, can really accomplish the energy saving of throwing light on manual control to be set simultaneously.
Pyroelectric infrared sensor is with having the thermal detector that the thermoelectricity capability material is made, and may be that industrial circle uses often one of infrared sensor.The signal of infrared sensor output is very little, must be amplified and to be used, the instrument amplifier that therefore small-signal of infrared sensor must be passed through a four high guaily unit (LP2902M) amplifies and comparison, detects effective triggering signal, gives single-chip microcomputer and processes.
Photo-resistor is the resistor that utilizes a kind of resistance value that semi-conductive photoelectric effect makes to change with the power of incident light; Incident intensity, resistance reduces, and a little less than the incident light, resistance increases.Photo-resistor generally is used for the measurement of light, control and the opto-electronic conversion of light.Therefore, constantly gather the variation that photo resistance voltage over the ground just can be known desk lamp periphery light intensity.Advanced again AD converter spare AD0808 and converted thereof into data signal, gave single-chip microcomputer, so that single-chip microcomputer is better processed.
By button automatically control and manual control between switching, when being in manual control, stop the work of automatic control system.Manually control is divided into third gear, exports different PWM dutycycles the electric current of LED is controlled, thereby realized manual adjustments to luminosity.
The brightness of LED is subjected to Current Control, regulates the brightness of LED lamp by the control electric current.The PWM light modulation is exactly the PWM port that utilizes single-chip microcomputer to have, and under the prerequisite that does not change the PWM square-wave cycle, adjusts the PWM control register of single-chip microcomputer by the method for software and adjusts the dutycycle of PWM, thereby control supply current.The desired single-chip microcomputer of the utility model must have ADC port and these two necessary conditions of PWM port, and the figure place of ADC is as far as possible high in addition, and the operating rate of single-chip microcomputer as quickly as possible.Before adjusting charging current, single-chip microcomputer reads first the size of charging current fast, then charging current and the actual charging current that reads set is compared, if actual current dutycycle from PWM to the direction that increases charging current that then adjust less than normal; If actual current dutycycle from PWM to the direction that reduces charging current that then adjust bigger than normal, thereby the light modulation of realization LED.