CN105228297B - A kind of control method and device of breath light - Google Patents

A kind of control method and device of breath light Download PDF

Info

Publication number
CN105228297B
CN105228297B CN201510615800.9A CN201510615800A CN105228297B CN 105228297 B CN105228297 B CN 105228297B CN 201510615800 A CN201510615800 A CN 201510615800A CN 105228297 B CN105228297 B CN 105228297B
Authority
CN
China
Prior art keywords
breath light
control circuit
control
circuit
processing unit
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.)
Active
Application number
CN201510615800.9A
Other languages
Chinese (zh)
Other versions
CN105228297A (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.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics Co Ltd
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 Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201510615800.9A priority Critical patent/CN105228297B/en
Publication of CN105228297A publication Critical patent/CN105228297A/en
Application granted granted Critical
Publication of CN105228297B publication Critical patent/CN105228297B/en
Active 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 electronic circuit field, discloses a kind of control method of breath light, including:After the preset condition of the corresponding breath light is not triggered or triggers closing, processing unit output pwm signal, the pwm signal is loaded on the corresponding each breath light connected respectively with the first control circuit by first control circuit, the corresponding each breath light of control is driven by the control parameter of the pwm signal, when the preset condition of the corresponding breath light is triggered, second control circuit driving corresponding with the breath light breath light is controlled by the processing unit.The program makes the breath light number of product from PWM mouthfuls of resource constraints.

Description

A kind of control method and device of breath light
Technical field
The present invention relates to electronic circuit field, more particularly to a kind of control method and device of breath light.
Background technology
In recent years, as living standard improves, requirement of the user to product does not terminate in function, in beautiful, experience sense Demand strengthens further.Background light, applied to the light-permeable button of electronic product, light passes through character window, dashes forward in dark situation Aobvious character.Breath light, is a kind of frequency of the similar breathing of foundation, from bright to dark, from secretly to the bright dynamic back of the body slowly circulated Scape lighting effects.And when keypress function does not trigger, breathing Dynamic Announce is presented in button background lamp, and when keypress function triggers When, then background light is always on.Breath light, the lighting effects extremely dazzled as a kind of dynamic, progressively applied to various band backlights, instruction In lamp new product.
The important judging quota of breath light, is the compliance in the bright dark handoff procedure of light, it is converted to technical requirements, i.e., It is the brightness change of requirement light, is intended to stepless continuous change.MCU controls product at present, is controlled generally by pwm signal The duty cycle of LED power break-make, to control average energy of the loading on LED, realizes that stepless continuous adjusts the mesh of lamplight brightness 's.
By taking two LED light as an example, as shown in figure A, LED1 and LED2 are lighted respectively as button 1 and the background light of button 2 The character window on button can be highlighted.When keypress function 1 and keypress function 2 are not triggered, MCU connects with LED1 and LED2 respectively PWM mouths difference the output pwm signal LED1_PWM and LED2_PWM connect, controls triode switch Q10 and Q20, Q1 and Q2 respectively Break-make, so as to control the break-make of voltage and current of the loading on LED1 and LED2.By the change of pwm signal duty cycle, come The time ratio of loading Current Voltage on and off on LED1 and LED2 is adjusted, is converted to the change of mean power, it is final to realize The bright dark alternate effect of breathing of LED1 and LED2.When PWM duty cycle is fixed, LED luminance is also fixed.
When keypress function 1 triggers, when keypress function 2 does not trigger:MCU outputs signal LED1_PWM is set as a fixation Duty cycle, such as 90%, then the mean power on loading LED1 is fixed, in being always on state.The duty cycle of LED2_PWM is protected Hold as variable condition before, then LED2 continues to keep breathing state.When keypress function 2 triggers, keypress function 1 does not trigger When, it is on the contrary.
As above, 1 PWM mouthfuls can only drive control 1 breath light, have N number of breath light, it is necessary to N number of PWM mouthfuls drives, Driving breath light quantity is equal to required PWM mouthfuls of quantity, and the special input/output ports of PWM (hereinafter referred to as PWM mouthfuls) are that MCU carries money Source, for the realization of the input and output of pwm signal, quantity be it is fixed, it is different because MCU models are different.But quantity is generally all Less, when the MCU of products application is simpler, the PWM mouths that MCU possesses are less.And when breath light quantity is higher than PWM mouthfuls of quantity, It can not just be realized by the scheme of as above 1 PWM mouthfuls 1 breath light lamp of drive control respectively.In other words can product breath light PWM resource constraint of the number by MCU.
The content of the invention
First purpose of the embodiment of the present invention is to provide a kind of control method of breath light, makes the breath light number of product From PWM mouthfuls of resource constraints.
Second purpose of the embodiment of the present invention is to provide a kind of control device of breath light, makes the breath light number of product From PWM mouthfuls of resource constraints.
A kind of control method of breath light provided in an embodiment of the present invention, including:
After the preset condition of the corresponding breath light is not triggered or triggers closing, processing unit output pwm signal, The pwm signal is loaded in the corresponding each breathing connected respectively with the first control circuit by first control circuit On lamp, corresponding each breath light is controlled to be driven by the control parameter of the pwm signal,
When the preset condition of the corresponding breath light is triggered, controlled by the processing unit corresponding to the breath light Second control circuit drive the breath light.
Alternatively, one-way isolation circuit is equipped between the first control circuit and each breath light, it is and each described The output terminal of the corresponding each second control circuit of breath light is connected to corresponding each one-way isolation circuit and institute It is corresponding described unidirectional after the preset condition of the corresponding breath light is not triggered or triggers closing between stating breath light Isolation circuit turns on, and the corresponding breath light is driven by first control circuit, when the preset condition of the corresponding breath light It is triggered, the corresponding one-way isolation circuit does not turn on, and the corresponding breath light is driven by second control circuit.
Alternatively, on-off circuit is equipped between the first control circuit and each breath light, with each breathing The output terminal of the corresponding each second control circuit of lamp is connected on corresponding each on-off circuit, when corresponding institute State breath light preset condition be not triggered or trigger closing after, the corresponding on-off circuit disconnects corresponding second control Circuit turn-on first control circuit processed, the corresponding breath light are driven by first control circuit, when the corresponding breath light Preset condition be triggered, the corresponding on-off circuit disconnects the corresponding second control electricity of the first control circuit conducting Road, the corresponding breath light are driven by second control circuit.
Alternatively, further included before the processing unit output pwm signal, when the default bar of the corresponding breath light After part is not triggered or triggers closing, the processing unit receives the request for starting breath light and corresponding parameter, according to described Request and parameter, configure the control parameter of the pwm signal, are controlled and loaded by first control circuit according to the control parameter The break-make of voltage and current on each breath light,
Further included after the preset condition of the breath light is triggered, status request letter is sent to the processing unit Breath, the processing unit receives the status request information of the corresponding breath light, and is controlled according to the status request information Second control circuit corresponding with the breath light drives the breath light.
Alternatively, the base stage of the triode Q33 of the first control circuit connects the PWM mouths of the processing unit, transmitting Pole is grounded through resistance R33, one end of collector connection resistance R31 and the base stage of triode Q31, the other end of the resistance R31 The first feeder ear is connected, the emitter of the triode Q31 also connects first feeder ear, the current collection of the triode Q31 Pole connects each breath light by one-way isolation circuit or on-off circuit.
The base stage of the triode Q22 of the second control circuit connects the delivery outlet of the processing unit, and emitter is grounded, One end of collector connection resistance R21 and the base stage of triode Q21, the other end of the resistance R21 connect the second feeder ear, institute The emitter for stating triode Q21 also connects second feeder ear, and the collector of the triode Q21 is connected to corresponding described Between one-way isolation circuit and the breath light, or on corresponding on-off circuit.
In addition, the embodiment of the present invention additionally provides a kind of control device of breath light, including:Processing unit and with it is described The first control circuit and second control circuit that processing unit connects respectively, wherein,
After the preset condition of the corresponding breath light is not triggered or triggers closing, the processing unit is used to export Pwm signal, the pwm signal are loaded by first control circuit and each described exhaled with what the first control circuit was connected respectively Inhale on lamp, control each breath light to be driven by the control parameter of the pwm signal, when the preset condition of the breath light is touched Hair, controls second control circuit corresponding with the breath light to drive the breath light by the processing unit.
Alternatively, one-way isolation circuit is equipped between the first control circuit and each breath light, with each institute State the corresponding each second control circuit of breath light output terminal be connected to corresponding each one-way isolation circuit with Between the breath light, after the preset condition of the corresponding breath light is not triggered or triggers closing, the corresponding list Turned on to isolation circuit, the corresponding breath light is driven by first control circuit, when the default bar of the corresponding breath light Part is triggered, and the corresponding one-way isolation circuit does not turn on, and the corresponding breath light is driven by second control circuit.
Alternatively, on-off circuit is equipped between the first control circuit and each breath light, described is exhaled with each The output terminal for inhaling the corresponding each second control circuit of lamp is connected on corresponding each on-off circuit, when corresponding After the preset condition of the breath light is not triggered or triggers closing, the corresponding on-off circuit disconnects corresponding described second Control circuit turns on first control circuit, and the corresponding breath light is driven by first control circuit, when the corresponding breathing The preset condition of lamp is triggered, and the corresponding on-off circuit disconnects the corresponding second control electricity of the first control circuit conducting Road, the corresponding breath light are driven by second control circuit.
Alternatively, the processing unit includes first mode control unit and second mode control unit, further includes and institute State the first mode request unit of the first mode control unit connection of processing unit, the first mode control unit and first The input terminal connection of control circuit, after the preset condition of the corresponding breath light, which is not triggered or trigger, closes, described the One mode controlling unit is used to receive the request of the startup breath light sent by the first mode request unit and corresponding ginseng Number, according to the request and parameter, configures the control parameter of the pwm signal, passes through the first control according to the control parameter The break-make of voltage and current of the circuit control loading on each breath light,
Further include the second mode request unit being connected with the second mode control unit of the processing unit, described second The input terminal of mode controlling unit and second control circuit connects, for being followed by when what the preset condition of the breath light was triggered The status request information sent by the second mode request unit is received, and is controlled according to the status request information and is exhaled with described Inhale the corresponding second control circuit of lamp and drive the breath light, when the preset condition of the corresponding breath light is not triggered or touches After hair is closed, the second mode request unit does not send status request information, is sent and opened by the first mode request unit The request of dynamic breath light and corresponding parameter.
Alternatively, the base stage of the triode Q33 of the first control circuit connects the PWM mouths of the processing unit, transmitting Pole is grounded through resistance R33, one end of collector connection resistance R31 and the base stage of triode Q31, the other end of the resistance R31 The first feeder ear is connected, the emitter of the triode Q31 also connects first feeder ear, the current collection of the triode Q31 Pole connects each breath light by one-way isolation circuit or on-off circuit,
The base stage of the triode Q22 of the second control circuit connects the delivery outlet of the processing unit, and emitter is grounded, One end of collector connection resistance R21 and the base stage of triode Q21, the other end of the resistance R21 connect the second feeder ear, institute The emitter for stating triode Q21 also connects second feeder ear, and the collector of the triode Q21 is connected to corresponding described Between one-way isolation circuit and the breath light, or on corresponding on-off circuit.
Therefore using the present embodiment technical solution, since processing unit is using several even 1 PWM mouthfuls of outputs Pwm signal controls multiple breath lights to realize that bright dark stepless continuous is adjustable, after the preset condition of certain breath light is triggered, and can be only It is vertical to control the breath light to be fixed on the state of being always on, the breath light and meet breath light demand, and can independently control, And 1 PWM mouthfuls of energy multiple breath light of drive control, the breath light number of product is from PWM mouthfuls of resource constraints.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other attached drawings according to these attached drawings.
A is schemed for a kind of electric operation control circuit figure of breath light in the prior art;
Fig. 1 is the control method flow chart of the first breath light provided by the invention;
Fig. 2 is the control method flow chart of second of breath light provided by the invention;
Fig. 3 is the control method flow chart of the third breath light provided by the invention;
Fig. 4 is the control method flow chart of the 4th kind of breath light provided by the invention;
Fig. 5 is the control method flow chart of the 5th kind of breath light provided by the invention;
Fig. 6 is a kind of electric operation control circuit figure of breath light provided by the invention;
Fig. 7 is the electric operation control circuit figure of another breath light provided by the invention;
Fig. 8 is the control device schematic diagram of the first breath light provided by the invention;
Fig. 9 is the control device schematic diagram of second of breath light provided by the invention;
Figure 10 is the control device schematic diagram of the third breath light provided by the invention;
Figure 11 is the control device schematic diagram of the 4th kind of breath light provided by the invention;
Figure 12 is a kind of electric operation control circuit figure of breath light provided by the invention;
Figure 13 is the electric operation control circuit figure of another breath light provided by the invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
The present embodiment provides a kind of control method of breath light, as shown in Figure 1, including:
101st, after the preset condition of the corresponding breath light is not triggered or triggers closing, processing unit output PWM Signal, the pwm signal are loaded in the corresponding each institute connected respectively with the first control circuit by first control circuit State on breath light, control corresponding each breath light to be driven by the control parameter of the pwm signal.Particular by described The change of pwm signal duty cycle, to adjust the time ratio of loading Current Voltage on and off on each breath light, is converted to flat The change of equal power, finally realizes the bright dark alternate effect of breathing of each breath light, when the duty cycle of the pwm signal is fixed When, the brightness of each breath light is also fixed.
102nd, when the preset condition of the breath light is triggered, the corresponding breath light disconnects and the described first control electricity The connection on road, controls second control circuit corresponding with the breath light to drive the breath light by the processing unit.It is described Preset condition can be that button triggers, or other triggering forms.The processing unit control is corresponding with the breath light Second control circuit drives the breath light to be always on state for what brightness was fixed.
It can be, but not limited to, as shown in Fig. 2, further include before step 101,
201st, after the preset condition of the breath light is not triggered or triggers closing, send and start to the processing unit The request of breath light and corresponding parameter, for example, start breath light state, the breath light cycle for 3 seconds or brightness range 5~ The parameters such as 20cd/m.
202nd, the processing unit receives the request for starting breath light and corresponding parameter.
203rd, according to the request and parameter, the control parameter of the pwm signal is configured, such as the waveform of PWM information Duty cycle, or cycle etc..
Step 204 and step 205 are identical with step 101 and 102 respectively, and referring to step 101 and 102, details are not described herein again.
It can be, but not limited to, as shown in figure 3, in step 102 or 205 after the preset condition of the breath light is triggered Further include,
301st, status request information is sent to the processing unit.Such as when the button of the breath light button that is pressed touches Status request information is sent to the processing unit after hair, the status request information needs certain to start during some function buttons A little background lights become to be always on state etc..When the preset condition of the breath light be not triggered or trigger closing after, i.e., do not press by Key, or after being triggered by key pressing again again by once triggering is closed after, do not send status request information to the processing unit, to The processing unit sends the request for starting breath light and corresponding parameter, performs step 201 to 205.
302nd, the processing unit receives the status request information of the corresponding breath light.
303rd, exhaled according to the status request information controls second control circuit driving corresponding with the breath light Inhale lamp.For example the breath light is driven to be always on state for what brightness was fixed.
It is as it can be seen that bright due to controlling multiple breath lights to realize using 1 PWM mouthfuls of output pwm signal using the processing unit Dark stepless continuous is adjustable, after the preset condition of certain breath light is triggered, and can the independent control breath light be fixed on often Bright state, the breath light and meets breath light demand, and can independently control, and 1 PWM mouthfuls can drive controls it is multiple Breath light, the breath light number of product is from PWM mouthfuls of resource constraints.
Embodiment 2:
The present embodiment and the difference of embodiment 1 are, equal between the first control circuit and each breath light Equipped with one-way isolation circuit, the output terminal of each second control circuit corresponding with each breath light is connected to accordingly Each one-way isolation circuit and the breath light between, can be, but not limited to, the one-way isolation circuit can be unidirectional Conductive diode, as shown in figure 4,
After the preset condition of the corresponding breath light is not triggered or triggers closing, 401, the corresponding list is performed Turned on to isolation circuit, the corresponding breath light is driven by first control circuit, and the breath light is bright dark alternate breathing Effect, when the preset condition of the corresponding breath light is triggered, execution 402, the corresponding one-way isolation circuit do not turn on, The corresponding breath light is driven by second control circuit, and the breath light is to be always on state.
As it can be seen that due to using the one-way isolation circuit, the first control circuit and second control circuit are controlled to each The driving of breath light, realizes and controls multiple breath lights to realize that bright dark stepless continuous is adjustable using 1 PWM mouthfuls, when certain breath light Preset condition be triggered after, and can the independent control breath light be fixed on the state of being always on, the breath light and satisfaction are exhaled Lamp demand is inhaled, and can independently be controlled.
Embodiment 3:
The present embodiment and the difference of embodiment 2 are, equal between the first control circuit and each breath light Equipped with on-off circuit, the output terminal of each second control circuit corresponding with each breath light is connected to corresponding each On the on-off circuit, the on-off circuit is can be, but not limited to including single-pole double-throw switch (SPDT) etc., as shown in figure 5,
After the preset condition of the corresponding breath light is not triggered or trigger closing, perform 501, it is corresponding described in open Powered-down road disconnects the corresponding second control circuit conducting first control circuit, and the corresponding breath light is by the first control electricity Road drives, and when the preset condition of the corresponding breath light is triggered, performs described in 502, the corresponding on-off circuit disconnects First control circuit turns on corresponding second control circuit, and the corresponding breath light is driven by second control circuit.
As it can be seen that due to using the on-off circuit, the first control circuit and second control circuit are controlled to each breathing The driving of lamp, realizes and controls multiple breath lights to realize that bright dark stepless continuous is adjustable using 1 PWM mouthfuls, pre- when certain breath light After if condition is triggered, but can the independent control breath light be fixed on the state of being always on, the breath light and meet breath light Demand, and can independently control.
Embodiment 4:
As shown in fig. 6, the base stage of the triode Q33 of the first control circuit connects the PWM mouths of the processing unit 10, Emitter E is grounded through resistance R33, one end of collector C connection resistance R31 and the base stage B of triode Q31, the resistance R31's The other end connects the first feeder ear, and the emitter E of the triode Q31 also connects first feeder ear, the triode Q31 Collector C pass through one-way isolation circuit and connect each LED breath lights.The one-way isolation circuit is diode D, described two The anode that the cathode of pole pipe D connects the collector C, the diode D of the triode Q31 connects the LED breath lights.
The delivery outlet of the base stage B connections processing unit 10 of the triode Q22 of the second control circuit, the output Mouth is such as I/O mouthfuls of the common input/output port of processing unit 10, and emitter E is grounded, one end of collector C connection resistance R21 The second feeder ear, the emitter of the triode Q21 are connected with the other end of the base stage B, the resistance R21 of triode Q21 Second feeder ear is connected, the collector C of the triode Q21 is connected to the corresponding one-way isolation circuit and is exhaled with described Between inhaling lamp, that is, it is connected to the anode of the diode D and the common port of the LED breath lights.
The first power supply terminal voltage V1, the second power supply terminal voltage V2, one-way isolation circuit turn-on voltage Vth, need to meet Following relation:V1≤V2+Vth, such as:V2=12V, Vth=0.7V, then V1 is no more than 12.7V, the diode D conducts One-way isolation circuit, can prevent the second feeder ear anti-channeling to the first feeder ear network.
Such as LED1 and LED2 lights the character window that can be highlighted on button respectively as button 1 and the background light of button 2 Mouthful.Processing unit 10 is led to using PWM mouthfuls of output pwm pulse bandwidth modulation signals LED_PWM, control LED breath light utility powers The break-make of triode Q33 and Q31 on road, as first control circuit.Processing unit uses the common height of common I/O mouthfuls output Low digital signal LED_EN controls the break-make of triode Q21 and Q22 on LED branches, as second control circuit, Mei Gesuo State LED breath lights and correspond to an one-way isolation circuit and a second control circuit respectively.Such as processing unit 10 uses commonly I/O mouthfuls export common height digital signal LED1_EN to control the break-make of triode Q21 and Q22 on LED1 branches, as Second control circuit 1, processing unit 10 control LED2 using the common height digital signal LED2_EN of common I/O mouthfuls output The break-make of triode Q21 and Q22 on branch, as second control circuit 2, foregoing circuit, which is only illustrated, drives two breath lights, And so on, such as increase to N number of LED breath lights, it is equally applicable.Corresponding common I/O mouthfuls of quantity need to only be increased to control the second control Circuit processed, and common I/O mouthful resources are the common resources of processing unit, at most, as above circuit is, it can be achieved that 1 PWM mouthfuls for quantity The bright dark conversion of multiple LED breath lights is realized in control, and again can independent control breath light to be always on state.
When the function button of LED1 and LED2 is not all triggered:Processing unit 10 sends pwm signal LED_PWM, and three Pole pipe Q31 and Q33 are in and press duty cycle on off operating mode, the Current Voltage of the first feeder ear by the loading of duty cycle interruption LED1 with On LED2, the pulse width duty cycle of change realizes the brightness of change, and LED1_EN, LED2_EN are placed in low electricity by processing unit 10 Flat, triode Q21 and Q22 in second control circuit 1 and second control circuit 2 are turned off.LED1 and LED2 is only by LED_PWM Control, is only driven by the first feeder ear, and as PWM duty cycle changes, LED luminance is in bright dark checker breathing state.
When pushing button 1,1 function of button is triggered, and 2 feature capability of button is not triggered:Processing unit 10 sends PWM letters Number LED_PWM, the first feeder ear are in and press duty cycle on off operating mode.LED1_EN puts high level, three poles in second control circuit 1 Pipe Q21 and Q22 are turned on.LED1 is driven at the same time by the first feeder ear and the second feeder ear, but diode D1 separates the first feeder ear, Power off the first feeder ear, LED1 influences from the first feeder ear, is only driven by stable second control circuit 1, and brightness is kept Holding goes steady state.LED2 is only controlled by LED_PWM, is driven by the first feeder ear, as pwm signal pulse width becomes Change, LED2 brightness is in bright dark checker state.Similarly, LED2 buttons are pressed, LED2 is always on, and LED1 brightness is in bright dark friendship For transition state.And so on, such as increase to N number of LED breath lights, it is equally applicable.
Embodiment 5:
The present embodiment and the difference of embodiment 4 are, as shown in fig. 7, the collector of the triode Q31 is by opening Powered-down road connects each breath light, and the collector of the triode Q21 is connected on corresponding on-off circuit.Can with but it is unlimited In the on-off circuit is single-pole double-throw switch (SPDT), and first feeder ear same can be held with second feeder ear can not also With end.After the preset condition of the corresponding breath light is not triggered or triggers closing, the corresponding on-off circuit disconnects The corresponding second control circuit conducting first control circuit, the corresponding breath light are driven by first control circuit, when The preset condition of the corresponding breath light is triggered, and the corresponding on-off circuit disconnects the first control circuit conducting phase The second control circuit answered, the corresponding breath light are driven by second control circuit.In control principle and embodiment 4 similarly, Referring to the description in embodiment 4, do not repeating.
As it can be seen that select to control the logical of the first control circuit and each second control circuit by on-off circuit It is disconnected, can also realize that 1 PWM mouthful control and realize that the bright of multiple LED breath lights secretly converts, and again can the breath light of independent control be State is always on, when the quantity increase of breath light, need to only increase corresponding common I/O mouthfuls of quantity to control second control circuit, and Common I/O mouthfuls of resources are the common resources of processing unit, and quantity is more.
Embodiment 6:
The present embodiment provides a kind of control device of breath light, as shown in figure 8, including:Processing unit 10 and with the place The first control circuit A and second control circuit B that reason unit 10 connects respectively, wherein,
The processing unit 10 is used for output pwm signal, the pwm signal by first control circuit A load with institute State on each breath light that first control circuit A is connected respectively, control each breath light to join by the control of the pwm signal Number driving, when the preset condition of the breath light is triggered, corresponding with the breath light the is controlled by the processing unit 10 Two control circuit B drive the breath light.
It can be, but not limited to, as shown in figure 9, the processing unit 10 includes first mode control unit 11 and second mode Control unit 12, further includes the first mode request unit being connected with the first mode control unit 11 of the processing unit 10 21, the first mode control unit 11 is connected with the input terminal of first control circuit A, please by the first mode for receiving The request for starting breath light and corresponding parameter that unit 21 is sent are asked, according to the request and parameter, configures the pwm signal Control parameter, according to the control parameter by first control circuit control A loading on each breath light voltage electricity The break-make of stream.
Further include the second mode request unit 22 being connected with the second mode control unit 12 of the processing unit 10, institute The input terminal that second mode control unit 12 is stated with second control circuit B is connected, for when the preset condition quilt of the breath light Triggering receives the status request information sent by the second mode request unit 22 afterwards, and according to the status request information Control second control circuit B corresponding with the breath light drives the breath light.
As it can be seen that the processing unit realized using the multiple breath lights of 1 PWM mouthful output pwm signal control it is bright secretly without cascade It is continuous adjustable, after the preset condition of certain breath light is triggered, and can the independent control breath light be fixed on the state of being always on, institute State breath light and meet breath light demand, and can independently control, and 1 PWM mouthfuls of energy multiple breath light of drive control, production The breath light number of product is from PWM mouthfuls of resource constraints.
Embodiment 7:
The present embodiment and the difference of embodiment 6 are, as shown in Figure 10, in the first control circuit A and each institute State and be equipped with one-way isolation circuit between breath light, the output of each second control circuit B corresponding with each breath light End is connected to accordingly between each one-way isolation circuit and the breath light, when presetting for the corresponding breath light When condition is not triggered, the corresponding one-way isolation circuit turn-on, the corresponding breath light is driven by first control circuit A Dynamic, when the preset condition of the corresponding breath light is triggered, the corresponding one-way isolation circuit does not turn on, corresponding described Breath light is driven by second control circuit B.
As it can be seen that due to using the one-way isolation circuit, the first control circuit and second control circuit are controlled to each The driving of breath light, realizes and controls multiple breath lights to realize that bright dark stepless continuous is adjustable using 1 PWM mouthfuls, when certain breath light Preset condition be triggered after, and can the independent control breath light be fixed on the state of being always on, the breath light and satisfaction are exhaled Lamp demand is inhaled, and can independently be controlled
Embodiment 8:
The present embodiment and the difference of embodiment 6 are, as shown in figure 11, in the first control circuit A and each institute State and be equipped with on-off circuit between breath light, the output terminal point of each second control circuit B corresponding with each breath light It is not connected on corresponding each on-off circuit, when the preset condition of the corresponding breath light is not triggered, accordingly The on-off circuit disconnects the corresponding second control circuit B conductings first control circuit A, and the corresponding breath light is by the One control circuit A drives, when the preset condition of the corresponding breath light is triggered, described in the corresponding on-off circuit disconnects First control circuit A turns on corresponding second control circuit B, and the corresponding breath light is driven by second control circuit B.
As it can be seen that due to using the on-off circuit, the first control circuit and second control circuit are controlled to each breathing The driving of lamp, realizes and controls multiple breath lights to realize that bright dark stepless continuous is adjustable using 1 PWM mouthfuls, pre- when certain breath light After if condition is triggered, but can the independent control breath light be fixed on the state of being always on, the breath light and meet breath light Demand, and can independently control.
Embodiment 9:
As shown in figure 12, the base stage of the triode Q33 of the first control circuit connects the PWM of the processing unit 10 Mouthful, emitter E is grounded through resistance R33, one end of collector C connection resistance R31 and the base stage B of triode Q31, the resistance The other end of R31 connects the first feeder ear, and the emitter E of the triode Q31 also connects first feeder ear, three pole The collector C of pipe Q31 connects each LED breath lights by one-way isolation circuit.The one-way isolation circuit is diode D, The anode that the cathode of the diode D connects the collector C, the diode D of the triode Q31 connects the LED breathings Lamp.
The delivery outlet of the base stage B connections processing unit 10 of the triode Q22 of the second control circuit, the output Mouth is such as I/O mouthfuls of the common input/output port of processing unit 10, and emitter E is grounded, one end of collector C connection resistance R21 The second feeder ear, the emitter of the triode Q21 are connected with the other end of the base stage B, the resistance R21 of triode Q21 Second feeder ear is connected, the collector C of the triode Q21 is connected to the corresponding one-way isolation circuit and is exhaled with described Between inhaling lamp, that is, it is connected to the anode of the diode D and the common port of the LED breath lights.
The first power supply terminal voltage V1, the second power supply terminal voltage V2, one-way isolation circuit turn-on voltage Vth, need to meet Following relation:V1≤V2+Vth, such as:V2=12V, Vth=0.7V, then V1 is no more than 12.7V, the diode D conducts One-way isolation circuit, can prevent the second feeder ear anti-channeling to the first feeder ear network.
Such as LED1 and LED2 lights the character window that can be highlighted on button respectively as button 1 and the background light of button 2 Mouthful.Processing unit 10 is led to using PWM mouthfuls of output pwm pulse bandwidth modulation signals LED_PWM, control LED breath light utility powers The break-make of triode Q33 and Q31 on road, as first control circuit.Processing unit uses the common height of common I/O mouthfuls output Low digital signal LED_EN controls the break-make of triode Q21 and Q22 on LED branches, as second control circuit, Mei Gesuo State LED breath lights and correspond to an one-way isolation circuit and a second control circuit respectively.Such as processing unit 10 uses commonly I/O mouthfuls export common height digital signal LED1_EN to control the break-make of triode Q21 and Q22 on LED1 branches, as Second control circuit 1, processing unit 10 control LED2 using the common height digital signal LED2_EN of common I/O mouthfuls output The break-make of triode Q21 and Q22 on branch, as second control circuit 2, foregoing circuit, which is only illustrated, drives two breath lights, And so on, such as increase to N number of LED breath lights, it is equally applicable.Corresponding common I/O mouthfuls of quantity need to only be increased to control the second control Circuit processed, and common I/O mouthful resources are the common resources of processing unit, at most, as above circuit is, it can be achieved that 1 PWM mouthfuls for quantity The bright dark conversion of multiple LED breath lights is realized in control, and again can independent control breath light to be always on state.
When the function button of LED1 and LED2 is not all triggered:Processing unit 10 sends pwm signal LED_PWM, and three Pole pipe Q31 and Q33 are in and press duty cycle on off operating mode, the Current Voltage of the first feeder ear by the loading of duty cycle interruption LED1 with On LED2, the pulse width duty cycle of change realizes the brightness of change, and LED1_EN, LED2_EN are placed in low electricity by processing unit 10 Flat, triode Q21 and Q22 in second control circuit 1 and second control circuit 2 are turned off.LED1 and LED2 is only by LED_PWM Control, is only driven by the first feeder ear, and as PWM duty cycle changes, LED luminance is in bright dark checker breathing state.
When pushing button 1,1 function of button is triggered, and 2 feature capability of button is not triggered:Processing unit 10 sends PWM letters Number LED_PWM, the first feeder ear are in and press duty cycle on off operating mode.LED1_EN puts high level, three poles in second control circuit 1 Pipe Q21 and Q22 are turned on.LED1 is driven at the same time by the first feeder ear and the second feeder ear, but diode D1 separates the first feeder ear, Power off the first feeder ear, LED1 influences from the first feeder ear, is only driven by stable second control circuit 1, and brightness is kept Holding goes steady state.LED2 is only controlled by LED_PWM, is driven by the first feeder ear, as pwm signal pulse width becomes Change, LED2 brightness is in bright dark checker state.Similarly, LED2 buttons are pressed, LED2 is always on, and LED1 brightness is in bright dark friendship For transition state.And so on, such as increase to N number of LED breath lights, it is equally applicable.
Embodiment 10:
The present embodiment and the difference of embodiment 9 are that as shown in figure 13, the collector of the triode Q31 passes through On-off circuit connects each breath light, and the collector of the triode Q21 is connected on corresponding on-off circuit.Can with but not It is limited to, the on-off circuit is single-pole double-throw switch (SPDT), and first feeder ear same can be held with second feeder ear can also Different ends.After the preset condition of the corresponding breath light is not triggered or triggers closing, the corresponding on-off circuit breaks The corresponding second control circuit conducting first control circuit is opened, the corresponding breath light is driven by first control circuit, When the preset condition of the corresponding breath light is triggered, the corresponding on-off circuit disconnects the first control circuit conducting Corresponding second control circuit, the corresponding breath light are driven by second control circuit.Other control principles and embodiment 4 In similarly, referring to the description in embodiment 4, do not repeating.
As it can be seen that select to control the logical of the first control circuit and each second control circuit by on-off circuit It is disconnected, can also realize that 1 PWM mouthful control and realize that the bright of multiple LED breath lights secretly converts, and again can the breath light of independent control be State is always on, when the quantity increase of breath light, need to only increase corresponding common I/O mouthfuls of quantity to control second control circuit, and Common I/O mouthfuls of resources are the common resources of processing unit, and quantity is more.
Embodiments described above, does not form the restriction to the technical solution protection domain.It is any in above-mentioned implementation Modifications, equivalent substitutions and improvements made within the spirit and principle of mode etc., should be included in the protection model of the technical solution Within enclosing.

Claims (8)

  1. A kind of 1. control method of breath light, it is characterised in that including:
    After the preset condition of the corresponding breath light is not triggered or triggers closing, processing unit output pwm signal is described Pwm signal is loaded in the corresponding each breath light connected respectively with the first control circuit by first control circuit On, control corresponding each breath light to be driven by the control parameter of the pwm signal,
    When the preset condition of the corresponding breath light is triggered, by processing unit control corresponding with the breath light the Two control circuits drive the breath light,
    The base stage of the triode Q33 of the first control circuit connects the PWM mouths of the processing unit, and emitter is through resistance R33 Ground connection, one end of collector connection resistance R31 and the base stage of triode Q31, the first power supply of other end connection of the resistance R31 End, the emitter of the triode Q31 also connect first feeder ear, the collector of the triode Q31 by unidirectionally every Each breath light is connected from circuit or on-off circuit,
    The base stage of the triode Q22 of the second control circuit connects the delivery outlet of the processing unit, emitter ground connection, current collection One end of pole connection resistance R21 and the base stage of triode Q21, the other end the second feeder ear of connection of the resistance R21, described three The emitter of pole pipe Q21 also connects second feeder ear, and the collector of the triode Q21 is connected to corresponding described unidirectional Between isolation circuit and the breath light, or on corresponding on-off circuit.
  2. 2. a kind of control method of breath light as claimed in claim 1, it is characterised in that the first control circuit and each institute State and be equipped with one-way isolation circuit between breath light, the output terminal of each second control circuit corresponding with each breath light It is connected to accordingly between each one-way isolation circuit and the breath light, when the default bar of the corresponding breath light After part is not triggered or triggers closing, the corresponding one-way isolation circuit turn-on, the corresponding breath light is by the first control Circuit drives, when the preset condition of the corresponding breath light is triggered, the corresponding one-way isolation circuit does not turn on, accordingly The breath light driven by second control circuit.
  3. 3. a kind of control method of breath light as claimed in claim 1, it is characterised in that the first control circuit and each institute State and be equipped with on-off circuit between breath light, the output terminal of each second control circuit corresponding with each breath light is distinguished It is connected on corresponding each on-off circuit, when the preset condition of the corresponding breath light is not triggered or triggers closing Afterwards, the corresponding on-off circuit disconnects the corresponding second control circuit conducting first control circuit, described accordingly to exhale Lamp is inhaled to be driven by first control circuit, when the preset condition of the corresponding breath light is triggered, the corresponding on-off circuit Disconnect the first control circuit and turn on corresponding second control circuit, the corresponding breath light is driven by second control circuit It is dynamic.
  4. 4. a kind of control method of breath light as claimed in claim 1, it is characterised in that export PWM in the processing unit Further included before signal, after the preset condition of the corresponding breath light is not triggered or triggers closing, the processing unit The request for starting breath light and corresponding parameter are received, according to the request and parameter, the control for configuring the pwm signal is joined Number, the break-make of the voltage and current on each breath light is loaded according to the control parameter by first control circuit control,
    Further included after the preset condition of the breath light is triggered, status request information, institute are sent to the processing unit State the status request information that processing unit receives the corresponding breath light, and according to status request information control with it is described The corresponding second control circuit of breath light drives the breath light.
  5. A kind of 5. control device of breath light, it is characterised in that including:Processing unit and it is connected respectively with the processing unit First control circuit and second control circuit, wherein,
    After the preset condition of the corresponding breath light is not triggered or triggers closing, the processing unit is used to export PWM Signal, the pwm signal are loaded in each breathing being connected respectively with the first control circuit by first control circuit On lamp, each breath light is controlled to be driven by the control parameter of the pwm signal, when the preset condition of the breath light is touched Hair, controls second control circuit corresponding with the breath light to drive the breath light by the processing unit,
    The base stage of the triode Q33 of the first control circuit connects the PWM mouths of the processing unit, and emitter is through resistance R33 Ground connection, one end of collector connection resistance R31 and the base stage of triode Q31, the first power supply of other end connection of the resistance R31 End, the emitter of the triode Q31 also connect first feeder ear, the collector of the triode Q31 by unidirectionally every Each breath light is connected from circuit or on-off circuit,
    The base stage of the triode Q22 of the second control circuit connects the delivery outlet of the processing unit, emitter ground connection, current collection One end of pole connection resistance R21 and the base stage of triode Q21, the other end the second feeder ear of connection of the resistance R21, described three The emitter of pole pipe Q21 also connects second feeder ear, and the collector of the triode Q21 is connected to corresponding described unidirectional Between isolation circuit and the breath light, or on corresponding on-off circuit.
  6. 6. a kind of control device of breath light as claimed in claim 5, it is characterised in that in the first control circuit and respectively One-way isolation circuit is equipped between the breath light, the output of each second control circuit corresponding with each breath light End is connected to accordingly between each one-way isolation circuit and the breath light, when presetting for the corresponding breath light After condition is not triggered or triggers closing, the corresponding one-way isolation circuit turn-on, the corresponding breath light is by the first control Circuit drives processed, when the preset condition of the corresponding breath light is triggered, the corresponding one-way isolation circuit does not turn on, phase The breath light answered is driven by second control circuit.
  7. 7. a kind of control device of breath light as claimed in claim 5, it is characterised in that in the first control circuit and respectively On-off circuit is equipped between the breath light, the output terminal point of each second control circuit corresponding with each breath light It is not connected on corresponding each on-off circuit, when the preset condition of the corresponding breath light is not triggered or triggers closing Afterwards, the corresponding on-off circuit disconnects the corresponding second control circuit conducting first control circuit, described accordingly to exhale Lamp is inhaled to be driven by first control circuit, when the preset condition of the corresponding breath light is triggered, the corresponding on-off circuit Disconnect the first control circuit and turn on corresponding second control circuit, the corresponding breath light is driven by second control circuit It is dynamic.
  8. 8. a kind of control device of breath light as claimed in claim 5, it is characterised in that the processing unit includes the first mould Formula control unit and second mode control unit, further include first be connected with the first mode control unit of the processing unit The input terminal connection of mode request unit, the first mode control unit and first control circuit, when the corresponding breathing After the preset condition of lamp is not triggered or triggers closing, the first mode control unit is used to receive is asked by the first mode The request for starting breath light and corresponding parameter that unit is sent are asked, according to the request and parameter, configures the pwm signal Control parameter, according to voltage and current of the control parameter by first control circuit control loading on each breath light Break-make,
    Further include the second mode request unit being connected with the second mode control unit of the processing unit, the second mode The input terminal of control unit and second control circuit connect, for when the preset condition of the breath light is triggered after reception by The status request information that the second mode request unit is sent, and according to status request information control and the breath light Corresponding second control circuit drives the breath light, when the preset condition of the corresponding breath light is not triggered or triggers pass After closing, the second mode request unit does not send status request information, and sending startup by the first mode request unit exhales Inhale the request of lamp and corresponding parameter.
CN201510615800.9A 2015-09-23 2015-09-23 A kind of control method and device of breath light Active CN105228297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510615800.9A CN105228297B (en) 2015-09-23 2015-09-23 A kind of control method and device of breath light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510615800.9A CN105228297B (en) 2015-09-23 2015-09-23 A kind of control method and device of breath light

Publications (2)

Publication Number Publication Date
CN105228297A CN105228297A (en) 2016-01-06
CN105228297B true CN105228297B (en) 2018-04-17

Family

ID=54996892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510615800.9A Active CN105228297B (en) 2015-09-23 2015-09-23 A kind of control method and device of breath light

Country Status (1)

Country Link
CN (1) CN105228297B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578654A (en) * 2016-01-20 2016-05-11 四川长虹电器股份有限公司 Indicator lamp control device capable of reducing stand-by power consumption of liquid crystal display television
CN105704856A (en) * 2016-02-02 2016-06-22 林德(中国)叉车有限公司 Circuit capable of adjusting and controlling output via cooperation between control interfaces and PWM interfaces
CN106455233A (en) * 2016-11-17 2017-02-22 广州炒米信息科技有限公司 Breathing light control circuit
CN106817466B (en) * 2016-12-30 2020-02-21 珠海市魅族科技有限公司 Electronic equipment and breathing lamp control method thereof
CN111182700A (en) * 2019-12-09 2020-05-19 宁波鑫合瑞电子有限公司 Breathing lamp control method for Christmas lamp

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186224A (en) * 2011-12-30 2013-07-03 鸿富锦精密工业(深圳)有限公司 Main board
CN202873113U (en) * 2012-09-14 2013-04-10 深圳创维数字技术股份有限公司 LED (Light-emitting diode) indication lamp circuit and electronic device
CN104869688B (en) * 2014-12-18 2018-08-24 北京宝沃汽车有限公司 A kind of backlight regulating switch to degrade with work light brightness
CN204968819U (en) * 2015-06-25 2016-01-20 苏州工业职业技术学院 Intelligence agricultural irrigation device

Also Published As

Publication number Publication date
CN105228297A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105228297B (en) A kind of control method and device of breath light
CN204968191U (en) Breathe controlling means of lamp
US10028353B2 (en) LED lamp string having selectable light emitting mode
CN110086362A (en) A kind of regulating device
CN107071969A (en) The many pixelation LED light source control circuits of car rear
CN207704639U (en) A kind of multifunctional remote controlller
CN106413187A (en) Control apparatus for LED lamp, and intelligent LED lamp
CN206452582U (en) Intelligent lighting system
CN102708801A (en) Backlight brightness control method for display terminal and display terminal adopting same
CN103886697A (en) Reminding device and method of unread messages
CN209358812U (en) A kind of light bar controller of USB power supply
CN206341452U (en) Can darkening toning intelligent LED lamp
CN106937442B (en) The control method of light modulation toning based on infrared induction and by key control
CN108112139A (en) A kind of LED intelligent dimmings tinting system and method for family expenses
CN108445772A (en) Smart bluetooth LED music lamp control systems
CN106061013B (en) A kind of lighting system for toilet
CN208848603U (en) A kind of control circuit and display terminal of backlight
CN207969019U (en) A kind of LED intelligent dimming tinting systems for household
CN206370988U (en) A kind of intelligent domestic color matching desk lamp with dimmer switch
CN109757019A (en) A kind of learning-oriented scene management system based on signal light control
CN106793292A (en) Can darkening toning intelligent LED lamp
CN207733034U (en) Multi-way intelligence dimming controlling module based on remote control
CN209627746U (en) The light modulation toning lamps and lanterns of intelligent control
CN210247107U (en) Electronic color temperature adjusting circuit
CN208369901U (en) Intelligent wireless controls lighting device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant