CN104853484B - A kind of indoor LED illumination light adjusting and controlling device and method - Google Patents

A kind of indoor LED illumination light adjusting and controlling device and method Download PDF

Info

Publication number
CN104853484B
CN104853484B CN201510184582.8A CN201510184582A CN104853484B CN 104853484 B CN104853484 B CN 104853484B CN 201510184582 A CN201510184582 A CN 201510184582A CN 104853484 B CN104853484 B CN 104853484B
Authority
CN
China
Prior art keywords
module
signal
operation module
signal transacting
control
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.)
Expired - Fee Related
Application number
CN201510184582.8A
Other languages
Chinese (zh)
Other versions
CN104853484A (en
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.)
Kunming University of Science and Technology
Original Assignee
Kunming University of Science and Technology
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 Kunming University of Science and Technology filed Critical Kunming University of Science and Technology
Priority to CN201510184582.8A priority Critical patent/CN104853484B/en
Publication of CN104853484A publication Critical patent/CN104853484A/en
Application granted granted Critical
Publication of CN104853484B publication Critical patent/CN104853484B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present invention relates to a kind of indoor LED illumination light adjusting and controlling device and method, belong to smart home field.Including intensity of illumination acquisition module, Synchronous signal acquisition module, signal transacting and operation module, unit effect module and remote control module.For the inadequate hommization of interior lighting system, intellectuality and energy-conservation the problem of, use single-chip microcomputer for core with share controllable silicon interior lighting system is controlled and technology optimization design.Light regulating technology is introduced interior lighting system, by the contrast to a variety of LED light regulating technologies, selection is optimized to controllable silicon light modulation technology, realizes the brilliance control to LED.In order to realize the Acquisition Circuit of specific control effect, design synchronizing signal and natural light intensity.In view of traditional switch inconvenience in use, with the addition of remote control module in design, and develop in the module new function.Whole design is turned into an entirety finally by writing for software program, the optimization design to interior lighting system is realized.

Description

A kind of indoor LED illumination light adjusting and controlling device and method
Technical field
The present invention relates to a kind of indoor LED illumination light adjusting and controlling device and method, belong to Smart Home technical field.
Background technology
Due to the shortage and the development of intelligent control technology of the energy, control of the people to illuminator can not be satisfied with again The operation of traditional on-off type, and the element of intelligent control should be incorporated.Perfect intelligent control should possess control manually, intelligence control The control functions such as system, light-operated, time control.Indoors in illuminator, due to advantage of the light regulating technology in terms of energy-conservation, so it is Realize the best point of penetration of interior lighting system intelligent control.In view of the high energy consumption and type fluorescent lamp of incandescent lamp are to voltage request Strong the problem of, the development of LED light regulating technologies will welcome unprecedented opportunities, and this also imply that, in following illumination market, LED will replace incandescent lamp and fluorescent lamp, as new illuminating lamp overlord.
The content of the invention
The technical problem to be solved in the present invention is:A kind of indoor LED illumination light adjusting and controlling device and method are provided, to solve Certainly the inadequate hommization of interior lighting system, intellectuality and energy-conservation the problem of, interior lighting system is controlled and technology it is excellent Change design.
The technical scheme is that:A kind of indoor LED illumination light adjusting and controlling device, including it is intensity of illumination acquisition module 1, same Signal acquisition module 2, signal transacting and operation module 3, unit effect module 4 and remote control module 5 are walked, totally five modules;It is described The lead-out terminal of intensity of illumination acquisition module 1 is connected with signal transacting with the input terminal of operation module 3, synchronous signal acquisition mould The lead-out terminal of block 2 is connected with the input terminal of signal processing operations module 3, signal transacting and the lead-out terminal of operation module 3 It is connected with the input terminal of unit effect module 4, lead-out terminal and the signal transacting and monolithic in operation module 3 of remote control module 5 The terminal of machine is connected.
Brightness of the intensity of illumination acquisition module 1 to detect available light, is carried out preliminary to the information collected Processing, and send it to signal transacting and operation module 3, control the brightness of LED, its output end and signal transacting and behaviour The input terminal for making the single-chip microcomputer in module 3 is connected.
The input of the lead-out terminal of Synchronous signal acquisition module 2 and signal transacting and the single-chip microcomputer in operation module 3 Son is connected, to detect synchronizing signal.
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit with operation module 3, strong for receiving illumination Acquisition module 1 and the signal of Synchronous signal acquisition module 2 are spent, to being sent to unit effect module 4 after signal transacting;Signal transacting It is connected with the input of operation module 3 with the output end of intensity of illumination acquisition module 1, signal transacting and the input of operation module 3 End is connected with the output end of Synchronous signal acquisition module 2, signal transacting and the output end and unit effect module 4 of operation module 3 Input be connected, the output end of remote control module 5 is connected with signal transacting with the input of operation module 3.
The unit effect module 4 is used to receive the instruction from signal transacting and operation module 3 and by instruction to its institute The LED of control carries out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to 12 volts of alternating currents Direct current after rectification;The input of unit effect module 4 is connected with signal transacting with the output end of operation module 3.
The output end of the remote control module 5 is connected with signal transacting with the terminal of single-chip microcomputer in operation module 3, using infrared Remote control LED is dimmed and switching function control.
A kind of indoor LED illumination dimming controlling method, the control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module 1 in B, LED illumination light adjusting and controlling device is acquired to intensity of illumination, and by signal Send into signal transacting and the single-chip microcomputer in operation module 3;Synchronous signal acquisition module 2 is acquired to voltage synchronous signal, and Signal is sent into signal transacting and the single-chip microcomputer in operation module 3;
C, use remote control module 5 carry out related setting;
D, signal transacting and operation module 3 are according to intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, remote control module 5 information provided carry out comprehensive distinguishing, and control information is passed into unit effect module 4, so that it is bright to obtain desired LED illumination Degree.
It is as follows the step of the processing method of signal transacting and the single-chip microcomputer in operation module 3 in the step D:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module 3 judge whether synchronizing signal is high level, when synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, when synchronizing signal state is high level, into the next of synchronizing signal Judge sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal shape When state is low level, step S4 is transferred to;
Step S4, signal transacting and operation module 3 read in ambient light and shine strength signal;
Step S5, signal transacting and operation module 3 are handled the signal data that remote control module is sent again;
The remote control one that the present invention is used has shared six press keys:Red key, green key, Huang Jian, Lan Jian, F1 key and F2 keys, Parameter during remote control signal receiver corresponding to these buttons is respectively:CH=1, CH=2, CH=3, CH=4, m=1, m=2, CH is mould The parameter of formula conversion, m is brightness regulation parameter.Assign initial value CH=0, m=0.Hot key, green key, Huang Jian, Lan Jian are not pressed When, if (CH==0) set up, system performs compatible light-modulating mode, and intelligent dimming and remote control light modulating all work;Hot key is pressed When, if (CH==1) set up, system intelligent dimming once, and gives assignment CH=0, into compatible light-modulating mode;When green key is pressed, If (CH==2) set up, system abolishes intelligent dimming, now, can only use remote control to carry out the regulation of brightness;When yellow key is pressed When, if (CH==3) set up, system enters 100% luminance patterns, and now LED has been adjusted to high-high brightness, and in this mode, no The regulation of brightness is supported again;When blue key is pressed, if (CH==4) set up, this is switching mode, for the light on and off of remote control LED lamp, After access switch pattern, unless pressed Lan Jian again once, make CH=4, otherwise program is absorbed in endless loop, other control instructions all without Method is performed, and LED is off;When F1 keys are pressed, if (m==1) set up, brightness subtracts regulation once;When F2 keys are pressed, if (m ==2) are set up, and brightness increases regulation once.
Step S6, signal transacting and operation module 3 enter the delay that two time spans are respectively t1 and t2;Full-wave rectification Cycle T=0.01s of voltage, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control(Specifically See Fig. 7), two time spans are respectively that t1 and t2 delay time is arrived, then are transferred to step S7;
It is 100 that step S7, signal transacting and the single-chip microcomputer STC89C52 of operation module 3 P2.0 mouths, which send a time span, μ s low pulse, so that the triggering and conducting of controllable silicon SCR 1 in control unit effect module 4, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting enters back into the judgement sentence of synchronizing signal with operation module 3;When synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
In addition, there is interruption in program, when meeting interrupt condition, interruption breakpoint will be produced, in being produced at breakpoint Break and respond, interrupt service and interrupt return, the operation of main program can be entered after return breakpoint.Because the generation of breakpoint is randomness And have certain response time, the control failure of short time can be caused, the time is the break period to add 1 ~ 2 controlling cycles, is made Into influence be LED flicker once.
Specifically, intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect Module 4 and remote control module 5 are answered, the concrete composition and structure of this 5 modules are as follows:
The intensity of illumination acquisition module 1 comprising photo resistance CRS1, adjustable resistance R14, fixed value resistance R7, R11, R12, R13, R15, electric capacity C4, modulus conversion chip ADC0804;Photo resistance CRS1 one end is connected with 5V power supplys, other end difference Connect fixed value resistance R7 and adjustable resistance R14 one end;Resistance R7 another termination analog-digital converter ADC0804 Vin (+) draws Pin;Resistance R14 another terminating resistor R13 one end;The resistance R13 other end meets analog-digital converter ADC0804 Vin respectively One end of (-) pin and electric capacity C4;The electric capacity C4 other end connects ADC0804 CLKIN pins and resistance R15 one end respectively; Resistance R15 another termination analog-digital converter ADC0804 CLKR pins;A resistance R12 termination 5V power supplys, other end difference Connect analog-digital converter ADC0804 Vref pins and resistance R11 one end;Resistance R11 another termination analog-digital converter ADC0804 DGND pins;Analog-digital converter ADC0804 DGND pins, Vin (-) pin, AGND pins connects together and connect Ground;Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 connects signal transacting and operation respectively Module(3)Pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 of middle STC89C52 single-chip microcomputers;Modulus turns Pin P3.2, P3.6, the P3.7 of parallel operation ADC0804 pin CS, WR, RD respectively with single-chip microcomputer STC89C52 are respectively with being connected;
The Synchronous signal acquisition module 2 include optocoupler Optoisolator2, resistance R1, R2, R3, R4, voltage-stabiliser tube D1, Rectifier bridge stack Bridge1, transformer Transformer1;Transformer Transformer1 high pressure termination 220V civil powers, 12V is handed over Stream low-voltage output connects rectifier bridge stack Bridge1 AC, and the anode of rectifier bridge stack Bridge1 DC side output connects respectively Resistance R1 one end and the anode of the controllable silicon SCR 1 of unit effect module 4;The one of resistance R1 other end difference connecting resistance R2 End and voltage-stabiliser tube D1 negative electrode;The anode of resistance R2 another termination optocoupler Optoisolator2 light emitting diode;Optocoupler It is negative that negative electrode, voltage-stabiliser tube D1 anode and the rectifier bridge stack Bridge1 DC sides of Optoisolator2 light emitting diode are exported Termination is together;Colelctor electrode termination 5V power supplys, emitter stage difference the connecting resistance R3 and R4 of optocoupler Optoisolator2 triode One end;Resistance R4 other end ground connection;Resistance R3 another termination signal transacting and STC89C52 single-chip microcomputers in operation module 3 Pin P0.6;
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit, signal transacting and operation with operation module 3 In module 3 single-chip microcomputer STC89C52 pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 respectively with illumination Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 correspondence connects in intensity collection module 1 Connect, single-chip microcomputer STC89C52 pin P3.2, P3.6, P3.7 connect with analog-digital converter ADC0804 pin CS, WR, RD respectively Connect;Single-chip microcomputer STC89C52 pin P0.6 is connected with the resistance R3 of Synchronous signal acquisition module 2 one end;Single-chip microcomputer STC89C52 pin P2.0 is connected with the resistance R7 of unit effect module 4 one end;Single-chip microcomputer STC89C52 pin P3.3 The IN ends for receiving head HX1838 with the infrared remote control in remote control module 5 are connected;
The unit effect module 4 includes optocoupler Optoisolator1;Resistance R5, R6, R7, diode D2, LED LED1, LED2, LED3, LED4, controllable silicon SCR 1;The rectifier bridge stack Bridge1 of Synchronous signal acquisition module 2 DC side output One end connection of anode 1. respectively with the anode and resistance R5 of the controllable silicon SCR 1 of unit effect module 4;The resistance R5 other end It is connected with the colelctor electrode of optocoupler Optoisolator1 triode, its emitter stage connects diode D2 anode;Diode D2 the moon Pole meets the gate pole G of controllable silicon SCR 1;The negative electrode K of controllable silicon SCR 1 connects LED4 anode, and LED4 negative electrode connects LED3 anode; LED3 negative electrode connects LED2 anode;LED2 negative electrode connects LED1 anode;It is whole that LED1 negative electrode connects Synchronous signal acquisition module 2 Flow the bridge heap Bridge1 negative terminal of DC side output 2.;Resistance R6 one end is connected with 5V power supplys, the other end and optocoupler The anode connection of Optoisolator1 light emitting diode, the negative electrode of light emitting diode is connected with resistance R7 one end;Resistance R7 The other end be connected with signal transacting with the pin P2.0 of single-chip microcomputer in operation module 3;
The remote control module 5 receives head HX1838, resistance R8, R9, light emitting diode D3 comprising infrared remote control;Resistance R9's One termination 5V power supplys, other end sending and receiving optical diode D3 anode;Light emitting diode D3 negative electrode connects infrared remote control and receives head HX1838 GND ends;Infrared remote control receives head HX1838 VCC termination 5V power supplys, GND ends ground connection;A resistance R8 termination 5V Power supply, another termination infrared remote control receives head HX1838 IN ends;Infrared remote control receives head HX1838 IN termination signals processing With operation module(3)Middle single-chip microcomputer STC89C52 pin P3.3.
The beneficial effects of the invention are as follows:
(1)Can stepless dimming:Stepless dimming technology is combined introducing interior lighting system by the present invention with LED, is made every effort to most The energy-saving effect of the raising interior lighting system of limits;
(2)Intelligent control:Outdoor optical according to being connected as a single entity with interior lighting system, is made them tie up jointly by brightness control system The balance of room brilliancy is held, in this maintenance process, the introducing of intelligent control technology is most important;
(3)Remote control light modulating:In order that people more facilitate to the control operation of illuminator, Infrared Ray Remote Control Technology can be used Illuminator is controlled.So doing can make it that LED energy-saving effect is more notable, and people can be made to compare bright system again The control of system is more convenient, meets requirement of the fast pace life mode to electric device instantly;
The design will amid all these factors and require, design a dimming arrangement for being suitable for LED so that light modulation During, you can it is controlled with the luminous intensity to LED without ladder, can also be by transducing signal to the luminous strong of LED Degree carries out the intelligent control without ladder, improves LED energy-saving effect.Meanwhile, in order that control operation of the people to illuminator More facilitate, illuminator is controlled using infrared electrical remote control technology.Promote LED electricity-saving lamps to a certain extent in market On popularity rate.
Brief description of the drawings
Fig. 1 is the theory diagram of the present invention;
Fig. 2 is the circuit theory diagrams of the present invention;
Fig. 3 is intensity of illumination Acquisition Circuit figure of the present invention;
Fig. 4 is synchronous signal acquisition circuit diagram of the present invention;
Fig. 5 is invention unit effect module circuit diagram;
Fig. 6 is remote control module circuit diagram of the present invention;
Fig. 7 is the oscillogram that the present invention carries out phase controlling to controllable silicon;
Fig. 8 is present procedure flow chart.
Each label in Fig. 2:1- intensity of illumination acquisition modules, 2- Synchronous signal acquisition modules, 3- signal transactings and operation mould Block, 4- unit effect modules, 5- remote control modules.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment, the invention will be further described.
Embodiment 1:As shown in figures 1-8, a kind of indoor LED illumination light adjusting and controlling device, including intensity of illumination acquisition module 1st, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect module 4 and remote control module 5, totally five modules; The lead-out terminal of the intensity of illumination acquisition module 1 is connected with signal transacting with the input terminal of operation module 3, and synchronizing signal is adopted The lead-out terminal of collection module 2 is connected with the input terminal of signal processing operations module 3, signal transacting and the output of operation module 3 Terminal is connected with the input terminal of unit effect module 4, in the lead-out terminal and signal transacting and operation module 3 of remote control module 5 The terminal of single-chip microcomputer is connected.
Brightness of the intensity of illumination acquisition module 1 to detect available light, is carried out preliminary to the information collected Processing, and send it to signal transacting and operation module 3, control the brightness of LED, its output end and signal transacting and behaviour The input terminal for making the single-chip microcomputer in module 3 is connected.
The input of the lead-out terminal of Synchronous signal acquisition module 2 and signal transacting and the single-chip microcomputer in operation module 3 Son is connected, to detect synchronizing signal.
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit with operation module 3, strong for receiving illumination Acquisition module 1 and the signal of Synchronous signal acquisition module 2 are spent, to being sent to unit effect module 4 after signal transacting;Signal transacting It is connected with the input of operation module 3 with the output end of intensity of illumination acquisition module 1, signal transacting and the input of operation module 3 End is connected with the output end of Synchronous signal acquisition module 2, signal transacting and the output end and unit effect module 4 of operation module 3 Input be connected, the output end of remote control module 5 is connected with signal transacting with the input of operation module 3.
The unit effect module 4 is used to receive the instruction from signal transacting and operation module 3 and by instruction to its institute The LED of control carries out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to 12 volts of alternating currents Direct current after rectification;The input of unit effect module 4 is connected with signal transacting with the output end of operation module 3.
The output end of the remote control module 5 is connected with signal transacting with the terminal of single-chip microcomputer in operation module 3, using infrared Remote control LED is dimmed and switching function control.
A kind of indoor LED illumination dimming controlling method, the control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module 1 in B, LED illumination light adjusting and controlling device is acquired to intensity of illumination, and by signal Send into signal transacting and the single-chip microcomputer in operation module 3;Synchronous signal acquisition module 2 is acquired to voltage synchronous signal, and Signal is sent into signal transacting and the single-chip microcomputer in operation module 3;
C, use remote control module 5 carry out related setting;
D, signal transacting and operation module 3 are according to intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, remote control module 5 information provided carry out comprehensive distinguishing, and control information is passed into unit effect module 4, so that it is bright to obtain desired LED illumination Degree.
It is as follows the step of the processing method of signal transacting and the single-chip microcomputer in operation module 3 in the step D:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module 3 judge whether synchronizing signal is high level, when synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, when synchronizing signal state is high level, into the next of synchronizing signal Judge sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal shape When state is low level, step S4 is transferred to;
Step S4, signal transacting and operation module 3 read in ambient light and shine strength signal;
Step S5, signal transacting and operation module 3 are handled the signal data that remote control module is sent again;
The remote control one that the present invention is used has shared six press keys:Red key, green key, Huang Jian, Lan Jian, F1 key and F2 keys, Parameter during remote control signal receiver corresponding to these buttons is respectively:CH=1, CH=2, CH=3, CH=4, m=1, m=2, CH is mould The parameter of formula conversion, m is brightness regulation parameter.Assign initial value CH=0, m=0.Hot key, green key, Huang Jian, Lan Jian are not pressed When, if (CH==0) set up, system performs compatible light-modulating mode, and intelligent dimming and remote control light modulating all work;Hot key is pressed When, if (CH==1) set up, system intelligent dimming once, and gives assignment CH=0, into compatible light-modulating mode;When green key is pressed, If (CH==2) set up, system abolishes intelligent dimming, now, can only use remote control to carry out the regulation of brightness;When yellow key is pressed When, if (CH==3) set up, system enters 100% luminance patterns, and now LED has been adjusted to high-high brightness, and in this mode, no The regulation of brightness is supported again;When blue key is pressed, if (CH==4) set up, this is switching mode, for the light on and off of remote control LED lamp, After access switch pattern, unless pressed Lan Jian again once, make CH=4, otherwise program is absorbed in endless loop, other control instructions all without Method is performed, and LED is off;When F1 keys are pressed, if (m==1) set up, brightness subtracts regulation once;When F2 keys are pressed, if (m ==2) are set up, and brightness increases regulation once.
Step S6, signal transacting and operation module 3 enter the delay that two time spans are respectively t1 and t2;Full-wave rectification Cycle T=0.01s of voltage, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control, two Time span is respectively that t1 and t2 delay time is arrived, then is transferred to step S7;
It is 100 that step S7, signal transacting and the single-chip microcomputer STC89C52 of operation module 3 P2.0 mouths, which send a time span, μ s low pulse, so that the triggering and conducting of controllable silicon SCR 1 in control unit effect module 4, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting enters back into the judgement sentence of synchronizing signal with operation module 3;When synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
Embodiment 2:As shown in figures 1-8, a kind of indoor LED illumination light adjusting and controlling device, including intensity of illumination acquisition module 1st, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect module 4 and remote control module 5, totally five modules; The lead-out terminal of the intensity of illumination acquisition module 1 is connected with signal transacting with the input terminal of operation module 3, and synchronizing signal is adopted The lead-out terminal of collection module 2 is connected with the input terminal of signal processing operations module 3, signal transacting and the output of operation module 3 Terminal is connected with the input terminal of unit effect module 4, in the lead-out terminal and signal transacting and operation module 3 of remote control module 5 The terminal of single-chip microcomputer is connected.
Brightness of the intensity of illumination acquisition module 1 to detect available light, is carried out preliminary to the information collected Processing, and send it to signal transacting and operation module 3, control the brightness of LED, its output end and signal transacting and behaviour The input terminal for making the single-chip microcomputer in module 3 is connected.
The input of the lead-out terminal of Synchronous signal acquisition module 2 and signal transacting and the single-chip microcomputer in operation module 3 Son is connected, to detect synchronizing signal.
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit with operation module 3, strong for receiving illumination Acquisition module 1 and the signal of Synchronous signal acquisition module 2 are spent, to being sent to unit effect module 4 after signal transacting;Signal transacting It is connected with the input of operation module 3 with the output end of intensity of illumination acquisition module 1, signal transacting and the input of operation module 3 End is connected with the output end of Synchronous signal acquisition module 2, signal transacting and the output end and unit effect module 4 of operation module 3 Input be connected, the output end of remote control module 5 is connected with signal transacting with the input of operation module 3.
The unit effect module 4 is used to receive the instruction from signal transacting and operation module 3 and by instruction to its institute The LED of control carries out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to 12 volts of alternating currents Direct current after rectification;The input of unit effect module 4 is connected with signal transacting with the output end of operation module 3.
The output end of the remote control module 5 is connected with signal transacting with the terminal of single-chip microcomputer in operation module 3, using infrared Remote control LED is dimmed and switching function control.
A kind of indoor LED illumination dimming controlling method, the control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module 1 in B, LED illumination light adjusting and controlling device is acquired to intensity of illumination, and by signal Send into signal transacting and the single-chip microcomputer in operation module 3;Synchronous signal acquisition module 2 is acquired to voltage synchronous signal, and Signal is sent into signal transacting and the single-chip microcomputer in operation module 3;
C, use remote control module 5 carry out related setting;
D, signal transacting and operation module 3 are according to intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, remote control module 5 information provided carry out comprehensive distinguishing, and control information is passed into unit effect module 4, so that it is bright to obtain desired LED illumination Degree.
It is as follows the step of the processing method of signal transacting and the single-chip microcomputer in operation module 3 in the step D:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module 3 judge whether synchronizing signal is high level, when synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, when synchronizing signal state is high level, into the next of synchronizing signal Judge sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal shape When state is low level, step S4 is transferred to;
Step S4, signal transacting and operation module 3 read in ambient light and shine strength signal;
Step S5, signal transacting and operation module 3 are handled the signal data that remote control module is sent again;
Step S6, signal transacting and operation module 3 enter the delay that two time spans are respectively t1 and t2;Full-wave rectification Cycle T=0.01s of voltage, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control, two Time span is respectively that t1 and t2 delay time is arrived, then is transferred to step S7;
It is 100 that step S7, signal transacting and the single-chip microcomputer STC89C52 of operation module 3 P2.0 mouths, which send a time span, μ s low pulse, so that the triggering and conducting of controllable silicon SCR 1 in control unit effect module 4, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting enters back into the judgement sentence of synchronizing signal with operation module 3;When synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
In addition, there is interruption in program, when meeting interrupt condition, interruption breakpoint will be produced, in being produced at breakpoint Break and respond, interrupt service and interrupt return, the operation of main program can be entered after return breakpoint.Because the generation of breakpoint is randomness And have certain response time, the control failure of short time can be caused, the time is the break period to add 1 ~ 2 controlling cycles, is made Into influence be LED flicker once.
Embodiment 3:As shown in figures 1-8, a kind of indoor LED illumination light adjusting and controlling device, including intensity of illumination acquisition module 1st, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect module 4 and remote control module 5, totally five modules; The lead-out terminal of the intensity of illumination acquisition module 1 is connected with signal transacting with the input terminal of operation module 3, and synchronizing signal is adopted The lead-out terminal of collection module 2 is connected with the input terminal of signal processing operations module 3, signal transacting and the output of operation module 3 Terminal is connected with the input terminal of unit effect module 4, in the lead-out terminal and signal transacting and operation module 3 of remote control module 5 The terminal of single-chip microcomputer is connected.
Brightness of the intensity of illumination acquisition module 1 to detect available light, is carried out preliminary to the information collected Processing, and send it to signal transacting and operation module 3, control the brightness of LED, its output end and signal transacting and behaviour The input terminal for making the single-chip microcomputer in module 3 is connected.
The input of the lead-out terminal of Synchronous signal acquisition module 2 and signal transacting and the single-chip microcomputer in operation module 3 Son is connected, to detect synchronizing signal.
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit with operation module 3, strong for receiving illumination Acquisition module 1 and the signal of Synchronous signal acquisition module 2 are spent, to being sent to unit effect module 4 after signal transacting;Signal transacting It is connected with the input of operation module 3 with the output end of intensity of illumination acquisition module 1, signal transacting and the input of operation module 3 End is connected with the output end of Synchronous signal acquisition module 2, signal transacting and the output end and unit effect module 4 of operation module 3 Input be connected, the output end of remote control module 5 is connected with signal transacting with the input of operation module 3.
The unit effect module 4 is used to receive the instruction from signal transacting and operation module 3 and by instruction to its institute The LED of control carries out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to 12 volts of alternating currents Direct current after rectification;The input of unit effect module 4 is connected with signal transacting with the output end of operation module 3.
The output end of the remote control module 5 is connected with signal transacting with the terminal of single-chip microcomputer in operation module 3, using infrared Remote control LED is dimmed and switching function control.
A kind of indoor LED illumination dimming controlling method, the control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module 1 in B, LED illumination light adjusting and controlling device is acquired to intensity of illumination, and by signal Send into signal transacting and the single-chip microcomputer in operation module 3;Synchronous signal acquisition module 2 is acquired to voltage synchronous signal, and Signal is sent into signal transacting and the single-chip microcomputer in operation module 3;
C, use remote control module 5 carry out related setting;
D, signal transacting and operation module 3 are according to intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, remote control module 5 information provided carry out comprehensive distinguishing, and control information is passed into unit effect module 4, so that it is bright to obtain desired LED illumination Degree.
It is as follows the step of the processing method of signal transacting and the single-chip microcomputer in operation module 3 in the step D:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module 3 judge whether synchronizing signal is high level, when synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, when synchronizing signal state is high level, into the next of synchronizing signal Judge sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal shape When state is low level, step S4 is transferred to;
Step S4, signal transacting and operation module 3 read in ambient light and shine strength signal;
Step S5, signal transacting and operation module 3 are handled the signal data that remote control module is sent again;
Step S6, signal transacting and operation module 3 enter the delay that two time spans are respectively t1 and t2;Full-wave rectification Cycle T=0.01s of voltage, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control, two Time span is respectively that t1 and t2 delay time is arrived, then is transferred to step S7;
It is 100 that step S7, signal transacting and the single-chip microcomputer STC89C52 of operation module 3 P2.0 mouths, which send a time span, μ s low pulse, so that the triggering and conducting of controllable silicon SCR 1 in control unit effect module 4, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting enters back into the judgement sentence of synchronizing signal with operation module 3;When synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
Specifically, intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect Module 4 and remote control module 5 are answered, the concrete composition and structure of this 5 modules are as follows:
The intensity of illumination acquisition module 1 comprising photo resistance CRS1, adjustable resistance R14, fixed value resistance R7, R11, R12, R13, R15, electric capacity C4, modulus conversion chip ADC0804;Photo resistance CRS1 one end is connected with 5V power supplys, other end difference Connect fixed value resistance R7 and adjustable resistance R14 one end;Resistance R7 another termination analog-digital converter ADC0804 Vin (+) draws Pin;Resistance R14 another terminating resistor R13 one end;The resistance R13 other end meets analog-digital converter ADC0804 Vin respectively One end of (-) pin and electric capacity C4;The electric capacity C4 other end connects ADC0804 CLKIN pins and resistance R15 one end respectively; Resistance R15 another termination analog-digital converter ADC0804 CLKR pins;A resistance R12 termination 5V power supplys, other end difference Connect analog-digital converter ADC0804 Vref pins and resistance R11 one end;Resistance R11 another termination analog-digital converter ADC0804 DGND pins;Analog-digital converter ADC0804 DGND pins, Vin (-) pin, AGND pins connects together and connect Ground;Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 connects signal transacting and operation respectively Module(3)Pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 of middle STC89C52 single-chip microcomputers;Modulus turns Pin P3.2, P3.6, the P3.7 of parallel operation ADC0804 pin CS, WR, RD respectively with single-chip microcomputer STC89C52 are respectively with being connected;
The Synchronous signal acquisition module 2 include optocoupler Optoisolator2, resistance R1, R2, R3, R4, voltage-stabiliser tube D1, Rectifier bridge stack Bridge1, transformer Transformer1;Transformer Transformer1 high pressure termination 220V civil powers, 12V is handed over Stream low-voltage output connects rectifier bridge stack Bridge1 AC, and the anode of rectifier bridge stack Bridge1 DC side output connects respectively Resistance R1 one end and the anode of the controllable silicon SCR 1 of unit effect module 4;The one of resistance R1 other end difference connecting resistance R2 End and voltage-stabiliser tube D1 negative electrode;The anode of resistance R2 another termination optocoupler Optoisolator2 light emitting diode;Optocoupler It is negative that negative electrode, voltage-stabiliser tube D1 anode and the rectifier bridge stack Bridge1 DC sides of Optoisolator2 light emitting diode are exported Termination is together;Colelctor electrode termination 5V power supplys, emitter stage difference the connecting resistance R3 and R4 of optocoupler Optoisolator2 triode One end;Resistance R4 other end ground connection;Resistance R3 another termination signal transacting and STC89C52 single-chip microcomputers in operation module 3 Pin P0.6;
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit, signal transacting and operation with operation module 3 In module 3 single-chip microcomputer STC89C52 pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 respectively with illumination Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 correspondence connects in intensity collection module 1 Connect, single-chip microcomputer STC89C52 pin P3.2, P3.6, P3.7 connect with analog-digital converter ADC0804 pin CS, WR, RD respectively Connect;Single-chip microcomputer STC89C52 pin P0.6 is connected with the resistance R3 of Synchronous signal acquisition module 2 one end;Single-chip microcomputer STC89C52 pin P2.0 is connected with the resistance R7 of unit effect module 4 one end;Single-chip microcomputer STC89C52 pin P3.3 The IN ends for receiving head HX1838 with the infrared remote control in remote control module 5 are connected;
The unit effect module 4 includes optocoupler Optoisolator1;Resistance R5, R6, R7, diode D2, LED LED1, LED2, LED3, LED4, controllable silicon SCR 1;The rectifier bridge stack Bridge1 of Synchronous signal acquisition module 2 DC side output One end connection of anode 1. respectively with the anode and resistance R5 of the controllable silicon SCR 1 of unit effect module 4;The resistance R5 other end It is connected with the colelctor electrode of optocoupler Optoisolator1 triode, its emitter stage connects diode D2 anode;Diode D2 the moon Pole meets the gate pole G of controllable silicon SCR 1;The negative electrode K of controllable silicon SCR 1 connects LED4 anode, and LED4 negative electrode connects LED3 anode; LED3 negative electrode connects LED2 anode;LED2 negative electrode connects LED1 anode;It is whole that LED1 negative electrode connects Synchronous signal acquisition module 2 Flow the bridge heap Bridge1 negative terminal of DC side output 2.;Resistance R6 one end is connected with 5V power supplys, the other end and optocoupler The anode connection of Optoisolator1 light emitting diode, the negative electrode of light emitting diode is connected with resistance R7 one end;Resistance R7 The other end be connected with signal transacting with the pin P2.0 of single-chip microcomputer in operation module 3;
The remote control module 5 receives head HX1838, resistance R8, R9, light emitting diode D3 comprising infrared remote control;Resistance R9's One termination 5V power supplys, other end sending and receiving optical diode D3 anode;Light emitting diode D3 negative electrode connects infrared remote control and receives head HX1838 GND ends;Infrared remote control receives head HX1838 VCC termination 5V power supplys, GND ends ground connection;A resistance R8 termination 5V Power supply, another termination infrared remote control receives head HX1838 IN ends;Infrared remote control receives head HX1838 IN termination signals processing With operation module(3)Middle single-chip microcomputer STC89C52 pin P3.3.
Embodiment 4:As shown in figures 1-8, a kind of indoor LED illumination light adjusting and controlling device, including intensity of illumination acquisition module 1st, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect module 4 and remote control module 5, totally five modules; The lead-out terminal of the intensity of illumination acquisition module 1 is connected with signal transacting with the input terminal of operation module 3, and synchronizing signal is adopted The lead-out terminal of collection module 2 is connected with the input terminal of signal processing operations module 3, signal transacting and the output of operation module 3 Terminal is connected with the input terminal of unit effect module 4, in the lead-out terminal and signal transacting and operation module 3 of remote control module 5 The terminal of single-chip microcomputer is connected.
Brightness of the intensity of illumination acquisition module 1 to detect available light, is carried out preliminary to the information collected Processing, and send it to signal transacting and operation module 3, control the brightness of LED, its output end and signal transacting and behaviour The input terminal for making the single-chip microcomputer in module 3 is connected.
The input of the lead-out terminal of Synchronous signal acquisition module 2 and signal transacting and the single-chip microcomputer in operation module 3 Son is connected, to detect synchronizing signal.
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit with operation module 3, strong for receiving illumination Acquisition module 1 and the signal of Synchronous signal acquisition module 2 are spent, to being sent to unit effect module 4 after signal transacting;Signal transacting It is connected with the input of operation module 3 with the output end of intensity of illumination acquisition module 1, signal transacting and the input of operation module 3 End is connected with the output end of Synchronous signal acquisition module 2, signal transacting and the output end and unit effect module 4 of operation module 3 Input be connected, the output end of remote control module 5 is connected with signal transacting with the input of operation module 3.
The unit effect module 4 is used to receive the instruction from signal transacting and operation module 3 and by instruction to its institute The LED of control carries out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to 12 volts of alternating currents Direct current after rectification;The input of unit effect module 4 is connected with signal transacting with the output end of operation module 3.
The output end of the remote control module 5 is connected with signal transacting with the terminal of single-chip microcomputer in operation module 3, using infrared Remote control LED is dimmed and switching function control.
A kind of indoor LED illumination dimming controlling method, the control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module 1 in B, LED illumination light adjusting and controlling device is acquired to intensity of illumination, and by signal Send into signal transacting and the single-chip microcomputer in operation module 3;Synchronous signal acquisition module 2 is acquired to voltage synchronous signal, and Signal is sent into signal transacting and the single-chip microcomputer in operation module 3;
C, use remote control module 5 carry out related setting;
D, signal transacting and operation module 3 are according to intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, remote control module 5 information provided carry out comprehensive distinguishing, and control information is passed into unit effect module 4, so that it is bright to obtain desired LED illumination Degree.
It is as follows the step of the processing method of signal transacting and the single-chip microcomputer in operation module 3 in the step D:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module 3 judge whether synchronizing signal is high level, when synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, when synchronizing signal state is high level, into the next of synchronizing signal Judge sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal shape When state is low level, step S4 is transferred to;
Step S4, signal transacting and operation module 3 read in ambient light and shine strength signal;
Step S5, signal transacting and operation module 3 are handled the signal data that remote control module is sent again;
The remote control one that the present invention is used has shared six press keys:Red key, green key, Huang Jian, Lan Jian, F1 key and F2 keys, Parameter during remote control signal receiver corresponding to these buttons is respectively:CH=1, CH=2, CH=3, CH=4, m=1, m=2, CH is mould The parameter of formula conversion, m is brightness regulation parameter.Assign initial value CH=0, m=0.Hot key, green key, Huang Jian, Lan Jian are not pressed When, if (CH==0) set up, system performs compatible light-modulating mode, and intelligent dimming and remote control light modulating all work;Hot key is pressed When, if (CH==1) set up, system intelligent dimming once, and gives assignment CH=0, into compatible light-modulating mode;When green key is pressed, If (CH==2) set up, system abolishes intelligent dimming, now, can only use remote control to carry out the regulation of brightness;When yellow key is pressed When, if (CH==3) set up, system enters 100% luminance patterns, and now LED has been adjusted to high-high brightness, and in this mode, no The regulation of brightness is supported again;When blue key is pressed, if (CH==4) set up, this is switching mode, for the light on and off of remote control LED lamp, After access switch pattern, unless pressed Lan Jian again once, make CH=4, otherwise program is absorbed in endless loop, other control instructions all without Method is performed, and LED is off;When F1 keys are pressed, if (m==1) set up, brightness subtracts regulation once;When F2 keys are pressed, if (m ==2) are set up, and brightness increases regulation once.
Step S6, signal transacting and operation module 3 enter the delay that two time spans are respectively t1 and t2;Full-wave rectification Cycle T=0.01s of voltage, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control, two Time span is respectively that t1 and t2 delay time is arrived, then is transferred to step S7;
It is 100 that step S7, signal transacting and the single-chip microcomputer STC89C52 of operation module 3 P2.0 mouths, which send a time span, μ s low pulse, so that the triggering and conducting of controllable silicon SCR 1 in control unit effect module 4, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting enters back into the judgement sentence of synchronizing signal with operation module 3;When synchronizing signal is not high electricity Usually, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
In addition, there is interruption in program, when meeting interrupt condition, interruption breakpoint will be produced, in being produced at breakpoint Break and respond, interrupt service and interrupt return, the operation of main program can be entered after return breakpoint.Because the generation of breakpoint is randomness And have certain response time, the control failure of short time can be caused, the time is the break period to add 1 ~ 2 controlling cycles, is made Into influence be LED flicker once.
Specifically, intensity of illumination acquisition module 1, Synchronous signal acquisition module 2, signal transacting and operation module 3, unit effect Module 4 and remote control module 5 are answered, the concrete composition and structure of this 5 modules are as follows:
The intensity of illumination acquisition module 1 comprising photo resistance CRS1, adjustable resistance R14, fixed value resistance R7, R11, R12, R13, R15, electric capacity C4, modulus conversion chip ADC0804;Photo resistance CRS1 one end is connected with 5V power supplys, other end difference Connect fixed value resistance R7 and adjustable resistance R14 one end;Resistance R7 another termination analog-digital converter ADC0804 Vin (+) draws Pin;Resistance R14 another terminating resistor R13 one end;The resistance R13 other end meets analog-digital converter ADC0804 Vin respectively One end of (-) pin and electric capacity C4;The electric capacity C4 other end connects ADC0804 CLKIN pins and resistance R15 one end respectively; Resistance R15 another termination analog-digital converter ADC0804 CLKR pins;A resistance R12 termination 5V power supplys, other end difference Connect analog-digital converter ADC0804 Vref pins and resistance R11 one end;Resistance R11 another termination analog-digital converter ADC0804 DGND pins;Analog-digital converter ADC0804 DGND pins, Vin (-) pin, AGND pins connects together and connect Ground;Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 connects signal transacting and operation respectively Module(3)Pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 of middle STC89C52 single-chip microcomputers;Modulus turns Pin P3.2, P3.6, the P3.7 of parallel operation ADC0804 pin CS, WR, RD respectively with single-chip microcomputer STC89C52 are respectively with being connected;
The Synchronous signal acquisition module 2 include optocoupler Optoisolator2, resistance R1, R2, R3, R4, voltage-stabiliser tube D1, Rectifier bridge stack Bridge1, transformer Transformer1;Transformer Transformer1 high pressure termination 220V civil powers, 12V is handed over Stream low-voltage output connects rectifier bridge stack Bridge1 AC, and the anode of rectifier bridge stack Bridge1 DC side output connects respectively Resistance R1 one end and the anode of the controllable silicon SCR 1 of unit effect module 4;The one of resistance R1 other end difference connecting resistance R2 End and voltage-stabiliser tube D1 negative electrode;The anode of resistance R2 another termination optocoupler Optoisolator2 light emitting diode;Optocoupler It is negative that negative electrode, voltage-stabiliser tube D1 anode and the rectifier bridge stack Bridge1 DC sides of Optoisolator2 light emitting diode are exported Termination is together;Colelctor electrode termination 5V power supplys, emitter stage difference the connecting resistance R3 and R4 of optocoupler Optoisolator2 triode One end;Resistance R4 other end ground connection;Resistance R3 another termination signal transacting and STC89C52 single-chip microcomputers in operation module 3 Pin P0.6;
The signal transacting includes STC89C52 single-chip microcomputers and its peripheral circuit, signal transacting and operation with operation module 3 In module 3 single-chip microcomputer STC89C52 pin P1.0, P1.1, P1.2, P1.3, P1.4, P1..5, P1.6, P1.7 respectively with illumination Analog-digital converter ADC0804 pin DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7 correspondence connects in intensity collection module 1 Connect, single-chip microcomputer STC89C52 pin P3.2, P3.6, P3.7 connect with analog-digital converter ADC0804 pin CS, WR, RD respectively Connect;Single-chip microcomputer STC89C52 pin P0.6 is connected with the resistance R3 of Synchronous signal acquisition module 2 one end;Single-chip microcomputer STC89C52 pin P2.0 is connected with the resistance R7 of unit effect module 4 one end;Single-chip microcomputer STC89C52 pin P3.3 The IN ends for receiving head HX1838 with the infrared remote control in remote control module 5 are connected;
The unit effect module 4 includes optocoupler Optoisolator1;Resistance R5, R6, R7, diode D2, LED LED1, LED2, LED3, LED4, controllable silicon SCR 1;The rectifier bridge stack Bridge1 of Synchronous signal acquisition module 2 DC side output One end connection of anode 1. respectively with the anode and resistance R5 of the controllable silicon SCR 1 of unit effect module 4;The resistance R5 other end It is connected with the colelctor electrode of optocoupler Optoisolator1 triode, its emitter stage connects diode D2 anode;Diode D2 the moon Pole meets the gate pole G of controllable silicon SCR 1;The negative electrode K of controllable silicon SCR 1 connects LED4 anode, and LED4 negative electrode connects LED3 anode; LED3 negative electrode connects LED2 anode;LED2 negative electrode connects LED1 anode;It is whole that LED1 negative electrode connects Synchronous signal acquisition module 2 Flow the bridge heap Bridge1 negative terminal of DC side output 2.;Resistance R6 one end is connected with 5V power supplys, the other end and optocoupler The anode connection of Optoisolator1 light emitting diode, the negative electrode of light emitting diode is connected with resistance R7 one end;Resistance R7 The other end be connected with signal transacting with the pin P2.0 of single-chip microcomputer in operation module 3;
The remote control module 5 receives head HX1838, resistance R8, R9, light emitting diode D3 comprising infrared remote control;Resistance R9's One termination 5V power supplys, other end sending and receiving optical diode D3 anode;Light emitting diode D3 negative electrode connects infrared remote control and receives head HX1838 GND ends;Infrared remote control receives head HX1838 VCC termination 5V power supplys, GND ends ground connection;A resistance R8 termination 5V Power supply, another termination infrared remote control receives head HX1838 IN ends;Infrared remote control receives head HX1838 IN termination signals processing With operation module(3)Middle single-chip microcomputer STC89C52 pin P3.3.
The specific embodiment of the present invention is explained in detail above in conjunction with accompanying drawing, but the present invention is not limited to above-mentioned reality Example is applied, can also be on the premise of present inventive concept not be departed from the knowledge that those of ordinary skill in the art possess Various changes can be made.

Claims (7)

1. a kind of indoor LED illumination dimming controlling method, it is characterised in that:The control method is comprised the following steps that:
A, LED illumination light adjusting and controlling device is switched on power first;
Intensity of illumination acquisition module in B, LED illumination light adjusting and controlling device(1)Intensity of illumination is acquired, and signal is sent Enter signal transacting and operation module(3)In single-chip microcomputer;Synchronous signal acquisition module(2)Voltage synchronous signal is acquired, And signal is sent into signal transacting and operation module(3)In single-chip microcomputer;
C, use remote control module(5)Carry out related setting;
D, signal transacting and operation module(3)According to intensity of illumination acquisition module(1), Synchronous signal acquisition module(2), remote control mould Block(5)The information of offer carries out comprehensive distinguishing, and control information is passed into unit effect module(4), so as to obtain desired LED Brightness of illumination;
Signal transacting and operation module in the step D(3)In single-chip microcomputer processing method the step of it is as follows:
After step S1, program bring into operation, first carry out each module initialization of system and assign initial value to each parameter;
Step S2, signal transacting and operation module(3)Whether be high level, when synchronizing signal is not high level if judging synchronizing signal When, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, next into synchronizing signal sentences Conclusion sentence step S3;
Step S3, when synchronizing signal not be low level when, program waits and repeats synchronizing signal state, when synchronizing signal state is During low level, step S4 is transferred to;
Step S4, signal transacting and operation module(3)Read in ambient light and shine strength signal;
Step S5, signal transacting and operation module(3)The signal data that remote control module is sent is handled again;
Step S6, signal transacting and operation module(3)It is respectively t1 and t2 delay into two time spans;Full-wave rectification electricity Cycle T=0.01s of pressure, during synchronous signal acquisition, single-chip microcomputer can along each cycle waveform, in trailing edge phase Corresponding place detects low level signal, is used as the benchmark of control, finds after benchmark, and it is t first to carry out length1Prolong When, control is moved to next cycle, wherein the location is the minimum angle of flow of controllable silicon after delay, in order to controllable silicon The angle of flow is controlled, in addition it is also necessary to carry out a length for t2Delay, thyristor operating angle α size and time t1Value It is relevant, the conversion relation between them, the control to bulb brightness is converted into delay length t2Control, two Time span is respectively that t1 and t2 delay time is arrived, then is transferred to step S7;
Step S7, signal transacting and operation module(3)It is 100 μ s that single-chip microcomputer STC89C52 P2.0 mouths, which send a time span, Low pulse so that control unit effect module(4)In the triggering and conducting of controllable silicon SCR 1, loop where LED from this time Conducting state is will always be in, until the end cycle, untill voltage is changed into 0, the control of next cycle, controllable silicon is entered back into Each angle of flow correspond to corresponding brightness value, the angle of flow is constant, and the brightness of bulb also keeps constant, to bulb brightness Control is converted into delay length t2Control;
Step S8, signal transacting and operation module(3)Enter back into the judgement sentence of synchronizing signal;When synchronizing signal is not high level When, program waits and repeats synchronizing signal state, and when synchronizing signal state is high level, program returns to first and judges language Sentence, is transferred to step S2.
2. a kind of control device of the indoor LED illumination dimming controlling method described in utilization claim 1, it is characterised in that:Bag Include intensity of illumination acquisition module(1), Synchronous signal acquisition module(2), signal transacting and operation module(3), unit effect module (4)And remote control module(5), totally five modules;The intensity of illumination acquisition module(1)Lead-out terminal and signal transacting and operation Module(3)Input terminal be connected, Synchronous signal acquisition module(2)Lead-out terminal and signal processing operations module(3)It is defeated Enter terminal to be connected, signal transacting and operation module(3)Lead-out terminal and unit effect module(4)Input terminal be connected, it is distant Control module(5)Lead-out terminal and signal transacting and operation module(3)The terminal of middle single-chip microcomputer is connected.
3. the control device of indoor LED illumination dimming controlling method according to claim 2, it is characterised in that:The light According to intensity collection module(1)Brightness to detect available light, carries out preliminary processing to the information that is collected, and by its Send to signal transacting and operation module(3), control the brightness of LED, its output end and signal transacting and operation module(3)In Single-chip microcomputer input terminal be connected.
4. the control device of indoor LED illumination dimming controlling method according to claim 2, it is characterised in that:It is described same Walk signal acquisition module(2)Lead-out terminal and signal transacting and operation module(3)In single-chip microcomputer input terminal be connected, be used to Detect synchronizing signal.
5. the control device of indoor LED illumination dimming controlling method according to claim 2, it is characterised in that:The letter Number processing and operation module(3)Comprising STC89C52 single-chip microcomputers and its peripheral circuit, for receiving intensity of illumination acquisition module(1) And Synchronous signal acquisition module(2)Signal, to being sent to unit effect module after signal transacting(4);Signal transacting and operation Module(3)Input and intensity of illumination acquisition module(1)Output end be connected, signal transacting and operation module(3)Input End and Synchronous signal acquisition module(2)Output end be connected, signal transacting and operation module(3)Output end and unit effect mould Block(4)Input be connected, remote control module(5)Output end and signal transacting and operation module(3)Input be connected.
6. the control device of indoor LED illumination dimming controlling method according to claim 2, it is characterised in that:The list First effect module(4)Signal transacting and operation module are come from for receiving(3)Instruction and by the LED that is controlled it of instruction Carry out light modulation and the control of switching function;The power supply for selecting LED is rectified bridge to straight after 12 volts of AC rectifications Stream electricity;Unit effect module(4)Input and signal transacting and operation module(3)Output end be connected.
7. the control device of indoor LED illumination dimming controlling method according to claim 2, it is characterised in that:It is described distant Control module(5)Output end and signal transacting and operation module(3)The terminal of middle single-chip microcomputer is connected, using IR remote controller pair LED carries out light modulation and the control of switching function.
CN201510184582.8A 2015-04-20 2015-04-20 A kind of indoor LED illumination light adjusting and controlling device and method Expired - Fee Related CN104853484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510184582.8A CN104853484B (en) 2015-04-20 2015-04-20 A kind of indoor LED illumination light adjusting and controlling device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510184582.8A CN104853484B (en) 2015-04-20 2015-04-20 A kind of indoor LED illumination light adjusting and controlling device and method

Publications (2)

Publication Number Publication Date
CN104853484A CN104853484A (en) 2015-08-19
CN104853484B true CN104853484B (en) 2017-10-27

Family

ID=53852742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510184582.8A Expired - Fee Related CN104853484B (en) 2015-04-20 2015-04-20 A kind of indoor LED illumination light adjusting and controlling device and method

Country Status (1)

Country Link
CN (1) CN104853484B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106016079A (en) * 2016-07-22 2016-10-12 福建船政交通职业学院 Tunnel lamp and control method thereof
CN107241840A (en) * 2017-04-01 2017-10-10 中国科学院深圳先进技术研究院 A kind of indoor light brightness regulating apparatus and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202050560U (en) * 2011-01-21 2011-11-23 苏州厚德影视技术有限公司 Circuit control system of light-emitting diode (LED) lamp
CN203880484U (en) * 2014-05-12 2014-10-15 浙江农林大学 Brightness-adjustable red, blue and far-red infrared remote control LED combined light supplement lamp band

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752928A (en) * 2012-06-28 2012-10-24 江南大学 Master-slave remote control dimming lamp
CN203407052U (en) * 2013-08-16 2014-01-22 江南大学 Intelligent optical control lamp system
CN104378871A (en) * 2013-08-16 2015-02-25 江南大学 Intelligent optical control lamp system
CN204795693U (en) * 2015-04-20 2015-11-18 昆明理工大学 Indoor LED illumination dimming control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202050560U (en) * 2011-01-21 2011-11-23 苏州厚德影视技术有限公司 Circuit control system of light-emitting diode (LED) lamp
CN203880484U (en) * 2014-05-12 2014-10-15 浙江农林大学 Brightness-adjustable red, blue and far-red infrared remote control LED combined light supplement lamp band

Also Published As

Publication number Publication date
CN104853484A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN206894939U (en) The controller of LED with bluetooth
CN203984735U (en) A kind of drive circuit of LED lighting device
CN110519879A (en) LED drive power based on the toning of 2.4G remote control light modulating
CN101420802A (en) The LED constant-current source that is used for the AC controllable silicon light modulation mode of illuminator
CN107666744A (en) LED touch stepless dimming color-temperature regulating driving power and its control method
CN206894944U (en) A kind of circuit and its encoding control circuit of sinusoidal wave decoder regulation electrical parameter
CN107197562A (en) A kind of radio controllable LED lamp of variable color-temperature
CN104507231A (en) IoT (Internet of Things) lamp energy-saving controller based on ZigBee technology
CN108200689A (en) LED illumination device light synchronization system based on alternating current voltage zero crossing
CN201795308U (en) Indoor LED lamp capable of realizing wireless internetworking on basis of ZigBee technology
CN105307315A (en) Color LED lamp string driving circuit and LED lamp string
CN104853484B (en) A kind of indoor LED illumination light adjusting and controlling device and method
CN204335111U (en) A kind of LED novel intelligent power supply of binary channels tunable optical color-temperature regulating
CN104135793B (en) A kind of circuit using on and off switch to adjust electrical parameter
CN105025641A (en) Light control system and method
CN201307960Y (en) LED constant-current source of alternating current controlled silicon dimming mode
CN103139991A (en) Light-adjustable light-emitting diode (LED) drive circuit
CN110493920A (en) A kind of automatic control intelligent LED lamp
CN110366296A (en) Pass through the controller of power line communication, LED lamp and LED control system
CN204795693U (en) Indoor LED illumination dimming control device
CN206332885U (en) Remote lighting control system based on internet of things
CN204993986U (en) Novel exchange LED lamp
CN207443178U (en) LED touch stepless dimming color-temperature regulating driving power
CN208739455U (en) LED touch dimmer temperature driving power
CN106937467B (en) The long-range APP of incandescent lamp intelligent switch synchronous method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171027