CN109219215A - A kind of SCM Based automatic light modulating method - Google Patents

A kind of SCM Based automatic light modulating method Download PDF

Info

Publication number
CN109219215A
CN109219215A CN201811106621.2A CN201811106621A CN109219215A CN 109219215 A CN109219215 A CN 109219215A CN 201811106621 A CN201811106621 A CN 201811106621A CN 109219215 A CN109219215 A CN 109219215A
Authority
CN
China
Prior art keywords
light
intensity
intensity value
pwm
illumination intensity
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201811106621.2A
Other languages
Chinese (zh)
Inventor
邹九铭
刘柄鑫
李湘峰
李芝行
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan University
Original Assignee
Foshan University
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 Foshan University filed Critical Foshan University
Priority to CN201811106621.2A priority Critical patent/CN109219215A/en
Publication of CN109219215A publication Critical patent/CN109219215A/en
Pending legal-status Critical Current

Links

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
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • 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

Landscapes

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

Abstract

The invention discloses a kind of SCM Based automatic light modulating methods, comprising: step 1, the detection range according to light intensity sensor, setting unit PWM output quantity;Step 2, light intensity sensor obtain current illumination intensity value;Current illumination intensity value is compared by step 3 with preset Intensity threshold;Step 4, when the current illumination intensity value be greater than Intensity threshold when, single-chip microcontroller output PWM increase a unit PWM output quantity, when the current illumination intensity value be less than Intensity threshold when, single-chip microcontroller output PWM reduce a unit PWM output quantity.This method is acquired and is compared by the intensity of illumination to current light source, is dynamically adjusted to light source, so that light source tends to stablize.This method can be used for light regulating technology field.

Description

A kind of SCM Based automatic light modulating method
Technical field
The present invention relates to light regulating technology field, in particular to a kind of light-dimming method.
Background technique
Present lamp lighting system has certain automation, but function has a certain distance in terms of precise controlling, Such as street lamp, the rough brightness of scene is obtained by photo resistance, resistance is larger so that passing through relay during the day for photo resistance The electric current of device is smaller, cannot drive relay that street lamp circuit is closed, and resistance reduces larger by electric current when evening, so that driving Motor type relay, and then street lamp circuit is closed, and achievees the purpose that road lamp switch carries out on-off, but be only capable of carrying out at dark certainly It is dynamic to open, it is at day automatically closed, a rough control can only be carried out, not can be carried out complicated brightness regulation, so that light source It is unstable.
Summary of the invention
In view of the drawbacks of the prior art, the present invention provides a kind of light-dimming method that can make light stability.
The solution that the present invention solves its technical problem is: a kind of SCM Based automatic light modulating method, comprising: step Rapid 1, according to the detection range of light intensity sensor, setting unit PWM output quantity;Step 2, light intensity sensor obtain current illumination Intensity value;Current illumination intensity value is compared by step 3 with preset Intensity threshold;Step 4, when the current light When being greater than Intensity threshold according to intensity value, the PWM of single-chip microcontroller output increases a unit PWM output quantity, when the current illumination When intensity value is less than Intensity threshold, the PWM of single-chip microcontroller output reduces by a unit PWM output quantity.
Further, in step 2, the method that light intensity sensor obtains current illumination intensity value is multi collect and asks flat Mean value.
Further, the model BH1750FVI of the light intensity sensor.
The beneficial effects of the present invention are: this method is acquired and is compared by the intensity of illumination to current light source, dynamic Light source is adjusted so that light source tend to stablize.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described.Obviously, described attached drawing is a part of the embodiments of the present invention, rather than is all implemented Example, those skilled in the art without creative efforts, can also be obtained according to these attached drawings other designs Scheme and attached drawing.
Fig. 1 is the step flow chart of the embodiment of the present invention 1.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu is fully described by, to be completely understood by the purpose of the present invention, feature and effect.Obviously, described embodiment is this hair Bright a part of the embodiment, rather than whole embodiments, based on the embodiment of the present invention, those skilled in the art are not being paid Other embodiments obtained, belong to the scope of protection of the invention under the premise of creative work.In addition, be previously mentioned in text All connection/connection relationships not singly refer to that component directly connects, and referring to can be added deduct according to specific implementation situation by adding Few couple auxiliary, to form more preferably coupling structure.Each technical characteristic in the invention, in not conflicting conflict Under the premise of can be with combination of interactions.
Embodiment 1, with reference to Fig. 1, a kind of SCM Based automatic light modulating method, comprising:
Step S1, according to the detection range of light intensity sensor, setting unit PWM output quantity;
Step S2, light intensity sensor obtains current illumination intensity value;
Step S3, current illumination intensity value is compared with preset Intensity threshold;
Step S4, when the current illumination intensity value is greater than Intensity threshold, the PWM of single-chip microcontroller output increases a list Position PWM output quantity, when the current illumination intensity value is less than Intensity threshold, the PWM of single-chip microcontroller output reduces by a unit PWM output quantity.
Specifically, by taking the detection range of light intensity sensor is the lux 1-3000 (Lx) as an example, then it can be by light intensity sensor Detection range be divided into 100 parts, it is every it is a be 30 luxs, the program of single-chip microcontroller is set, so that its exportable unit PWM is defeated The adjustment width of output corresponds to 30 luxs, i.e., when exporting a unit PWM output quantity, the light of the light source of corresponding adjustment It is 30 luxs according to intensity.Optical sensor obtains the illumination intensity value of current light source, and in order to reduce error, optical sensor exists The method for passing through the illumination intensity value of multi collect current light source and averaging, to obtain the illumination intensity value of current light source. The illumination intensity value passes to single-chip microcontroller, and the single-chip microcontroller internal preset has Intensity threshold, and the present embodiment is 100 luxs, The illumination intensity value is the general ideal intensity of illumination of household fluorescent lamp.With the illumination of the current light source obtained from light intensity sensor Intensity value is compared with illumination threshold value, and when the current illumination intensity value is greater than Intensity threshold, the PWM of single-chip microcontroller output increases Add a unit PWM output quantity, when the current illumination intensity value is less than Intensity threshold, the PWM of single-chip microcontroller output is reduced One unit PWM output quantity.For example, setting the PWM of current single-chip microcontroller output as k, unit PWM output quantity is x, when working as acquisition When the illumination intensity value of front light-source is 80 lux, at this point, the illumination intensity value of current light source is less than Intensity threshold, it is therefore, single The PWM of piece machine output should be k+x.That is, the PWM wave that output width is bigger, so as to adjust the intensity of illumination of light source.When acquisition When the illumination intensity value of current light source is 130 lux, at this point, the illumination intensity value of current light source is greater than Intensity threshold, therefore, The PWM of single-chip microcontroller output should be k-x.That is, the output smaller PWM wave of width, so as to adjust the intensity of illumination of light source.It is so anti- It is multiple, that is, it may make the intensity of illumination of light source to be in a dynamic equilibrium, meet the requirement of daily life.
As optimization, the model BH1750FVI of the light intensity sensor.The light intensity sensor of the model is simple, is easy to Exploitation.
Better embodiment of the invention is illustrated above, but the invention is not limited to the implementation Example, those skilled in the art can also make various equivalent modifications on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent variation or replacement are all included in the scope defined by the claims of the present application.

Claims (3)

1. a kind of SCM Based automatic light modulating method characterized by comprising
Step 1, the detection range according to light intensity sensor, setting unit PWM output quantity;
Step 2, light intensity sensor obtain current illumination intensity value;
Current illumination intensity value is compared by step 3 with preset Intensity threshold;
Step 4, when the current illumination intensity value be greater than Intensity threshold when, single-chip microcontroller output PWM increase a unit PWM Output quantity, when the current illumination intensity value is less than Intensity threshold, it is defeated that the PWM of single-chip microcontroller output reduces by a unit PWM Output.
2. a kind of SCM Based automatic light modulating method according to claim 1, which is characterized in that in step 2, light The method that strong sensor obtains current illumination intensity value is multi collect and averages.
3. a kind of SCM Based automatic light modulating method according to claim 1, which is characterized in that the light intensity sensing The model BH1750FVI of device.
CN201811106621.2A 2018-09-21 2018-09-21 A kind of SCM Based automatic light modulating method Pending CN109219215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811106621.2A CN109219215A (en) 2018-09-21 2018-09-21 A kind of SCM Based automatic light modulating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811106621.2A CN109219215A (en) 2018-09-21 2018-09-21 A kind of SCM Based automatic light modulating method

Publications (1)

Publication Number Publication Date
CN109219215A true CN109219215A (en) 2019-01-15

Family

ID=64985012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811106621.2A Pending CN109219215A (en) 2018-09-21 2018-09-21 A kind of SCM Based automatic light modulating method

Country Status (1)

Country Link
CN (1) CN109219215A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650921A (en) * 2009-09-17 2010-02-17 青岛海信电器股份有限公司 Method and device of controlling dynamic backlight
US20110232026A1 (en) * 2010-03-26 2011-09-29 Shop Vac Corporation Removable Circuit Board Assembly for a Vacuum
CN107770915A (en) * 2017-11-16 2018-03-06 万子恺 A kind of method of intelligent light control system and signal light control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650921A (en) * 2009-09-17 2010-02-17 青岛海信电器股份有限公司 Method and device of controlling dynamic backlight
US20110232026A1 (en) * 2010-03-26 2011-09-29 Shop Vac Corporation Removable Circuit Board Assembly for a Vacuum
CN107770915A (en) * 2017-11-16 2018-03-06 万子恺 A kind of method of intelligent light control system and signal light control

Similar Documents

Publication Publication Date Title
US9055650B2 (en) Energy saving dimmer for LED luminaire driver
CN202455601U (en) Intelligent light-controlled LED (Light Emitting Diode) lighting device
CN205124070U (en) Intelligent light -operated lamp of integration
CN105050301A (en) Mobile phone Bluetooth-based indoor Intelligent LED lighting system design
CN105025642A (en) LED adaptive dimming classroom lamp and control method thereof
CN201081119Y (en) Video apparatus status indicating lamp
CN105188239A (en) Integrated intelligent light control lamp
CN106061036A (en) Light-controlled street lamp along with environment brightness changes
CN109219215A (en) A kind of SCM Based automatic light modulating method
CN101252799A (en) Energy-saving road lamp intelligent control method
CN102548164A (en) Light control desk lamp
CN105813347A (en) Vehicle-mounted illuminating system capable of realizing lamplight intensity changes through intelligent simulative replacement way
CN203204842U (en) Intelligent light control system for traffic LED light supplement lamps
KR20170077412A (en) A lamp for vehicle
CN206149575U (en) Contravariant type membrane intelligent control drive circuit that adjusts luminance
CN104750004A (en) Automatic blind window control system
CN205546038U (en) LED self -adaptation dimming control device
CN205356745U (en) Light intensity adjustable intelligence lighting control device
CN204739462U (en) Multi -functional integrated desk lamp
CN205179438U (en) Even fiber lamp
CN210247104U (en) Light-operated night-light of discolouring of taking touch to adjust luminance
CN201661916U (en) Illumination device with automatic light adjustment
CN101799130A (en) Illumination device with automatic dimming function
CN106163049B (en) The bright street lamp control system of bright liter drops in middle night
CN106304558A (en) A kind of vehicle-mounted illumination intelligent management system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115