WO2018176460A1 - Device and method for adjusting brightness of indoor lighting - Google Patents

Device and method for adjusting brightness of indoor lighting Download PDF

Info

Publication number
WO2018176460A1
WO2018176460A1 PCT/CN2017/079278 CN2017079278W WO2018176460A1 WO 2018176460 A1 WO2018176460 A1 WO 2018176460A1 CN 2017079278 W CN2017079278 W CN 2017079278W WO 2018176460 A1 WO2018176460 A1 WO 2018176460A1
Authority
WO
WIPO (PCT)
Prior art keywords
control unit
unit
lamp
main control
light
Prior art date
Application number
PCT/CN2017/079278
Other languages
French (fr)
Chinese (zh)
Inventor
杜文静
李慧慧
王磊
Original Assignee
中国科学院深圳先进技术研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国科学院深圳先进技术研究院 filed Critical 中国科学院深圳先进技术研究院
Priority to PCT/CN2017/079278 priority Critical patent/WO2018176460A1/en
Publication of WO2018176460A1 publication Critical patent/WO2018176460A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the invention relates to a lighting control device, in particular to an indoor lighting brightness adjusting device and method.
  • the patent number: 201510401157.X solves the phenomenon that the power is not turned off by the corridor or the indoor lighting power supply, and a stable and reliable light adjusting device is proposed, which solves the problem that the light can be based on the external light intensity.
  • the function of adjusting the brightness of the light also realizes the kinetic energy of automatically turning off the power of the light when no one is used, saving the power and eliminating the trouble of turning off the power, but the system
  • the light energy that the human eye can bear is not explored. When the light is strong or weak, it will cause certain damage to human vision. Therefore, maintaining a constant light intensity in the room helps protect the human eyesight.
  • the system measures to reduce the brightness of the light bulb when the indoor light intensity is lower than the constant light.
  • the system adjusts the light intensity to a constant level. This adjustment is made with the constant light intensity value set by the user, which has a certain protective effect on the human eye.
  • the technical problem to be solved by the present invention is that, in view of the deficiencies of the prior art, an indoor light brightness adjusting device and method capable of flexibly adjusting the brightness of the light according to the intensity of the external light and allowing the user to self-set the indoor light intensity value are provided.
  • the present invention adopts the following technical solutions.
  • An indoor light brightness adjusting device comprises: an optical signal collecting unit for collecting external light intensity and outputting in the form of an electric signal; a button unit for inputting a control command; and a light control unit connected to the lamp power supply
  • the light control unit is configured to access the PWM driving signal and control the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal; a main control unit, the optical signal collecting unit, the button unit, and The light control unit is electrically connected to the main control unit, and the main control unit is configured to: receive an electrical signal output by the optical signal acquisition unit, and when the ambient light intensity is lower than a preset value, to the light control unit And outputting a PWM driving signal; and receiving a control command input by the button unit, and adjusting a duty ratio of the PWM driving signal according to the control command, so that an input current of the lamp is adjusted accordingly.
  • the main control unit is pre-stored with a plurality of duty ratios
  • the control instruction entered by the button unit includes a plurality of key values
  • the key values are in one-to-one correspondence with the duty ratio, when the master control Unit received button
  • the key value of the key unit is entered, the duty ratio matching the key value is first queried, and then the PWM drive signal is generated according to the duty ratio and transmitted to the lamp control unit.
  • a display unit is further included, and the display unit is electrically connected to the main control unit, and the display unit is configured to display the key value.
  • a power conversion unit is further included, and the power conversion unit is configured to provide a DC supply voltage.
  • the communication interface is further connected between the main control unit and the upper computer, and the communication device establishes communication between the upper computer and the main control unit.
  • the optical signal collecting unit comprises a photoresistor and an analog-to-digital conversion chip
  • the photoresistor is connected to an analog signal end of the analog-to-digital conversion chip
  • the digital signal end of the analog-to-digital conversion chip is connected to the main control unit
  • the photoresistor is used to sense an external light intensity to generate an electrical signal
  • the analog-to-digital conversion chip is used for analog-to-digital conversion of the electrical signal output by the photoresistor and transmitted to the main control unit.
  • the photoresistor is connected in series with a high-precision potentiometer, and the two are connected in series and connected between the high potential and the ground, and the connection point of the photoresistor and the high-precision potentiometer is connected to the analog signal end of the analog-to-digital converter chip. .
  • the lamp control unit comprises a rectifier bridge, an NPN tube, an optocoupler and a MOS tube, wherein the AC side of the rectifier bridge is used to connect the lamp power supply, and the DC side positive pole of the rectifier bridge is connected to one end of the lamp.
  • the drain of the MOS transistor is connected to the other end of the lamp, the source of the MOS transistor is grounded, the base of the NPN tube is connected to the main control unit, and the collector of the NPN tube is used to access a high potential.
  • the emitter of the NPN tube is grounded through the LED of the optocoupler, the first end of the optocoupler switch is used to access the optocoupler driving voltage, and the second end of the optocoupler switch is connected to the gate of the MOS transistor
  • the lamp control unit outputs a PWM driving signal to the base of the NPN tube, the optocoupler and the MOS transistor are driven to perform an on-off operation with the PWM driving signal to adjust the current flowing through the lamp.
  • a method for adjusting the brightness of an indoor light is implemented based on a device, the device comprises an optical signal collecting unit, a button unit, a light control unit and a main control unit, wherein the light control unit is connected to the lamp power supply and the lamp
  • the optical signal collecting unit, the button unit and the light control unit are respectively electrically connected to the main control unit, and the method includes the following steps: Step S1, the optical signal collecting unit collects external light intensity and takes an electrical signal form.
  • step S2 the main control unit receives an electrical signal output by the optical signal collecting unit, and outputs a PWM driving signal to the lighting control unit when the ambient light intensity is lower than a preset value;
  • the light control unit is connected to the PWM driving signal, and controls the magnitude of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
  • step S4 the control command is input by using the button unit;
  • step S5 the main control unit receives the button unit input. Control command, and adjust the duty ratio of the PWM driving signal according to the control command, so that the input current of the lamp is adjusted accordingly.
  • the main control unit is pre-stored with a plurality of duty ratios, and the control command entered by the button unit includes a plurality of key values, and the key values are in one-to-one correspondence with the duty ratio, in step S5.
  • the main control unit receives the key value typed by the button unit, firstly query the duty ratio matching the key value, and then generate a PWM driving signal according to the duty ratio and transmit the signal to the lamp control unit.
  • the optical signal collecting unit outputs an external light intensity and outputs an electrical signal to the main control unit, and when the external light intensity is lower than a preset value, the main control unit sends the light control unit to the light control unit.
  • the light control unit controls a current amount transmitted by the lamp power source to the lamp according to the PWM driving signal; when the user self-adjusts, the button unit is used to input a control command to the main control unit, the main The control unit adjusts the duty ratio of the PWM driving signal according to the control command to adjust the input current of the lamp.
  • the invention realizes flexible adjustment of the brightness of the light according to the intensity of the external light.
  • the user can also set the light intensity to achieve a constant light intensity in the room, thereby avoiding the result of the artificial switch light. Do not And it achieves the effect of saving energy and protecting vision.
  • 1 is a block diagram showing the composition of an indoor light level adjusting device of the present invention.
  • FIG. 2 is a circuit schematic diagram of an optical signal acquisition unit.
  • Figure 3 is a schematic diagram of the circuit of the main control unit.
  • Figure 4 is a circuit schematic of the lamp control unit.
  • Figure 5 is a circuit schematic of the display unit.
  • Figure 6 is a circuit schematic of the communication interface.
  • FIG. 7 is a circuit schematic diagram of a power conversion unit.
  • FIG. 8 is a flow chart of a method for adjusting brightness of an indoor light in a preferred embodiment of the present invention.
  • the invention discloses an indoor light brightness adjusting device. Please refer to FIG. 1 , which includes an optical signal collecting unit 1 , a button unit 2 , a light control unit 3 and a main control unit 4 , wherein:
  • the optical signal collecting unit 1 is configured to collect external light intensity and output in the form of an electrical signal
  • the button unit 2 is used to input a control command
  • the light control unit 3 is connected between the power source of the lamp and the lamp, and the lamp control unit 3 is configured to access the PWM driving signal, and control the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
  • the optical signal collecting unit 1, the button unit 2 and the light control unit 3 are electrically connected to the main control list Element 4, the main control unit 4 is used to:
  • the optical signal collecting unit 1 outputs an external light intensity and outputs an electrical signal to the main control unit 4.
  • the main control unit 4 sends the light control unit to the light control unit.
  • 3 output PWM driving signal to the light control unit 3, the light control unit 3 controls the magnitude of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
  • the key unit 2 is used to input the control to the main control unit 4
  • the main control unit 4 adjusts the duty ratio of the PWM driving signal according to the control instruction, so that the input current of the luminaire is adjusted accordingly.
  • the invention realizes flexible adjustment of the brightness of the light according to the intensity of the external light.
  • the user can also set the light intensity to achieve a constant light intensity in the room, thereby avoiding the result of the artificial switch light. It is inconvenient and achieves the effect of saving energy and protecting vision.
  • the present embodiment implements the selection of the duty ratio by using the look-up table.
  • the main control unit 4 pre-stores a plurality of duty ratios, and the control unit inputs the key unit 2
  • the method includes a plurality of key values, and the key values are in one-to-one correspondence with the duty ratio.
  • the main control unit 4 receives the key value typed by the button unit 2, first query a duty ratio matching the key value. Then, the PWM driving signal is generated according to the duty ratio and transmitted to the lamp control unit 3.
  • the main control unit 4 includes a single-chip microcomputer of the type STC89C52 and its peripheral circuits.
  • the STC89C52 is a low-power, high-performance CMOS 8-bit microcontroller produced by STC, with 8K in System programmable flash memory.
  • the STC89C52 uses the classic MCS-51 core, but has made a lot of improvements to make the chip have the features that the traditional 51 microcontroller does not have.
  • the STC89C52 provides a highly flexible, ultra-efficient solution for many embedded control applications.
  • the STC89C52 can be reduced to 0Hz static logic operation, and supports two software selectable power saving modes. In idle mode, the CPU stops working, allowing RAM, timer/counter, serial port, and interrupt to continue to work. In the power-down protection mode, the RAM contents are saved, the oscillator is frozen, and all operations of the microcontroller are stopped until the next interrupt or hardware reset.
  • the maximum operating frequency is 35MHz, and 6T/12T is optional.
  • the reset circuit is a circuit for returning the circuit to the initial state, and the reset circuit is an indispensable part for ensuring stable and reliable operation of the single chip system circuit.
  • the crystal oscillator circuit mainly supplies the working signal pulse to the single chip microcomputer. This pulse is the working speed of the single chip microcomputer.
  • a display unit 5 is further included.
  • the display unit 5 is electrically connected to the main control unit 4, and the display unit 5 is configured to display the key value.
  • the embodiment adopts a digital tube display mode, and the digital tube is a display device frequently used in a single chip system.
  • the connection to different digital tube circuits is also different.
  • We choose the four-in-one digital tube, and the segment (a, b, c, d, e, f, g, dp) of the digital tube is controlled by the PO port.
  • the I/O port resources of the MCU are limited. Therefore, we need to use the octal three-state non-inverting transparent latch included in the 74HC573 chip to drive the 8-bit digital tube.
  • a power conversion unit 6 is further included, and the power conversion unit 6 is configured to provide a straight Current supply voltage.
  • the power conversion unit 6 is powered by a 220V, 50 Hz AC power source.
  • a power supply circuit composed of a transformer, a bridge rectifier circuit, a filter circuit, and a voltage stabilization circuit is built, including 220V to 12V and 5V.
  • the 220V power supply poses certain dangers, the advantage of this solution is that it does not have to worry about the normal operation of the system due to the drop in the power supply voltage.
  • two voltage regulator chips, LM7812 and LM7805 are used to stabilize the voltage.
  • the electric shock will be accidentally touched, and the exposed part of the power supply is sealed with hot melt adhesive at one time.
  • the embodiment also has a host computer communication function, specifically, the device further includes a communication interface 7, the communication interface 7 is electrically connected between the main control unit 4 and the upper computer, The communication interface 7 is used to establish communication between the host computer and the main control unit 4.
  • the data transmission interface is the hardware foundation of data transmission, and is also an important component of data communication and computer network.
  • the data transmission interface of the MCU itself is mainly 8-bit or 16-bit parallel data interface and full-duplex serial communication interface.
  • MAX232 is a charge pump chip, which has the advantages of low power consumption, single power supply, low price, etc. It can be used as a serial interface circuit that conforms to the 232 standard between the single-chip microcomputer and the single-chip microcomputer, and between the single-chip microcomputer and the PC serial port.
  • the optical signal acquisition unit 1 includes a photoresistor D1 and an analog-to-digital conversion chip U2.
  • the photoresistor D1 is connected to an analog signal terminal of the analog-to-digital conversion chip U2.
  • the digital signal end of the chip U2 is connected to the main control unit 4, the photoresistor D1 is used to sense an external light intensity to generate an electrical signal, and the analog-to-digital conversion chip U2 is used for analog-to-digital conversion of the electrical signal outputted by the photoresistor D1.
  • the photoresistor is also called light pipe.
  • the commonly used materials are cadmium sulfide, and there are also materials such as selenium, aluminum sulfide, lead sulfide and barium sulfide. These materials have the property of rapidly decreasing the resistance under the irradiation of light of a specific wavelength. This is Since the carriers generated by the light are all involved in the conduction, the drifting motion is performed under the action of the applied electric field, the electrons rush to the positive pole of the power source, and the holes rush to the negative pole of the power source, so that the resistance value of the photoresistor is rapidly decreased. At this time, the change of the voltage value at the input end of the ADC0804 is affected to obtain the current light intensity.
  • the photoresistor D1 is connected in series with a high-precision potentiometer R2, which is connected in series and connected between the high potential and the ground, and the connection point and mode of the photoresistor D1 and the high-precision potentiometer R2.
  • the analog signal terminals of the digital conversion chip U2 are connected.
  • the lamp control unit 3 includes a rectifier bridge UB1, an NPN transistor Q2, an optical coupling U3, and a MOS transistor Q1.
  • the AC side of the rectifier bridge UB1 is used to connect the lamp power supply.
  • the DC side positive pole of the rectifier bridge UB1 is connected to one end of the lamp, the drain of the MOS transistor Q1 is connected to the other end of the lamp, the source of the MOS transistor Q1 is grounded, and the base of the NPN tube Q2 is connected to the main control.
  • the unit 4 the collector of the NPN tube Q2 is used to access a high potential, the emitter of the NPN tube Q2 is grounded through the light-emitting tube of the optocoupler U3, and the first end of the optocoupler U3 switch tube is used for accessing An optocoupler driving voltage, the second end of the optocoupler U3 switch is connected to the gate of the MOS transistor Q1, and when the lamp control unit 3 outputs a PWM driving signal to the base of the NPN tube Q2, the optocoupler is driven U3 and MOS transistor Q1 turn on and off with the PWM drive signal to regulate the current flowing through the lamp.
  • the lamp of the invention relates to a 220V, 60W incandescent lamp.
  • the 220V, 50HZ AC control bulb changes the brightness when the bulb is more obvious, it is converted to 220V, 100HZ DC through the rectifier bridge.
  • the single-chip microcomputer generates the PWM wave with different duty ratio according to the illumination value to control the PS521-1.
  • the optocoupler selected in this embodiment is a linear optocoupler, which can easily control the change of the output current according to the PWM of different duty cycles,
  • the output current of the IO port of the single-chip microcomputer is very weak.
  • the 220V voltage cannot be directly controlled by the optocoupler. Therefore, the high-voltage MOS transistor 2SK3878 is connected to the high-level ratio of the square wave to control the light-dark change value of the bulb.
  • the invention also discloses a method for adjusting the brightness of the indoor light, combined As shown in FIG. 1 and FIG. 8 , the method is implemented based on a device.
  • the device includes an optical signal collecting unit 1 , a button unit 2 , a light control unit 3 , and a main control unit 4 .
  • the light control unit 3 is connected.
  • the optical signal collecting unit 1, the button unit 2 and the light control unit 3 are electrically connected to the main control unit 4, respectively, and the method includes the following steps:
  • Step S1 the optical signal collecting unit 1 collects external light intensity and outputs it as an electrical signal
  • step S2 the main control unit 4 receives the electrical signal output by the optical signal collecting unit 1, and outputs a PWM driving signal to the lighting control unit 3 when the ambient light intensity is lower than a preset value;
  • Step S3 the lamp control unit 3 accesses the PWM driving signal, and controls the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
  • Step S4 using the button unit 2 to input a control instruction
  • step S5 the main control unit 4 receives the control command input by the button unit 2, and adjusts the duty ratio of the PWM driving signal according to the control command, so that the input current of the lamp is adjusted accordingly.
  • the main control unit 4 pre-stores a plurality of duty ratios, and the control command entered by the button unit 2 includes a plurality of key values, the key values and the duty ratio One-to-one correspondence, in the step S5, when the main control unit 4 receives the key value typed by the button unit 2, first queries the duty ratio matching the key value, and then generates a PWM drive according to the duty ratio. The signal is transmitted to the light control unit 3.
  • the brightness of the light can be flexibly adjusted according to the intensity of the external light to achieve the effect of saving energy and protecting vision.
  • the user can achieve a constant light intensity through the light intensity set by himself, which not only avoids the inconvenience of manually switching lights, but also saves energy and protects vision.
  • the present invention is a portable light brightness adjusting device, and the materials used are relatively low in the case of satisfying high performance; secondly, portable lighting
  • the brightness adjusting device can be set by the user to suit the brightness intensity value of the eye, and the system can flexibly adjust the light intensity to a constant value by detecting the light intensity value in the environment; in addition, the present invention adjusts the light intensity to the human eye.
  • the light intensity not only protects vision, but also saves energy.

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

A device for adjusting the brightness of indoor lighting, comprising: a light signal collection unit (1), which is used to collect external light intensity and output the same in the form of an electric signal; a button unit (2), which is used to key in control instructions; a light control unit (3) connected between a lamp power supply and a lamp, the light control unit (3) being used to access a pulse width modulation (PWM) drive signal and control the magnitude of a current transmitted from the lamp power supply to the lamp according to the PWM drive signal; a main control unit (4), the light signal collection unit (1), the button unit (2), and the light control unit (3) being electrically connected to the main control unit (4) respectively, and the main control unit (4) being used to receive the electric signal outputted by the light signal collection unit (1), and when the external light intensity is lower than a preset value, output a PWM drive signal to the light control unit (3), as well as receive a control instruction inputted by the button unit (2), and adjust the duty cycle of the PWM drive signal according to the control instruction, such that the input current for the lamp is adjusted accordingly. The described device for adjusting the brightness of indoor lighting has advantageous effects, such as saving energy and protecting vision.

Description

一种室内灯光亮度调节装置及方法Indoor light brightness adjusting device and method 技术领域Technical field
本发明涉及照明控制装置,尤其涉及一种室内灯光亮度调节装置及方法。The invention relates to a lighting control device, in particular to an indoor lighting brightness adjusting device and method.
背景技术Background technique
能源与健康是当代社会的几大热门话题之一,节约能源,已经迫在眉睫。环顾我们的周围,能源浪费现象十分严重。我国政府为了“节能减排”以举国的财力、人力和物力,大量开发新能源,如风、水、核、太阳能等,政府为实现节能减排目的甚至动用行政命令,可是见效甚微,反而有上升的趋势。每逢冬、夏用电高峰,我国的大部分地区闹电荒,如果这种电荒现象频繁地出现,直接影响到我国企业的生产和生存,它将制衡我国国民经济的持续发展。作为无机能源的电能源,不能存储却必须合理利用。我国能源利用效率约为36.3%,比发达国家低10%,产品消耗与国际先进水平差距较大,浪费惊人。在能源危机和全球变暖日益严重的今天,绿色节能已经大道全球的共识。在生活中,我们会发现电能浪费相当严重,例如我们常常会因为下雨天或者阴天光线的灰暗打开灯而忘记关灯,一方面对电能是一种浪费,另一方面当外界光线变强时,强的灯光对我们的视力也产生了影响。Energy and health are among the hot topics of contemporary society, and energy conservation is imminent. Looking around us, energy waste is very serious. In order to "energy saving and emission reduction", the Chinese government has developed a large amount of new energy sources such as wind, water, nuclear and solar energy in order to achieve energy conservation and emission reduction. However, the government has even used administrative orders to achieve energy conservation and emission reduction, but it has little effect. There is an upward trend. In the winter and summer peaks, most of China's electricity shortages, if this power shortage phenomenon occurs frequently, directly affecting the production and survival of Chinese enterprises, it will balance the sustainable development of China's national economy. As an inorganic energy source, it cannot be stored but must be used rationally. China's energy utilization efficiency is about 36.3%, which is 10% lower than that of developed countries. The gap between product consumption and international advanced level is large, and waste is staggering. In today's energy crisis and global warming, green energy conservation has reached a global consensus. In life, we will find that the waste of electricity is quite serious. For example, we often forget to turn off the lights because of the darkness of the rain or the light of the cloudy sky. On the one hand, it is a waste of electricity, on the other hand, when the outside light becomes strong. Strong lighting also has an impact on our vision.
现有技术中,专利号:201510401157.X为解决无人时走廊或室内灯光电源无法自行关闭浪费电能的现象,提出了一种稳定可靠的灯光调节装置,该装置解决了灯光可以根据外界光强提调节灯光亮度的功能,也实现了无人时自动关闭灯光电源的动能,节约了电能也省去了人们关闭电源的麻烦,但是该系统 未对人眼能承受的光能进行探究,当光较强或较弱时对人视力都会产生一定的伤害。因此,保持室内恒定的光强,有助于保护人的视力,其次当外界光强使得室内的光强高于恒定光强时,系统进行降低灯泡亮度的措施,当室内光强低于恒定光强时,系统调节灯光强度达到恒定。这种随着使用者设置的室内恒定光强值而进行调节,对人眼具有一定的保护作用。In the prior art, the patent number: 201510401157.X solves the phenomenon that the power is not turned off by the corridor or the indoor lighting power supply, and a stable and reliable light adjusting device is proposed, which solves the problem that the light can be based on the external light intensity. The function of adjusting the brightness of the light also realizes the kinetic energy of automatically turning off the power of the light when no one is used, saving the power and eliminating the trouble of turning off the power, but the system The light energy that the human eye can bear is not explored. When the light is strong or weak, it will cause certain damage to human vision. Therefore, maintaining a constant light intensity in the room helps protect the human eyesight. Secondly, when the external light intensity makes the indoor light intensity higher than the constant light intensity, the system measures to reduce the brightness of the light bulb when the indoor light intensity is lower than the constant light. When strong, the system adjusts the light intensity to a constant level. This adjustment is made with the constant light intensity value set by the user, which has a certain protective effect on the human eye.
发明内容Summary of the invention
本发明要解决的技术问题在于,针对现有技术的不足,提供一种能根据外界光线的强弱而灵活调整灯光亮度、用户可自助设定室内光强值的室内灯光亮度调节装置及方法。The technical problem to be solved by the present invention is that, in view of the deficiencies of the prior art, an indoor light brightness adjusting device and method capable of flexibly adjusting the brightness of the light according to the intensity of the external light and allowing the user to self-set the indoor light intensity value are provided.
为解决上述技术问题,本发明采用如下技术方案。In order to solve the above technical problems, the present invention adopts the following technical solutions.
一种室内灯光亮度调节装置,其包括有:一光信号采集单元,用于采集外界光照强度并以电信号形式输出;一按键单元,用于键入控制指令;一灯控单元,连接于灯具电源与灯具之间,所述灯控单元用于接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;一主控单元,所述光信号采集单元、按键单元和灯控单元分别电性连接于主控单元,所述主控单元用于:接收所述光信号采集单元输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元输出PWM驱动信号;以及,接收所述按键单元输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。An indoor light brightness adjusting device comprises: an optical signal collecting unit for collecting external light intensity and outputting in the form of an electric signal; a button unit for inputting a control command; and a light control unit connected to the lamp power supply The light control unit is configured to access the PWM driving signal and control the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal; a main control unit, the optical signal collecting unit, the button unit, and The light control unit is electrically connected to the main control unit, and the main control unit is configured to: receive an electrical signal output by the optical signal acquisition unit, and when the ambient light intensity is lower than a preset value, to the light control unit And outputting a PWM driving signal; and receiving a control command input by the button unit, and adjusting a duty ratio of the PWM driving signal according to the control command, so that an input current of the lamp is adjusted accordingly.
优选地,所述主控单元预存储有多个占空比,所述按键单元键入的控制指令包括多个键值,所述键值与所述占空比一一对应,当所述主控单元接收到按 键单元键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元。Preferably, the main control unit is pre-stored with a plurality of duty ratios, and the control instruction entered by the button unit includes a plurality of key values, and the key values are in one-to-one correspondence with the duty ratio, when the master control Unit received button When the key value of the key unit is entered, the duty ratio matching the key value is first queried, and then the PWM drive signal is generated according to the duty ratio and transmitted to the lamp control unit.
优选地,还包括有显示单元,所述显示单元电性连接于主控单元,所述显示单元用于显示所述键值。Preferably, a display unit is further included, and the display unit is electrically connected to the main control unit, and the display unit is configured to display the key value.
优选地,还包括有电源转换单元,所述电源转换单元用于提供直流供电电压。Preferably, a power conversion unit is further included, and the power conversion unit is configured to provide a DC supply voltage.
优选地,还包括有通信接口,所述通信接口电性连接于主控单元与上位机之间,藉由所述通信接口而令上位机与主控单元建立通信。Preferably, the communication interface is further connected between the main control unit and the upper computer, and the communication device establishes communication between the upper computer and the main control unit.
优选地,光信号采集单元包括有光敏电阻和模数转换芯片,所述光敏电阻连接于模数转换芯片的模拟信号端,所述模数转换芯片的数字信号端连接于主控单元,所述光敏电阻用于感应外界光照强度而产生电信号,所述模数转换芯片用于将光敏电阻输出的电信号进行模数转换后传输至主控单元。Preferably, the optical signal collecting unit comprises a photoresistor and an analog-to-digital conversion chip, the photoresistor is connected to an analog signal end of the analog-to-digital conversion chip, and the digital signal end of the analog-to-digital conversion chip is connected to the main control unit, The photoresistor is used to sense an external light intensity to generate an electrical signal, and the analog-to-digital conversion chip is used for analog-to-digital conversion of the electrical signal output by the photoresistor and transmitted to the main control unit.
优选地,所述光敏电阻串联有高精度电位器,二者串联后连接于高电位与地之间,所述光敏电阻与高精度电位器的连接点与模数转换芯片的模拟信号端相连接。Preferably, the photoresistor is connected in series with a high-precision potentiometer, and the two are connected in series and connected between the high potential and the ground, and the connection point of the photoresistor and the high-precision potentiometer is connected to the analog signal end of the analog-to-digital converter chip. .
优选地,所述灯控单元包括有一整流桥、NPN管、光耦和MOS管,所述整流桥的交流侧用于连接灯具电源,所述整流桥的直流侧正极连接于灯具的一端,所述MOS管的漏极连接于灯具的另一端,所述MOS管的源极接地,所述NPN管的基极连接于主控单元,所述NPN管的集电极用于接入高电位,所述NPN管的发射极通过光耦的发光管接地,所述光耦开关管的第一端用于接入光耦驱动电压,所述光耦开关管的第二端连接于MOS管的栅极,当所述灯控单元向NPN管的基极输出PWM驱动信号时,驱使所述光耦和MOS管随着PWM驱动信号而发生通断动作,以调节流过灯具的电流。 Preferably, the lamp control unit comprises a rectifier bridge, an NPN tube, an optocoupler and a MOS tube, wherein the AC side of the rectifier bridge is used to connect the lamp power supply, and the DC side positive pole of the rectifier bridge is connected to one end of the lamp. The drain of the MOS transistor is connected to the other end of the lamp, the source of the MOS transistor is grounded, the base of the NPN tube is connected to the main control unit, and the collector of the NPN tube is used to access a high potential. The emitter of the NPN tube is grounded through the LED of the optocoupler, the first end of the optocoupler switch is used to access the optocoupler driving voltage, and the second end of the optocoupler switch is connected to the gate of the MOS transistor When the lamp control unit outputs a PWM driving signal to the base of the NPN tube, the optocoupler and the MOS transistor are driven to perform an on-off operation with the PWM driving signal to adjust the current flowing through the lamp.
一种室内灯光亮度调节方法,该方法基于一装置实现,所述装置包括有一光信号采集单元、一按键单元、一灯控单元及一主控单元,所述灯控单元连接于灯具电源与灯具之间,所述光信号采集单元、按键单元和灯控单元分别电性连接于主控单元,所述方法包括如下步骤:步骤S1,所述光信号采集单元采集外界光照强度并以电信号形式输出;步骤S2,所述主控单元接收所述光信号采集单元输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元输出PWM驱动信号;步骤S3,所述灯控单元接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;步骤S4,利用按键单元键入控制指令;步骤S5,所述主控单元接收所述按键单元输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。A method for adjusting the brightness of an indoor light, the method is implemented based on a device, the device comprises an optical signal collecting unit, a button unit, a light control unit and a main control unit, wherein the light control unit is connected to the lamp power supply and the lamp The optical signal collecting unit, the button unit and the light control unit are respectively electrically connected to the main control unit, and the method includes the following steps: Step S1, the optical signal collecting unit collects external light intensity and takes an electrical signal form. Outputting; in step S2, the main control unit receives an electrical signal output by the optical signal collecting unit, and outputs a PWM driving signal to the lighting control unit when the ambient light intensity is lower than a preset value; The light control unit is connected to the PWM driving signal, and controls the magnitude of the current transmitted by the lamp power source to the lamp according to the PWM driving signal; in step S4, the control command is input by using the button unit; in step S5, the main control unit receives the button unit input. Control command, and adjust the duty ratio of the PWM driving signal according to the control command, so that the input current of the lamp is adjusted accordingly.
优选地,所述主控单元预存储有多个占空比,所述按键单元键入的控制指令包括多个键值,所述键值与所述占空比一一对应,所述步骤S5中,当所述主控单元接收到按键单元键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元。Preferably, the main control unit is pre-stored with a plurality of duty ratios, and the control command entered by the button unit includes a plurality of key values, and the key values are in one-to-one correspondence with the duty ratio, in step S5. When the main control unit receives the key value typed by the button unit, firstly query the duty ratio matching the key value, and then generate a PWM driving signal according to the duty ratio and transmit the signal to the lamp control unit.
本发明公开的室内灯光亮度调节装置中,光信号采集单元采集外界光照强度后输出电信号至主控单元,当外界光照强度低于预设值时,所述主控单元向所述灯控单元输出PWM驱动信号至灯控单元,所述灯控单元根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;当用户自助调节时,利用按键单元向主控单元键入控制指令,所述主控单元根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。基于上述装置,本发明实现了根据外界光线强弱来灵活的调整灯光亮度,此外,用户还可以自己设置光强度,使得室内达到恒定的光强,不仅避免了因人为开关灯所带来的不 便,而且达到了节约能源和保护视力的效果。In the indoor light brightness adjusting device disclosed by the invention, the optical signal collecting unit outputs an external light intensity and outputs an electrical signal to the main control unit, and when the external light intensity is lower than a preset value, the main control unit sends the light control unit to the light control unit. Outputting a PWM driving signal to the light control unit, the light control unit controls a current amount transmitted by the lamp power source to the lamp according to the PWM driving signal; when the user self-adjusts, the button unit is used to input a control command to the main control unit, the main The control unit adjusts the duty ratio of the PWM driving signal according to the control command to adjust the input current of the lamp. Based on the above device, the invention realizes flexible adjustment of the brightness of the light according to the intensity of the external light. In addition, the user can also set the light intensity to achieve a constant light intensity in the room, thereby avoiding the result of the artificial switch light. Do not And it achieves the effect of saving energy and protecting vision.
附图说明DRAWINGS
图1为本发明室内灯光亮度调节装置的组成框图。1 is a block diagram showing the composition of an indoor light level adjusting device of the present invention.
图2为光信号采集单元的电路原理图。2 is a circuit schematic diagram of an optical signal acquisition unit.
图3为主控单元的电路原理图。Figure 3 is a schematic diagram of the circuit of the main control unit.
图4为灯控单元的电路原理图。Figure 4 is a circuit schematic of the lamp control unit.
图5为显示单元的电路原理图。Figure 5 is a circuit schematic of the display unit.
图6为通信接口的电路原理图。Figure 6 is a circuit schematic of the communication interface.
图7为电源转换单元的电路原理图。7 is a circuit schematic diagram of a power conversion unit.
图8为本发明优选实施例中室内灯光亮度调节方法的流程图。FIG. 8 is a flow chart of a method for adjusting brightness of an indoor light in a preferred embodiment of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作更加详细的描述。The invention will now be described in greater detail with reference to the drawings and embodiments.
本发明公开了一种室内灯光亮度调节装置,请参照图1,其包括有一光信号采集单元1、一按键单元2、一灯控单元3及一主控单元4,其中:The invention discloses an indoor light brightness adjusting device. Please refer to FIG. 1 , which includes an optical signal collecting unit 1 , a button unit 2 , a light control unit 3 and a main control unit 4 , wherein:
所述光信号采集单元1用于采集外界光照强度并以电信号形式输出;The optical signal collecting unit 1 is configured to collect external light intensity and output in the form of an electrical signal;
所述按键单元2用于键入控制指令;The button unit 2 is used to input a control command;
所述灯控单元3连接于灯具电源与灯具之间,所述灯控单元3用于接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;The light control unit 3 is connected between the power source of the lamp and the lamp, and the lamp control unit 3 is configured to access the PWM driving signal, and control the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
所述光信号采集单元1、按键单元2和灯控单元3分别电性连接于主控单 元4,所述主控单元4用于:The optical signal collecting unit 1, the button unit 2 and the light control unit 3 are electrically connected to the main control list Element 4, the main control unit 4 is used to:
接收所述光信号采集单元1输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元3输出PWM驱动信号;Receiving an electrical signal output by the optical signal collecting unit 1, and outputting a PWM driving signal to the lighting control unit 3 when the ambient light intensity is lower than a preset value;
以及,接收所述按键单元2输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。And receiving a control command input by the button unit 2, and adjusting a duty ratio of the PWM driving signal according to the control command, so that an input current of the lamp is adjusted accordingly.
上述室内灯光亮度调节装置中,光信号采集单元1采集外界光照强度后输出电信号至主控单元4,当外界光照强度低于预设值时,所述主控单元4向所述灯控单元3输出PWM驱动信号至灯控单元3,所述灯控单元3根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;当用户自助调节时,利用按键单元2向主控单元4键入控制指令,所述主控单元4根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。基于上述装置,本发明实现了根据外界光线强弱来灵活的调整灯光亮度,此外,用户还可以自己设置光强度,使得室内达到恒定的光强,不仅避免了因人为开关灯所带来的不便,而且达到了节约能源和保护视力的效果。In the indoor lighting brightness adjusting device, the optical signal collecting unit 1 outputs an external light intensity and outputs an electrical signal to the main control unit 4. When the external light intensity is lower than a preset value, the main control unit 4 sends the light control unit to the light control unit. 3 output PWM driving signal to the light control unit 3, the light control unit 3 controls the magnitude of the current transmitted by the lamp power source to the lamp according to the PWM driving signal; when the user self-adjusts, the key unit 2 is used to input the control to the main control unit 4 Instructing, the main control unit 4 adjusts the duty ratio of the PWM driving signal according to the control instruction, so that the input current of the luminaire is adjusted accordingly. Based on the above device, the invention realizes flexible adjustment of the brightness of the light according to the intensity of the external light. In addition, the user can also set the light intensity to achieve a constant light intensity in the room, thereby avoiding the result of the artificial switch light. It is inconvenient and achieves the effect of saving energy and protecting vision.
作为一种优选方式,本实施例采用查表方式实现了对占空比的选择,具体是指,所述主控单元4预存储有多个占空比,所述按键单元2键入的控制指令包括多个键值,所述键值与所述占空比一一对应,当所述主控单元4接收到按键单元2键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元3。As a preferred manner, the present embodiment implements the selection of the duty ratio by using the look-up table. Specifically, the main control unit 4 pre-stores a plurality of duty ratios, and the control unit inputs the key unit 2 The method includes a plurality of key values, and the key values are in one-to-one correspondence with the duty ratio. When the main control unit 4 receives the key value typed by the button unit 2, first query a duty ratio matching the key value. Then, the PWM driving signal is generated according to the duty ratio and transmitted to the lamp control unit 3.
本实施例中,请参照图3,主控单元4包括型号为STC89C52的单片机及其外围电路,其中,STC89C52是STC公司生产的一种低功耗、高性能CMOS8位微控制器,具有8K在系统可编程Flash存储器。STC89C52使用经典的MCS-51内核,但做了很多的改进使得芯片具有传统51单片机不具备的功能。 在单芯片上,拥有灵巧的8位CPU和在系统可编程Flash,使得STC89C52为众多嵌入式控制应用系统提供高灵活、超有效的解决方案。具有以下标准功能:8k字节Flash,512字节RAM,32位I/O口线,看门狗定时器,内置4KB EEPROM,MAX810复位电路,3个16位定时器/计数器,4个外部中断,一个7向量4级中断结构(兼容传统51的5向量2级中断结构),全双工串行口。另外STC89C52可降至0Hz静态逻辑操作,支持2种软件可选择节电模式。空闲模式下,CPU停止工作,允许RAM、定时器/计数器、串口、中断继续工作。掉电保护方式下,RAM内容被保存,振荡器被冻结,单片机一切工作停止,直到下一个中断或硬件复位为止。最高运作频率35MHz,6T/12T可选。In this embodiment, referring to FIG. 3, the main control unit 4 includes a single-chip microcomputer of the type STC89C52 and its peripheral circuits. Among them, the STC89C52 is a low-power, high-performance CMOS 8-bit microcontroller produced by STC, with 8K in System programmable flash memory. The STC89C52 uses the classic MCS-51 core, but has made a lot of improvements to make the chip have the features that the traditional 51 microcontroller does not have. On a single chip, with a smart 8-bit CPU and in-system programmable Flash, the STC89C52 provides a highly flexible, ultra-efficient solution for many embedded control applications. Has the following standard functions: 8k bytes of Flash, 512 bytes of RAM, 32-bit I/O line, watchdog timer, built-in 4KB EEPROM, MAX810 reset circuit, 3 16-bit timer/counters, 4 external interrupts , a 7-vector 4-level interrupt structure (compatible with the traditional 51 5-vector 2-level interrupt structure), full-duplex serial port. In addition, the STC89C52 can be reduced to 0Hz static logic operation, and supports two software selectable power saving modes. In idle mode, the CPU stops working, allowing RAM, timer/counter, serial port, and interrupt to continue to work. In the power-down protection mode, the RAM contents are saved, the oscillator is frozen, and all operations of the microcontroller are stopped until the next interrupt or hardware reset. The maximum operating frequency is 35MHz, and 6T/12T is optional.
在单片机的外围电路中,复位电路是一种用来使电路恢复到起始状态的电路,为确保单片机系统电路稳定可靠的工作,复位电路是必不可少的一部分。当上电时,C1充电,在10K电阻上出现电压,使得单片机复位;几毫秒后,C1充满电,电阻上的电压、电流降为0,使得单片机进入工作状态;工作期间,当按下开关S1,C1放电,电阻上出现电压,实现单片机复位。晶振电路主要是给单片机提供工作信号脉冲的,这个脉冲是单片机的工作速度。In the peripheral circuit of the single chip microcomputer, the reset circuit is a circuit for returning the circuit to the initial state, and the reset circuit is an indispensable part for ensuring stable and reliable operation of the single chip system circuit. When power is on, C1 is charged, and a voltage appears on the 10K resistor, so that the MCU resets; after a few milliseconds, C1 is fully charged, and the voltage and current on the resistor drop to 0, so that the MCU enters the working state; during operation, when the switch is pressed S1, C1 discharge, voltage appears on the resistor, and the microcontroller is reset. The crystal oscillator circuit mainly supplies the working signal pulse to the single chip microcomputer. This pulse is the working speed of the single chip microcomputer.
本实施例中,还包括有显示单元5,所述显示单元5电性连接于主控单元4,所述显示单元5用于显示所述键值。请参照图5,本实施例采用数码管显示方式,数码管是单片机系统中经常用到的显示器件。对于不同的数码管电路的接法也不一样。我们选择四位一体数码管,数码管的段(a、b、c、d、e、f、g、dp)选择亮灭是通过PO口控制的。单片机的I/O口资源是有限的,因此需要我们采用经过74HC573芯片所包含的八进制三态非反转透明锁存器实现8位数码管的驱动。In this embodiment, a display unit 5 is further included. The display unit 5 is electrically connected to the main control unit 4, and the display unit 5 is configured to display the key value. Referring to FIG. 5, the embodiment adopts a digital tube display mode, and the digital tube is a display device frequently used in a single chip system. The connection to different digital tube circuits is also different. We choose the four-in-one digital tube, and the segment (a, b, c, d, e, f, g, dp) of the digital tube is controlled by the PO port. The I/O port resources of the MCU are limited. Therefore, we need to use the octal three-state non-inverting transparent latch included in the 74HC573 chip to drive the 8-bit digital tube.
本实施例中,还包括有电源转换单元6,所述电源转换单元6用于提供直 流供电电压。请参照图7,电源转换单元6采用220V、50Hz交流电源供电。该电路中搭建一个由变压器,桥式整流电路,滤波电路,稳压电路组成的电源电路,其中包括220V转12V和5V。虽然220V的电源会带来一定的危险,但是此方案的优点是不用担心因电源电压下降而影响系统正常工作的问题。为了得到稳定的12V和5V电压采用LM7812和LM7805两个稳压芯片来稳定电压。电路调试过程中,考虑会不小心触电,一次将电源裸露的部分用热熔胶封住。In this embodiment, a power conversion unit 6 is further included, and the power conversion unit 6 is configured to provide a straight Current supply voltage. Referring to FIG. 7, the power conversion unit 6 is powered by a 220V, 50 Hz AC power source. In the circuit, a power supply circuit composed of a transformer, a bridge rectifier circuit, a filter circuit, and a voltage stabilization circuit is built, including 220V to 12V and 5V. Although the 220V power supply poses certain dangers, the advantage of this solution is that it does not have to worry about the normal operation of the system due to the drop in the power supply voltage. In order to obtain stable 12V and 5V voltage, two voltage regulator chips, LM7812 and LM7805, are used to stabilize the voltage. During the circuit debugging process, it is considered that the electric shock will be accidentally touched, and the exposed part of the power supply is sealed with hot melt adhesive at one time.
在此基础上,本实施例还具有上位机通信功能,具体是指,该装置还包括有通信接口7,所述通信接口7电性连接于主控单元4与上位机之间,藉由所述通信接口7而令上位机与主控单元4建立通信。请参照图6,数据传输接口是数据传输的硬件基础,也是数据通信、计算机网络的重要组成部分。单片机本身的数据传输接口主要为8位或16位并行数据接口、全双工串行通信接口,但是随着许多新的数据传输接口标准的不断涌现,需要对单片机的数据传输接口进行扩展。MAX232是电荷泵芯片,具有功耗低、工作电源为单电源、价格低等优点,可以用作单片机和单片机之间,单片机和PC机串口之间符合232标准的串行接口电路。On the basis of this, the embodiment also has a host computer communication function, specifically, the device further includes a communication interface 7, the communication interface 7 is electrically connected between the main control unit 4 and the upper computer, The communication interface 7 is used to establish communication between the host computer and the main control unit 4. Referring to FIG. 6, the data transmission interface is the hardware foundation of data transmission, and is also an important component of data communication and computer network. The data transmission interface of the MCU itself is mainly 8-bit or 16-bit parallel data interface and full-duplex serial communication interface. However, as many new data transmission interface standards continue to emerge, it is necessary to expand the data transmission interface of the MCU. MAX232 is a charge pump chip, which has the advantages of low power consumption, single power supply, low price, etc. It can be used as a serial interface circuit that conforms to the 232 standard between the single-chip microcomputer and the single-chip microcomputer, and between the single-chip microcomputer and the PC serial port.
作为一种优选方式,请参照图2,光信号采集单元1包括有光敏电阻D1和模数转换芯片U2,所述光敏电阻D1连接于模数转换芯片U2的模拟信号端,所述模数转换芯片U2的数字信号端连接于主控单元4,所述光敏电阻D1用于感应外界光照强度而产生电信号,所述模数转换芯片U2用于将光敏电阻D1输出的电信号进行模数转换后传输至主控单元4。其中,光敏电阻又称光导管,常用的制作材料为硫化镉,另外还有硒、硫化铝、硫化铅和硫化铋等材料。这些制作材料具有在特定波长的光照射下,其阻值迅速减小的特性。这是 由于光照产生的载流子都参与导电,在外加电场的作用下作漂移运动,电子奔向电源的正极,空穴奔向电源的负极,从而使光敏电阻器的阻值迅速下降。此时影响ADC0804输入端电压值的变化从而得到当前的光照强度。As a preferred manner, referring to FIG. 2, the optical signal acquisition unit 1 includes a photoresistor D1 and an analog-to-digital conversion chip U2. The photoresistor D1 is connected to an analog signal terminal of the analog-to-digital conversion chip U2. The digital signal end of the chip U2 is connected to the main control unit 4, the photoresistor D1 is used to sense an external light intensity to generate an electrical signal, and the analog-to-digital conversion chip U2 is used for analog-to-digital conversion of the electrical signal outputted by the photoresistor D1. After transmission to the main control unit 4. Among them, the photoresistor is also called light pipe. The commonly used materials are cadmium sulfide, and there are also materials such as selenium, aluminum sulfide, lead sulfide and barium sulfide. These materials have the property of rapidly decreasing the resistance under the irradiation of light of a specific wavelength. this is Since the carriers generated by the light are all involved in the conduction, the drifting motion is performed under the action of the applied electric field, the electrons rush to the positive pole of the power source, and the holes rush to the negative pole of the power source, so that the resistance value of the photoresistor is rapidly decreased. At this time, the change of the voltage value at the input end of the ADC0804 is affected to obtain the current light intensity.
为了进一步提高信号采集的精度,所述光敏电阻D1串联有高精度电位器R2,二者串联后连接于高电位与地之间,所述光敏电阻D1与高精度电位器R2的连接点与模数转换芯片U2的模拟信号端相连接。In order to further improve the accuracy of the signal acquisition, the photoresistor D1 is connected in series with a high-precision potentiometer R2, which is connected in series and connected between the high potential and the ground, and the connection point and mode of the photoresistor D1 and the high-precision potentiometer R2. The analog signal terminals of the digital conversion chip U2 are connected.
关于灯控部分,请参照图4,所述灯控单元3包括有一整流桥UB1、NPN管Q2、光耦U3和MOS管Q1,所述整流桥UB1的交流侧用于连接灯具电源,所述整流桥UB1的直流侧正极连接于灯具的一端,所述MOS管Q1的漏极连接于灯具的另一端,所述MOS管Q1的源极接地,所述NPN管Q2的基极连接于主控单元4,所述NPN管Q2的集电极用于接入高电位,所述NPN管Q2的发射极通过光耦U3的发光管接地,所述光耦U3开关管的第一端用于接入光耦驱动电压,所述光耦U3开关管的第二端连接于MOS管Q1的栅极,当所述灯控单元3向NPN管Q2的基极输出PWM驱动信号时,驱使所述光耦U3和MOS管Q1随着PWM驱动信号而发生通断动作,以调节流过灯具的电流。本发明涉及的灯具为220V,60W的白炽灯。考虑到用220V,50HZ的交流电控制灯泡亮度变化时闪烁较明显故通过整流桥将其变为220V,100HZ的直流电。单片机根据光照值产生不同占空比的PWM波来控制PS521-1,本实施例中选择的光耦为线性光耦,可以很容易的根据不同占空比的PWM来控制输出电流的变化,由于单片机的IO口输出电流很弱不能直接由光耦来控制220V电压,故接入高压MOS管2SK3878通过方波中高电平比例的变化来控制灯泡的亮暗变化值。Referring to FIG. 4, the lamp control unit 3 includes a rectifier bridge UB1, an NPN transistor Q2, an optical coupling U3, and a MOS transistor Q1. The AC side of the rectifier bridge UB1 is used to connect the lamp power supply. The DC side positive pole of the rectifier bridge UB1 is connected to one end of the lamp, the drain of the MOS transistor Q1 is connected to the other end of the lamp, the source of the MOS transistor Q1 is grounded, and the base of the NPN tube Q2 is connected to the main control. The unit 4, the collector of the NPN tube Q2 is used to access a high potential, the emitter of the NPN tube Q2 is grounded through the light-emitting tube of the optocoupler U3, and the first end of the optocoupler U3 switch tube is used for accessing An optocoupler driving voltage, the second end of the optocoupler U3 switch is connected to the gate of the MOS transistor Q1, and when the lamp control unit 3 outputs a PWM driving signal to the base of the NPN tube Q2, the optocoupler is driven U3 and MOS transistor Q1 turn on and off with the PWM drive signal to regulate the current flowing through the lamp. The lamp of the invention relates to a 220V, 60W incandescent lamp. Considering that the 220V, 50HZ AC control bulb changes the brightness when the bulb is more obvious, it is converted to 220V, 100HZ DC through the rectifier bridge. The single-chip microcomputer generates the PWM wave with different duty ratio according to the illumination value to control the PS521-1. The optocoupler selected in this embodiment is a linear optocoupler, which can easily control the change of the output current according to the PWM of different duty cycles, The output current of the IO port of the single-chip microcomputer is very weak. The 220V voltage cannot be directly controlled by the optocoupler. Therefore, the high-voltage MOS transistor 2SK3878 is connected to the high-level ratio of the square wave to control the light-dark change value of the bulb.
在上述装置的基础上,本发明还公开了一种室内灯光亮度调节方法,结合 图1和图8所示,该方法基于一装置实现,所述装置包括有一光信号采集单元1、一按键单元2、一灯控单元3及一主控单元4,所述灯控单元3连接于灯具电源与灯具之间,所述光信号采集单元1、按键单元2和灯控单元3分别电性连接于主控单元4,所述方法包括如下步骤:On the basis of the above device, the invention also discloses a method for adjusting the brightness of the indoor light, combined As shown in FIG. 1 and FIG. 8 , the method is implemented based on a device. The device includes an optical signal collecting unit 1 , a button unit 2 , a light control unit 3 , and a main control unit 4 . The light control unit 3 is connected. The optical signal collecting unit 1, the button unit 2 and the light control unit 3 are electrically connected to the main control unit 4, respectively, and the method includes the following steps:
步骤S1,所述光信号采集单元1采集外界光照强度并以电信号形式输出;Step S1, the optical signal collecting unit 1 collects external light intensity and outputs it as an electrical signal;
步骤S2,所述主控单元4接收所述光信号采集单元1输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元3输出PWM驱动信号;In step S2, the main control unit 4 receives the electrical signal output by the optical signal collecting unit 1, and outputs a PWM driving signal to the lighting control unit 3 when the ambient light intensity is lower than a preset value;
步骤S3,所述灯控单元3接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;Step S3, the lamp control unit 3 accesses the PWM driving signal, and controls the current of the current transmitted by the lamp power source to the lamp according to the PWM driving signal;
步骤S4,利用按键单元2键入控制指令;Step S4, using the button unit 2 to input a control instruction;
步骤S5,所述主控单元4接收所述按键单元2输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。In step S5, the main control unit 4 receives the control command input by the button unit 2, and adjusts the duty ratio of the PWM driving signal according to the control command, so that the input current of the lamp is adjusted accordingly.
关于占空比的选择和确定步骤,所述主控单元4预存储有多个占空比,所述按键单元2键入的控制指令包括多个键值,所述键值与所述占空比一一对应,所述步骤S5中,当所述主控单元4接收到按键单元2键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元3。Regarding the selection and determination steps of the duty ratio, the main control unit 4 pre-stores a plurality of duty ratios, and the control command entered by the button unit 2 includes a plurality of key values, the key values and the duty ratio One-to-one correspondence, in the step S5, when the main control unit 4 receives the key value typed by the button unit 2, first queries the duty ratio matching the key value, and then generates a PWM drive according to the duty ratio. The signal is transmitted to the light control unit 3.
本发明公开的室内灯光亮度调节装置及方法中,可根据外界光线强弱来灵活的调整灯光亮度,以达到节约能源和保护视力的效果。用户可通过自己设置的光强使室内达到恒定的光强,不仅避免了人为去开关灯的不便之处,而且能节约电能和保护视力。本发明相比现有技术而言,本发明为便携式灯光亮度调节装置,所用材料在满足性能高的情况下,成本较为低廉;其次,便携式灯光 亮度调节装置,可以由使用者自行设定适合自己眼睛承受的光亮强度值,系统通过检测环境中的光强值来灵活调节光强达到恒定值;此外,本发明通过调节光强达到人眼合适光强值,不仅保护了视力,而且节约了电能源。In the indoor light brightness adjusting device and method disclosed by the invention, the brightness of the light can be flexibly adjusted according to the intensity of the external light to achieve the effect of saving energy and protecting vision. The user can achieve a constant light intensity through the light intensity set by himself, which not only avoids the inconvenience of manually switching lights, but also saves energy and protects vision. Compared with the prior art, the present invention is a portable light brightness adjusting device, and the materials used are relatively low in the case of satisfying high performance; secondly, portable lighting The brightness adjusting device can be set by the user to suit the brightness intensity value of the eye, and the system can flexibly adjust the light intensity to a constant value by detecting the light intensity value in the environment; in addition, the present invention adjusts the light intensity to the human eye. The light intensity not only protects vision, but also saves energy.
以上所述只是本发明较佳的实施例,并不用于限制本发明,凡在本发明的技术范围内所做的修改、等同替换或者改进等,均应包含在本发明所保护的范围内。 The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. All modifications, equivalents, and improvements made within the technical scope of the present invention are intended to be included within the scope of the present invention.

Claims (10)

  1. 一种室内灯光亮度调节装置,其特征在于,包括有:An indoor light brightness adjusting device, comprising:
    一光信号采集单元(1),用于采集外界光照强度并以电信号形式输出;An optical signal collecting unit (1) is configured to collect external light intensity and output in the form of an electrical signal;
    一按键单元(2),用于键入控制指令;a button unit (2) for inputting a control command;
    一灯控单元(3),连接于灯具电源与灯具之间,所述灯控单元(3)用于接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;a light control unit (3) is connected between the lamp power supply and the lamp, the lamp control unit (3) is configured to access the PWM drive signal, and control the current transmitted by the lamp power source to the lamp according to the PWM drive signal;
    一主控单元(4),所述光信号采集单元(1)、按键单元(2)和灯控单元(3)分别电性连接于主控单元(4),所述主控单元(4)用于:a main control unit (4), the optical signal acquisition unit (1), the button unit (2) and the lamp control unit (3) are electrically connected to the main control unit (4), respectively, the main control unit (4) Used for:
    接收所述光信号采集单元(1)输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元(3)输出PWM驱动信号;Receiving an electrical signal output by the optical signal collecting unit (1), and outputting a PWM driving signal to the lighting control unit (3) when the ambient light intensity is lower than a preset value;
    以及,接收所述按键单元(2)输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。And receiving a control command input by the button unit (2), and adjusting a duty ratio of the PWM driving signal according to the control command, so that an input current of the lamp is adjusted accordingly.
  2. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,所述主控单元(4)预存储有多个占空比,所述按键单元(2)键入的控制指令包括多个键值,所述键值与所述占空比一一对应,当所述主控单元(4)接收到按键单元(2)键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元(3)。The indoor light brightness adjusting device according to claim 1, wherein the main control unit (4) pre-stores a plurality of duty ratios, and the control unit of the button unit (2) inputs a plurality of key values. The key value is in one-to-one correspondence with the duty ratio. When the main control unit (4) receives the key value typed by the button unit (2), first query the duty ratio matching the key value. The PWM drive signal is generated according to the duty ratio and transmitted to the lamp control unit (3).
  3. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,还包括有显示单元(5),所述显示单元(5)电性连接于主控单元(4),所述显示单元(5)用于显示所述键值。The indoor light brightness adjusting device according to claim 1, further comprising a display unit (5), the display unit (5) being electrically connected to the main control unit (4), the display unit (5) ) for displaying the key value.
  4. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,还包括有电 源转换单元(6),所述电源转换单元(6)用于提供直流供电电压。The indoor light brightness adjusting device according to claim 1, further comprising a power A source conversion unit (6) for providing a DC supply voltage.
  5. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,还包括有通信接口(7),所述通信接口(7)电性连接于主控单元(4)与上位机之间,藉由所述通信接口(7)而令上位机与主控单元(4)建立通信。The indoor light brightness adjusting device according to claim 1, further comprising a communication interface (7), wherein the communication interface (7) is electrically connected between the main control unit (4) and the upper computer, The host computer establishes communication with the main control unit (4) by the communication interface (7).
  6. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,所述光信号采集单元(1)包括有光敏电阻(D1)和模数转换芯片(U2),所述光敏电阻(D1)连接于模数转换芯片(U2)的模拟信号端,所述模数转换芯片(U2)的数字信号端连接于主控单元(4),所述光敏电阻(D1)用于感应外界光照强度而产生电信号,所述模数转换芯片(U2)用于将光敏电阻(D1)输出的电信号进行模数转换后传输至主控单元(4)。The indoor light brightness adjusting device according to claim 1, wherein the optical signal collecting unit (1) comprises a photoresistor (D1) and an analog-to-digital conversion chip (U2), and the photoresistor (D1) is connected. On the analog signal end of the analog-to-digital conversion chip (U2), the digital signal end of the analog-to-digital conversion chip (U2) is connected to the main control unit (4), and the photoresistor (D1) is used to sense external light intensity. The electrical signal, the analog-to-digital conversion chip (U2) is used for analog-to-digital conversion of the electrical signal output from the photoresistor (D1) and transmitted to the main control unit (4).
  7. 如权利要求6所述的室内灯光亮度调节装置,其特征在于,所述光敏电阻(D1)串联有高精度电位器(R2),二者串联后连接于高电位与地之间,所述光敏电阻(D1)与高精度电位器(R2)的连接点与模数转换芯片(U2)的模拟信号端相连接。The indoor light brightness adjusting device according to claim 6, wherein the photosensitive resistor (D1) is connected in series with a high-precision potentiometer (R2), and the two are connected in series and connected between a high potential and a ground. The connection point between the resistor (D1) and the high-precision potentiometer (R2) is connected to the analog signal terminal of the analog-to-digital converter chip (U2).
  8. 如权利要求1所述的室内灯光亮度调节装置,其特征在于,所述灯控单元(3)包括有一整流桥(UB1)、NPN管(Q2)、光耦(U3)和MOS管(Q1),所述整流桥(UB1)的交流侧用于连接灯具电源,所述整流桥(UB1)的直流侧正极连接于灯具的一端,所述MOS管(Q1)的漏极连接于灯具的另一端,所述MOS管(Q1)的源极接地,所述NPN管(Q2)的基极连接于主控单元(4),所述NPN管(Q2)的集电极用于接入高电位,所述NPN管(Q2)的发射极通过光耦(U3)的发光管接地,所述光耦(U3)开关管的第一端用于接入光耦驱动电压,所述光耦(U3)开关管的第二端连接于MOS管(Q1)的栅极,当所述灯控单元(3)向NPN管(Q2)的基极输出PWM驱动信号时,驱使所述光 耦(U3)和MOS管(Q1)随着PWM驱动信号而发生通断动作,以调节流过灯具的电流。The indoor light brightness adjusting device according to claim 1, wherein the light control unit (3) comprises a rectifier bridge (UB1), an NPN tube (Q2), an optocoupler (U3), and a MOS tube (Q1). The AC side of the rectifier bridge (UB1) is used to connect the lamp power supply, the DC side positive pole of the rectifier bridge (UB1) is connected to one end of the lamp, and the drain of the MOS pipe (Q1) is connected to the other end of the lamp. The source of the MOS transistor (Q1) is grounded, the base of the NPN transistor (Q2) is connected to the main control unit (4), and the collector of the NPN tube (Q2) is used to access a high potential. The emitter of the NPN tube (Q2) is grounded through an arc tube of an optocoupler (U3), and the first end of the optocoupler (U3) switch tube is used to access an optocoupler drive voltage, the optocoupler (U3) switch The second end of the tube is connected to the gate of the MOS transistor (Q1), and when the lamp control unit (3) outputs a PWM driving signal to the base of the NPN tube (Q2), the light is driven The coupling (U3) and the MOS transistor (Q1) are turned on and off with the PWM drive signal to regulate the current flowing through the lamp.
  9. 一种室内灯光亮度调节方法,其特征在于,该方法基于一装置实现,所述装置包括有一光信号采集单元(1)、一按键单元(2)、一灯控单元(3)及一主控单元(4),所述灯控单元(3)连接于灯具电源与灯具之间,所述光信号采集单元(1)、按键单元(2)和灯控单元(3)分别电性连接于主控单元(4),所述方法包括如下步骤:A method for adjusting brightness of an indoor light, characterized in that the method is implemented based on a device comprising an optical signal collecting unit (1), a button unit (2), a light control unit (3) and a main control The unit (4), the lamp control unit (3) is connected between the lamp power supply and the lamp, and the optical signal acquisition unit (1), the button unit (2) and the lamp control unit (3) are electrically connected to the main unit respectively. Control unit (4), the method comprising the following steps:
    步骤S1,所述光信号采集单元(1)采集外界光照强度并以电信号形式输出;Step S1, the optical signal collecting unit (1) collects external light intensity and outputs it as an electrical signal;
    步骤S2,所述主控单元(4)接收所述光信号采集单元(1)输出的电信号,并且当外界光照强度低于预设值时,向所述灯控单元(3)输出PWM驱动信号;Step S2, the main control unit (4) receives the electrical signal output by the optical signal acquisition unit (1), and outputs a PWM drive to the light control unit (3) when the ambient light intensity is lower than a preset value. signal;
    步骤S3,所述灯控单元(3)接入PWM驱动信号,并根据PWM驱动信号而控制由灯具电源向灯具传输的电流大小;Step S3, the lamp control unit (3) accesses the PWM driving signal, and controls the current amount transmitted by the lamp power source to the lamp according to the PWM driving signal;
    步骤S4,利用按键单元(2)键入控制指令;Step S4, using a button unit (2) to input a control command;
    步骤S5,所述主控单元(4)接收所述按键单元(2)输入的控制指令,并根据该控制指令而调节所述PWM驱动信号的占空比,以令灯具的输入电流随之调节。Step S5, the main control unit (4) receives the control command input by the button unit (2), and adjusts the duty ratio of the PWM driving signal according to the control command, so that the input current of the lamp is adjusted accordingly .
  10. 如权利要求9所述的室内灯光亮度调节方法,其特征在于,所述主控单元(4)预存储有多个占空比,所述按键单元(2)键入的控制指令包括多个键值,所述键值与所述占空比一一对应,所述步骤S5中,当所述主控单元(4)接收到按键单元(2)键入的键值时,先查询与该键值相匹配的占空比,再按照该占空比生成PWM驱动信号并传输至灯控单元(3)。 The indoor light brightness adjusting method according to claim 9, wherein the main control unit (4) pre-stores a plurality of duty ratios, and the control command entered by the button unit (2) includes a plurality of key values. The key value is in one-to-one correspondence with the duty ratio. In the step S5, when the main control unit (4) receives the key value typed by the button unit (2), the first query is related to the key value. The matched duty cycle is then generated according to the duty cycle and transmitted to the lamp control unit (3).
PCT/CN2017/079278 2017-04-01 2017-04-01 Device and method for adjusting brightness of indoor lighting WO2018176460A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/079278 WO2018176460A1 (en) 2017-04-01 2017-04-01 Device and method for adjusting brightness of indoor lighting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/079278 WO2018176460A1 (en) 2017-04-01 2017-04-01 Device and method for adjusting brightness of indoor lighting

Publications (1)

Publication Number Publication Date
WO2018176460A1 true WO2018176460A1 (en) 2018-10-04

Family

ID=63674044

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079278 WO2018176460A1 (en) 2017-04-01 2017-04-01 Device and method for adjusting brightness of indoor lighting

Country Status (1)

Country Link
WO (1) WO2018176460A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330784A (en) * 2008-08-04 2008-12-24 李舒 Radiotelecontrol intelligent light control system capable of setting control light hint map
CN202425108U (en) * 2011-11-28 2012-09-05 深圳可立克科技股份有限公司 Dimming circuit of LED (Light-Emitting Diode) power supply
CN202679741U (en) * 2012-06-29 2013-01-16 湖南城市学院 Classroom LED dimming control device
CN202813006U (en) * 2012-04-16 2013-03-20 安徽科发信息科技有限公司 Control device for LED intelligent desk lamp
CN203243565U (en) * 2013-05-06 2013-10-16 浙江工贸职业技术学院 Multifunctional LED desk lamp
CN103648208A (en) * 2013-11-19 2014-03-19 无锡新人居科贸有限公司 Intelligent lighting controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330784A (en) * 2008-08-04 2008-12-24 李舒 Radiotelecontrol intelligent light control system capable of setting control light hint map
CN202425108U (en) * 2011-11-28 2012-09-05 深圳可立克科技股份有限公司 Dimming circuit of LED (Light-Emitting Diode) power supply
CN202813006U (en) * 2012-04-16 2013-03-20 安徽科发信息科技有限公司 Control device for LED intelligent desk lamp
CN202679741U (en) * 2012-06-29 2013-01-16 湖南城市学院 Classroom LED dimming control device
CN203243565U (en) * 2013-05-06 2013-10-16 浙江工贸职业技术学院 Multifunctional LED desk lamp
CN103648208A (en) * 2013-11-19 2014-03-19 无锡新人居科贸有限公司 Intelligent lighting controller

Similar Documents

Publication Publication Date Title
CN203340336U (en) LED driving power and light modulation system
CN201773297U (en) Single-live wire wall-mounted type remote switch
CN203942687U (en) A kind of isolated form constant-current dimming circuit
CN103442504A (en) LED (Light Emitting Diode) constant current driving circuit based on PWM (Pulse-Width Modulation) light-adjusting mode
CN102595726B (en) Emergency lighting circuit and emergency lighting system
CN110234187A (en) A kind of LED constant current Drive And Its Driving Method
CN203912278U (en) LED desk lamp intelligent controller
CN202565531U (en) Intelligent light controlling system
WO2018176460A1 (en) Device and method for adjusting brightness of indoor lighting
CN206061207U (en) The automatic adjustable low-power consumption LED drive circuit of electric current
CN203775457U (en) Control apparatus of emergency lamp
CN202160318U (en) Light-emitting diode (LED) road lamp power supply with adjustable voltage and current
CN106989297B (en) Light-operated LED filament lamp driving system and light-operated LED filament lamp
CN206301431U (en) General multifunctional measurement data acquisition device
CN108650732A (en) A kind of linear constant current LED circuit with light-sensing function
CN203327314U (en) LED desk lamp energy-saving controller
CN210579387U (en) Novel intelligent light modulator
CN203387737U (en) Machine room energy saving lighting device
CN206771031U (en) Light-operated LED filament lamp drive system and light-operated LED filament lamp
CN201869407U (en) LED intelligent control circuit
CN208210368U (en) A kind of portable LED tent lamp control circuit
CN206640839U (en) A kind of LED drive circuit
CN208175048U (en) A kind of linear constant current LED circuit with light-sensing function
CN202841597U (en) LED constant-current driving power supply
CN205584546U (en) LED constant -current source circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17904013

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17904013

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17904013

Country of ref document: EP

Kind code of ref document: A1