CN108366456B - Driving method and driving device for indicator light of mobile equipment and mobile equipment - Google Patents

Driving method and driving device for indicator light of mobile equipment and mobile equipment Download PDF

Info

Publication number
CN108366456B
CN108366456B CN201810179034.XA CN201810179034A CN108366456B CN 108366456 B CN108366456 B CN 108366456B CN 201810179034 A CN201810179034 A CN 201810179034A CN 108366456 B CN108366456 B CN 108366456B
Authority
CN
China
Prior art keywords
current
decreasing
rate
indicator light
duty cycle
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
CN201810179034.XA
Other languages
Chinese (zh)
Other versions
CN108366456A (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.)
Shanghai Awinic Technology Co Ltd
Original Assignee
Shanghai Awinic Technology 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 Shanghai Awinic Technology Co Ltd filed Critical Shanghai Awinic Technology Co Ltd
Priority to CN201810179034.XA priority Critical patent/CN108366456B/en
Publication of CN108366456A publication Critical patent/CN108366456A/en
Application granted granted Critical
Publication of CN108366456B publication Critical patent/CN108366456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The application discloses drive method, drive arrangement and mobile device of mobile device pilot lamp, wherein, the drive method of mobile device pilot lamp has realized carrying out the effect that changes colour at least once in the pilot lamp breathing process, compare the mode that the pilot lamp among the prior art can only show a colour in breathing process, have the better characteristics of display effect. And the mobile equipment indicator light is driven by the driving method of the mobile equipment indicator light, and the configuration information is preset, so that the configuration of a main controller of the mobile equipment is not needed, and the possibility of sequentially displaying various breathing states by the indicator light is provided on the premise of not increasing the power consumption of the mobile equipment.

Description

Driving method and driving device for indicator light of mobile equipment and mobile equipment
Technical Field
The present disclosure relates to the field of electronic circuit technologies, and more particularly, to a method and an apparatus for driving an indicator light of a mobile device, and a mobile device.
Background
At present, mobile devices such as smart phones and tablet computers are used as personal mobile and multimedia application terminals, functions are more and more powerful, and prompt information displayed through a human-computer interaction interface is more and more abundant. Although the display function of the screen of the mobile device is powerful, the power consumption of displaying the prompt message through the screen is large due to the high power consumption of the screen and the characteristic that the screen must be driven by the main controller, and therefore, the general message reminding function is completed through the indicator lamp. Generally, the indicator light prompts a lot of information, for example, when the mobile device is in a charging state, has a missed call, has a short message, and does not view an application prompting message, the indicator light flashes, lights up normally, or is in a "breathing" lighting state to prompt the user, where the "breathing" lighting state refers to a state where the indicator light is turned on in a preset color and gradually increases the brightness to the brightest state in a process of needing information prompting, and gradually decreases the brightness until turning off after the brightest state lasts for a certain time, and the "breathing" lighting state not only lights up and off regularly and periodically like breathing, but also the lighting and turning-off switching process smoothly changes according to a certain curve, thereby presenting a personified "breathing" effect.
An indicator lamp for realizing a 'breathing' lighting state is generally composed of three LED light-emitting diodes (or LED lamp beads), and the three LED light-emitting diodes are generally divided intoRespectively for emitting blue (B), red (R) and green (B) light. In practical application, the forward conducting voltage V of each LED FIt is not strictly uniform, so a constant current source driving circuit is usually used to provide the driving current for the LED. For the indicator lamp, the presented color is determined by the proportion of current components flowing through the three LED light-emitting diodes of R/G/B respectively. In order to keep the color breathing lamp to change only in brightness and keep the color unchanged during breathing, a pulse code modulation (PWM) technology is mostly adopted to synchronously control the duty ratios of the driving currents output to the three LED light emitting diodes, wherein the higher the duty ratio is, the higher the brightness of the output is, the smaller the duty ratio is, the lower the total brightness is, and the proportion of the three current components of R/G/B is kept unchanged regardless of any brightness level.
In the prior art, the driving process of the indicator light of the mobile device is mainly completed by a driving circuit in an LED driving chip, when the indicator light needs to be started, a main controller of the mobile device sends an external instruction to the LED driving chip, configures or modifies a state parameter of the indicator light, and then starts the LED driving chip to output a driving current to the indicator light. After the external instruction is sent, the main controller enters a sleep mode, and only the control and driving circuits in the LED driving chip work independently, so that the mobile equipment is maintained in a lower power consumption state.
Disclosure of Invention
In order to solve the technical problem, the application provides a driving method and a driving device for an indicator light of a mobile device and the mobile device, so that the purpose that the indicator light displays multiple colors in a breathing process is achieved, and the display effect of the indicator light is enhanced.
In order to achieve the technical purpose, the embodiment of the application provides the following technical scheme:
a driving method of a mobile device indicator lamp is used for driving the mobile device indicator lamp, the mobile device indicator lamp comprises a blue LED lamp bead, a green LED lamp bead and a red LED lamp bead, and the driving method of the mobile device indicator lamp comprises the following steps:
determining the breathing state of an indicator light according to an external instruction and preset configuration information, wherein the breathing state of the indicator light comprises an indicator light driving current level time sequence and a PWM wave level time sequence, the PWM wave level time sequence comprises a duty ratio increasing stage, a duty ratio maximum value stage and a duty ratio decreasing stage, and the preset configuration information stores the corresponding relation between the external instruction and the breathing state of the indicator light;
determining a first preset ratio between the driving currents in the phase of the maximum value of the duty cycle according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state, wherein the driving currents comprise: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
determining at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state;
determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, the first current, the second current and the third current are output to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
Optionally, the first preset ratio is 1:1: 1.
Optionally, the determining at least two different increasing rates of each of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state includes:
determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increment rate of the second current and a second increment rate of the second current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first increasing rate of a third current and a second increasing rate of the third current in the duty cycle increasing phase, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a second preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
determining a first decreasing rate of the second current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
and according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first decreasing rate of the third current and a second decreasing rate of the first current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a second preset ratio.
Optionally, the step of outputting the first current, the second current and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current and the third current in the duty cycle increment phase, so that the first current, the second current and the third current are incremented to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
Optionally, the outputting, to the mobile device indicator light, the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current, and the third current in the duty cycle decreasing phase, so that the first current, the second current, and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at least two different decreasing rates respectively comprises:
outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
Optionally, the determining at least two different increasing rates of each of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state includes:
determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increment rate of the second current and a second increment rate of the second current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increasing rate of a third current and a second increasing rate of the third current in the duty cycle increasing phase according to the determined indicator light driving current level sequence in the indicator light breathing state, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a fourth preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
determining a first decreasing rate of the second current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
and according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state, determining a first decreasing rate of a third current and a second decreasing rate of the first current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a fifth preset ratio, and the fourth preset ratio is not equal to the fifth preset ratio.
Optionally, the step of outputting the first current, the second current and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current and the third current in the duty cycle increment phase, so that the first current, the second current and the third current are incremented to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
Optionally, the outputting, to the mobile device indicator light, the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current, and the third current in the duty cycle decreasing phase, so that the first current, the second current, and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at least two different decreasing rates respectively comprises:
outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
A driving apparatus of a mobile device indicator light, for implementing the driving method of the mobile device indicator light, the driving apparatus of the mobile device indicator light comprising:
a communication interface;
the first current control circuit, the second current control circuit, the third current control circuit and the PWM control circuit are connected with the communication interface;
the first current control circuit comprises a first current configuration register connected with the communication interface and a first current reversible counter connected with the first current configuration register;
the second current control circuit comprises a second current configuration register connected with the communication interface and a second current reversible counter connected with the second current configuration register;
the third current control circuit comprises a third current configuration register connected with the communication interface and a third current reversible counter connected with the third current configuration register; wherein the content of the first and second substances,
the communication interface is used for receiving an external instruction and transmitting the external instruction to the first current control circuit, the second current control circuit, the third current control circuit and the PWM control circuit;
the PWM control circuit is used for determining the breathing state of the indicator light according to an external instruction and preset configuration information, the breathing state of the indicator light comprises an indicator light driving current level time sequence and a PWM wave level time sequence, the PWM wave level time sequence comprises a duty ratio increasing stage, a duty ratio maximum stage and a duty ratio decreasing stage, the preset configuration information stores the corresponding relation between the external instruction and the breathing state of the indicator light, and the PWM control circuit is used for determining a first preset ratio between driving currents in the duty ratio maximum stage according to the determined indicator light driving current level time sequence in the breathing state of the indicator light, and the driving currents comprise: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
the first current reversible counter, the second current reversible counter and the third current reversible counter are used for determining at least two different increasing rates of the first current, the second current and the third current in the duty ratio increasing stage according to the determined indicator lamp driving current grade time sequence in the indicator lamp breathing state;
determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, the first current, the second current and the third current are output to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
A mobile device, comprising: an indicator light;
the indicator lamp is driven according to any one of the driving methods of the indicator lamp of the mobile equipment.
As can be seen from the foregoing technical solutions, embodiments of the present application provide a driving method, a driving apparatus, and a mobile device for an indicator light of a mobile device, where the driving method for the indicator light of the mobile device determines, according to an indicator light driving current level timing sequence in a determined indicator light breathing state, at least two different increasing rates of a first current, a second current, and a third current in the duty increasing phase and at least two different decreasing rates of the first current, the second current, and the third current in the duty decreasing phase after the indicator light breathing state is determined according to an external instruction and preset configuration information, and finally outputs the first current to the indicator light of the mobile device in the duty increasing phase and the duty decreasing phase respectively according to the determined at least two different increasing rates and the determined at least two different decreasing rates, The second current and the third current are increased to the first preset ratio at least two different increasing rates in the duty ratio increasing stage, and the first current, the second current and the third current are decreased to 0 from the first preset ratio at least two different decreasing rates in the duty ratio decreasing stage, so that the effect of changing color at least once in the breathing process of the indicator lamp is realized.
And the mobile equipment indicator light is driven by the driving method of the mobile equipment indicator light, and the configuration information is preset, so that the configuration of a main controller of the mobile equipment is not needed, and the possibility of sequentially displaying various breathing states by the indicator light is provided on the premise of not increasing the power consumption of the mobile equipment.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a driving method of an indicator light of a mobile device according to an embodiment of the present application;
FIG. 2(a) is a schematic diagram of PWM wave level timing in the prior art;
FIG. 2(b) is a schematic diagram of a prior art indicator light driving current level timing sequence;
FIG. 3(a) is a schematic diagram of PWM wave level timing in one embodiment of the present application;
FIG. 3(b) is a timing diagram illustrating the driving current levels of the indicator lights in one embodiment of the present application;
FIG. 3(c) is a schematic diagram illustrating a comparison between a PWM wave level timing sequence and an indicator light driving current level timing sequence according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a timing sequence of indicator light drive current levels in another embodiment of the present application;
fig. 5 is a schematic structural diagram of a driving apparatus of an indicator light of a mobile device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a driving device of an indicator light of a mobile device in the prior art.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a driving method of a mobile device indicator lamp, as shown in fig. 1, the driving method is used for driving the mobile device indicator lamp, the mobile device indicator lamp comprises a blue LED lamp bead, a green LED lamp bead and a red LED lamp bead, and the driving method of the mobile device indicator lamp comprises the following steps:
s101: determining the breathing state of an indicator light according to an external instruction and preset configuration information, wherein the breathing state of the indicator light comprises an indicator light driving current level time sequence and a PWM wave level time sequence, the PWM wave level time sequence comprises a duty ratio increasing stage, a duty ratio maximum value stage and a duty ratio decreasing stage, and the preset configuration information stores the corresponding relation between the external instruction and the breathing state of the indicator light;
s102: determining a first preset ratio between the driving currents in the phase of the maximum value of the duty cycle according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state, wherein the driving currents comprise: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
s103: determining at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state;
s104: determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
s105: according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
s106: according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, the first current, the second current and the third current are output to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
As described in the background art, referring to fig. 2(a) and 2(b), fig. 2(a) is a PWM wave level timing sequence in the related art, fig. 2(b) is an indicator driving current level timing sequence in the related art, in a breathing process of an indicator of a mobile device in the related art, a ratio of a first current, a second current, and a third current is a fixed value for the purpose of keeping a color unchanged during the breathing process, and the PWM wave level timing sequence is a process of first increasing to a maximum value, then keeping a time constant, and finally decreasing to 0. In the process, the duty ratio of the PWM wave controls the brightness change of the indicator light, and assuming that in fig. 2, the ratio of the first current, the second current and the third current makes the display color of the indicator light finally orange, the orange displayed by the indicator light gradually brightens in the duty ratio increasing stage of the PWM wave level timing sequence until the brightness of the orange displayed by the indicator light is maximum in the duty ratio maximum value stage of the PWM wave level timing sequence and remains unchanged, and finally the orange displayed by the indicator light decreases from the maximum value until the orange displayed by the indicator light is zero when the PWM wave level timing sequence reaches the duty ratio decreasing stage.
In the embodiment of the application, after the breathing state of the indicator lamp is determined according to the external instruction and the preset configuration information, according to the determined breathing state of the indicator lamp, at least two different increasing rates of the first current, the second current and the third current in the duty increasing stage and at least two different decreasing rates of the first current, the second current and the third current in the duty decreasing stage are determined, and finally according to the determined at least two different increasing rates and the at least two different decreasing rates, the first current, the second current and the third current are respectively output to the indicator lamp of the mobile equipment in the duty increasing stage and the duty decreasing stage so as to enable the first current, the second current and the third current to be increased to the first preset ratio in the duty increasing stage at the at least two different increasing rates And the first current, the second current and the third current are decreased to 0 from the first preset ratio at least two different decreasing rates in the duty ratio decreasing stage, so that the effect of changing color at least once in the breathing process of the indicator lamp is realized.
And the mobile equipment indicator light is driven by the driving method of the mobile equipment indicator light, and the configuration information is preset, so that the configuration of a main controller of the mobile equipment is not needed, and the possibility of sequentially displaying various breathing states by the indicator light is provided on the premise of not increasing the power consumption of the mobile equipment.
It should be noted that different values of the first preset ratio represent different final colors, for example, in an embodiment of the present application, the indicator driving current level timing in the breathing state of the indicator has two different increasing rates for the first current, the second current and the third current in the duty increasing stage, and the two different decreasing rates for the first current, the second current and the third current in the duty decreasing stage, and the value of the first preset ratio represents purple, then in the duty increasing stage, the indicator first gradually brightens in one color, and then gradually changes the color to purple, while the brightness continuously increases, when the brightness reaches the maximum value, the indicator displays purple, and after a certain time, the indicator enters the duty decreasing stage, and finally changes the purple to an intermediate color, and finally, continuously displaying the intermediate color, wherein when the brightness is gradually reduced until the intermediate color is turned off, the intermediate color can be the same as or different from the initial color of the duty ratio increasing stage.
However, in one embodiment of the present application, the first predetermined ratio is 1:1:1, the final color of the indicator light during respiration is white. The present application does not limit this, which is determined by the actual situation.
Based on the foregoing embodiments, in one embodiment of the present application, the determining at least two different increasing rates of each of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator light driving current level timing in the indicator light breathing state includes:
s1031: determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
s1032: determining a first increment rate of the second current and a second increment rate of the second current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
s1033: according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first increasing rate of a third current and a second increasing rate of the third current in the duty cycle increasing phase, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a second preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
s1041: determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
s1042: determining a first decreasing rate of the second current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
s1043: and according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first decreasing rate of the third current and a second decreasing rate of the first current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a second preset ratio.
Accordingly, the step of outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current, and the third current in the duty cycle increment phase to increment the first current, the second current, and the third current to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
s1051: outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
s1052: outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
s1053: and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
The step of outputting the first current, the second current and the third current to the mobile device indicator light in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase, so that the first current, the second current and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at the at least two different decreasing rates respectively comprises:
s1061: outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
s1062: outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
s1063: and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
In this embodiment, referring to fig. 3(a), 3(b) and 3(c), fig. 3(a) is a schematic diagram of a PWM wave level timing sequence in this embodiment, fig. 3(b) is a schematic diagram of a pilot lamp driving current level timing sequence in this embodiment, and fig. 3(c) is a schematic diagram of a comparison between the PWM wave level timing sequence and the pilot lamp driving current level timing sequence in this embodiment, the pilot lamp gradually brightens in a first color in a duty ratio increasing stage during respiration, then gradually changes into a final color in the first color, continuously displays the final color in a maximum value stage of the duty ratio, then gradually changes from the final color into the first color in a duty ratio decreasing stage, and then gradually changes from the first color into the second color until being extinguished.
That is, in the present embodiment, the intermediate colors of the duty increasing stage and the duty decreasing stage are the same and both are the first color.
It should be further noted that, referring to fig. 3(b), after the breathing process is ended, the indicator light gradually brightens in the second color in the duty ratio increasing stage in the second breathing process, then gradually changes to the final color in the second color, continues to display the final color in the maximum value stage of the duty ratio, then gradually changes from the final color to the second color in the duty ratio decreasing stage, and gradually changes from the second color to the dark again until being extinguished. That is, the intermediate colors during two adjacent breaths in fig. 3(b) are different, which can be achieved by pre-configuration in the preset configuration information.
On the basis of the foregoing embodiment, in another embodiment of the present application, the determining at least two different increasing rates of each of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator lamp driving current level timing in the indicator lamp breathing state includes:
determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increment rate of the second current and a second increment rate of the second current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increasing rate of a third current and a second increasing rate of the third current in the duty cycle increasing phase according to the determined indicator light driving current level sequence in the indicator light breathing state, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a fourth preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
determining a first decreasing rate of the second current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
and according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state, determining a first decreasing rate of a third current and a second decreasing rate of the first current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a fifth preset ratio, and the fourth preset ratio is not equal to the fifth preset ratio.
Accordingly, the step of outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current, and the third current in the duty cycle increment phase to increment the first current, the second current, and the third current to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
The step of outputting the first current, the second current and the third current to the mobile device indicator light in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase, so that the first current, the second current and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at the at least two different decreasing rates respectively comprises:
outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
Referring to fig. 4, the indicator light gradually brightens in the second color, then gradually changes to the final color in the second color in the duty ratio increasing stage during respiration, continuously displays the final color in the maximum brightness in the duty ratio maximum stage, then gradually changes to the third color from the final color in the duty ratio decreasing stage, and gradually darkens from the third color until being extinguished.
That is, in the present embodiment, the intermediate colors of the duty increasing stage and the duty decreasing stage are different.
It should be further noted that, with reference to fig. 4, after the breathing process is finished, the indicator light gradually brightens in the fourth color in the duty ratio increasing stage in the second breathing process, then gradually changes to the final color in the fourth color, continues to display the final color in the maximum value stage of the duty ratio with the maximum brightness, then gradually changes from the final color to the fifth color in the duty ratio decreasing stage, and gradually darkens from the fifth color until being extinguished. That is, the middle color in fig. 4 is different in both breaths, which can be realized by pre-configuration in the preset configuration information.
Correspondingly, an embodiment of the present application further provides a driving apparatus for a mobile device indicator light, as shown in fig. 5, for implementing the driving method for the mobile device indicator light according to any of the foregoing embodiments, where the driving apparatus for the mobile device indicator light includes:
a communication interface 100;
a first current control circuit 200, a second current control circuit 300, a third current control circuit 400 and a PWM control circuit 500 connected to the communication interface 100;
the first current control circuit 200 comprises a first current configuration register connected to the communication interface 100 and a first current up-down counter connected to the first current configuration register;
the second current control circuit 300 comprises a second current configuration register connected to the communication interface 100 and a second current up-down counter connected to the second current configuration register;
the third current control circuit 400 comprises a third current configuration register connected to the communication interface 100 and a third current up-down counter connected to the third current configuration register; wherein the content of the first and second substances,
the communication interface 100 is configured to receive an external instruction and transmit the external instruction to the first current control circuit 200, the second current control circuit 300, the third current control circuit 400, and the PWM control circuit 500;
the PWM control circuit 500 is configured to determine a breathing state of the indicator light according to an external instruction and preset configuration information, where the breathing state of the indicator light includes an indicator light driving current level timing sequence and a PWM wave level timing sequence, the PWM wave level timing sequence includes a duty increasing stage, a duty maximum stage and a duty decreasing stage, a corresponding relationship between the external instruction and the breathing state of the indicator light is stored in the preset configuration information, and is configured to determine a first preset ratio between driving currents in the duty maximum stage according to the determined indicator light driving current level timing sequence in the breathing state of the indicator light, where the driving currents include: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
the first current reversible counter, the second current reversible counter and the third current reversible counter are used for determining at least two different increasing rates of the first current, the second current and the third current in the duty ratio increasing stage according to the determined indicator lamp driving current grade time sequence in the indicator lamp breathing state;
determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, the first current, the second current and the third current are output to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
Referring to fig. 5, the PWM control circuit 500 includes a breathing mode timing configuration register, a PWM control state machine, a PWM modulation, an oscillator and a frequency divider, and in addition, switches K1, K2 and K3 and three digital-to-analog conversion devices Q1, Q2 and Q3 are also shown in fig. 5, and the PWM wave output by the PWM control circuit 500 achieves the purpose of controlling the brightness of the light emitting diodes D1, D2 and D3(D1, D2 and D3 represent a blue LED lamp bead, a green LED lamp bead and a red LED lamp bead of the indicator lamp, respectively) by controlling the on and off of the switches K1, K2 and K3. In the embodiment of the application, the reversible counters are respectively arranged in the first current control circuit 200, the second current control circuit 300 and the third current control circuit 400, so that the output current grade of the current control circuit is variable, and the purpose of displaying different colors in the process of one breath is achieved.
It should be noted that the light emitting diodes D1, D2 and D3 shown in fig. 5 are not part of the structure of the driving device of the indicator light of the mobile device provided in the embodiments of the present application.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a driving apparatus of a mobile device indicator in the prior art, and in the driving apparatus of a mobile device indicator provided in the embodiment of the present application, on the basis of fig. 6, a reversible counter is added to each of the first current control circuit 200, the second current control circuit 300, and the third current control circuit 400, and the reversible counter can provide counting functions with different slopes or step lengths. The indicator lamp has the advantages that the purpose that the ratio of the first current to the second current to the third current is gradually increased to the first preset ratio by different slopes in the process that the indicator lamp is turned on from off in the breathing process is achieved, and the ratio of the first current to the second current to the third current is gradually decreased to 0 by different slopes in the process that the indicator lamp is turned on from off in the breathing process is achieved, so that the purpose that multiple colors are displayed in one breathing process is achieved.
Correspondingly, an embodiment of the present application further provides a mobile device, including: an indicator light;
the indicator lamp is driven according to the driving method of the indicator lamp of the mobile equipment in any embodiment.
In summary, the present application provides a driving method, a driving apparatus, and a mobile device for an indicator light of the mobile device, wherein after the breathing state of the indicator light is determined according to an external instruction and preset configuration information, according to an indicator light driving current level timing sequence in the determined breathing state of the indicator light, at least two different increasing rates of a first current, a second current, and a third current in the duty increasing stage are determined, and at least two different decreasing rates of the first current, the second current, and the third current in the duty decreasing stage are determined, and finally, according to the at least two different determined increasing rates and the at least two different decreasing rates, a first current, a second current, and a third current are output to the indicator light of the mobile device in the duty increasing stage and the duty decreasing stage, respectively, The second current and the third current are increased to the first preset ratio at least two different increasing rates in the duty ratio increasing stage, and the first current, the second current and the third current are decreased to 0 from the first preset ratio at least two different decreasing rates in the duty ratio decreasing stage, so that the effect of changing color at least once in the breathing process of the indicator lamp is realized.
And the mobile equipment indicator light is driven by the driving method of the mobile equipment indicator light, and the configuration information is preset, so that the configuration of a main controller of the mobile equipment is not needed, and the possibility of sequentially displaying various breathing states by the indicator light is provided on the premise of not increasing the power consumption of the mobile equipment.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A driving method of a mobile device indicator lamp is used for driving the mobile device indicator lamp, the mobile device indicator lamp comprises a blue LED lamp bead, a green LED lamp bead and a red LED lamp bead, and the driving method of the mobile device indicator lamp comprises the following steps:
determining the breathing state of an indicator light according to an external instruction and preset configuration information, wherein the breathing state of the indicator light comprises an indicator light driving current level time sequence and a PWM wave level time sequence, the PWM wave level time sequence comprises a duty ratio increasing stage, a duty ratio maximum value stage and a duty ratio decreasing stage, and the preset configuration information stores the corresponding relation between the external instruction and the breathing state of the indicator light;
determining a first preset ratio between the driving currents in the phase of the maximum value of the duty cycle according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state, wherein the driving currents comprise: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
determining at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state;
determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
2. The method of claim 1, wherein the first predetermined ratio is 1:1: 1.
3. The method of claim 1, wherein determining at least two different rates of increase for each of the first, second and third currents in the duty cycle increment phase in accordance with the determined indicator light drive current level timing in the indicator light breathing state comprises:
determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increment rate of the second current and a second increment rate of the second current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first increasing rate of a third current and a second increasing rate of the third current in the duty cycle increasing phase, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a second preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
determining a first decreasing rate of the second current and a second decreasing rate of the second current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
and according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, determining a first decreasing rate of the third current and a second decreasing rate of the third current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a second preset ratio.
4. The method of claim 3, wherein the outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current, and the third current in the duty cycle increment phase such that the first current, the second current, and the third current are incremented to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
5. The method of claim 4, wherein the outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current, and the third current in the duty cycle decreasing phase such that the first current, the second current, and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at least two different decreasing rates comprises:
outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
6. The method of claim 1, wherein determining at least two different rates of increase for each of the first, second and third currents in the duty cycle increment phase in accordance with the determined indicator light drive current level timing in the indicator light breathing state comprises:
determining a first increment rate of the first current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state;
determining a first increment rate of the second current and a second increment rate of the first current in the duty cycle increment phase according to the determined indicator light driving current level sequence in the indicator light breathing state;
determining a first increasing rate of a third current and a second increasing rate of a first current in the duty cycle increasing phase according to the determined indicator lamp driving current level sequence in the indicator lamp breathing state, wherein the ratio of the first increasing rate of the first current, the first increasing rate of the second current and the first increasing rate of the third current is a fourth preset ratio;
the determining at least two different decreasing rates of each of the first current, the second current, and the third current in the duty cycle decreasing phase according to the determined indicator light driving current level timing sequence in the indicator light breathing state comprises:
determining a first decreasing rate of the first current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
determining a first decreasing rate of the second current and a second decreasing rate of the first current in the duty cycle decreasing phase according to the determined indicator lamp driving current level timing sequence in the indicator lamp breathing state;
and according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state, determining a first decreasing rate of a third current and a second decreasing rate of the first current in the duty cycle decreasing stage, wherein the ratio of the second decreasing rate of the first current, the second decreasing rate of the second current and the second decreasing rate of the third current is a fifth preset ratio, and the fourth preset ratio is not equal to the fifth preset ratio.
7. The method of claim 6, wherein the outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle increment phase according to the determined at least two different increment rates of the first current, the second current, and the third current in the duty cycle increment phase such that the first current, the second current, and the third current are incremented to the first preset ratio in the duty cycle increment phase at the at least two different increment rates comprises:
outputting a first current to the indicator light of the mobile device according to the first increment rate of the first current and the second increment rate of the first current, so that the first current is increased to a first preset value at the first increment rate of the first current in the duty ratio increment phase and is increased to a preset maximum value from the first preset value at the second increment rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first increasing rate of the second current and the second increasing rate of the second current, so that the second current is increased to a first preset value at the first increasing rate of the second current in the duty ratio increasing phase and is increased to a preset maximum value from the first preset value at the second increasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first increasing rate of the third current and the second increasing rate of the third current, so that the third current is increased to a first preset value at the first increasing rate of the third current in the duty ratio increasing phase, and is increased to a preset maximum value from the first preset value at the second increasing rate of the third current.
8. The method of claim 7, wherein the outputting the first current, the second current, and the third current to the mobile device indicator light in the duty cycle decreasing phase according to the determined at least two different decreasing rates of the first current, the second current, and the third current in the duty cycle decreasing phase such that the first current, the second current, and the third current decrease from the first preset ratio to 0 in the duty cycle decreasing phase at least two different decreasing rates comprises:
outputting a first current to the mobile device indicator light according to the first decreasing rate of the first current and the second decreasing rate of the first current, so that the first current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the first current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the first current;
outputting a second current to the indicator light of the mobile device according to the first decreasing rate of the second current and the second decreasing rate of the second current, so that the second current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the second current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the second current;
and outputting the third current to the indicator light of the mobile device according to the first decreasing rate of the third current and the second decreasing rate of the third current, so that the third current is decreased from a preset maximum value to a first preset value at the first decreasing rate of the third current in the duty cycle decreasing stage and is decreased from the first preset value to 0 at the second decreasing rate of the third current.
9. A driving apparatus of a mobile device indicator light, for implementing the driving method of the mobile device indicator light according to any one of claims 1 to 8, the driving apparatus of the mobile device indicator light comprising:
a communication interface;
the first current control circuit, the second current control circuit, the third current control circuit and the PWM control circuit are connected with the communication interface;
the first current control circuit comprises a first current configuration register connected with the communication interface and a first current reversible counter connected with the first current configuration register;
the second current control circuit comprises a second current configuration register connected with the communication interface and a second current reversible counter connected with the second current configuration register;
the third current control circuit comprises a third current configuration register connected with the communication interface and a third current reversible counter connected with the third current configuration register; wherein the content of the first and second substances,
the communication interface is used for receiving an external instruction and transmitting the external instruction to the first current control circuit, the second current control circuit, the third current control circuit and the PWM control circuit;
the PWM control circuit is used for determining the breathing state of the indicator light according to an external instruction and preset configuration information, the breathing state of the indicator light comprises an indicator light driving current level time sequence and a PWM wave level time sequence, the PWM wave level time sequence comprises a duty ratio increasing stage, a duty ratio maximum stage and a duty ratio decreasing stage, the preset configuration information stores the corresponding relation between the external instruction and the breathing state of the indicator light, and the PWM control circuit is used for determining a first preset ratio between driving currents in the duty ratio maximum stage according to the determined indicator light driving current level time sequence in the breathing state of the indicator light, and the driving currents comprise: the LED lamp comprises a first current, a second current and a third current, wherein the first current is used for driving the blue LED lamp beads, the second current is used for driving the green LED lamp beads, and the third current is used for driving the red LED lamp beads;
the first current reversible counter, the second current reversible counter and the third current reversible counter are used for determining at least two different increasing rates of the first current, the second current and the third current in the duty ratio increasing stage according to the determined indicator lamp driving current grade time sequence in the indicator lamp breathing state;
determining at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing phase according to the determined indicator lamp driving current level time sequence in the indicator lamp breathing state;
according to the determined at least two different increasing rates of the first current, the second current and the third current in the duty cycle increasing phase, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle increasing phase so that the first current, the second current and the third current are increased to the first preset ratio value in the duty cycle increasing phase at the at least two different increasing rates;
according to the determined at least two different decreasing rates of the first current, the second current and the third current in the duty cycle decreasing stage, outputting the first current, the second current and the third current to the indicator light of the mobile device in the duty cycle decreasing stage, so that the first current, the second current and the third current are decreased to 0 from the first preset ratio in the duty cycle decreasing stage at the at least two different decreasing rates.
10. A mobile device, comprising: an indicator light;
the indicator lamp is driven according to the driving method of the indicator lamp of the mobile device of any one of claims 1 to 8.
CN201810179034.XA 2018-03-05 2018-03-05 Driving method and driving device for indicator light of mobile equipment and mobile equipment Active CN108366456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810179034.XA CN108366456B (en) 2018-03-05 2018-03-05 Driving method and driving device for indicator light of mobile equipment and mobile equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810179034.XA CN108366456B (en) 2018-03-05 2018-03-05 Driving method and driving device for indicator light of mobile equipment and mobile equipment

Publications (2)

Publication Number Publication Date
CN108366456A CN108366456A (en) 2018-08-03
CN108366456B true CN108366456B (en) 2020-02-11

Family

ID=63003604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810179034.XA Active CN108366456B (en) 2018-03-05 2018-03-05 Driving method and driving device for indicator light of mobile equipment and mobile equipment

Country Status (1)

Country Link
CN (1) CN108366456B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6658577B2 (en) * 1999-06-14 2003-12-02 Apple Computer, Inc. Breathing status LED indicator
JP4963802B2 (en) * 2005-06-28 2012-06-27 ローム株式会社 Current control circuit, LED current control device, and light emitting device
CN102573242B (en) * 2012-02-17 2014-06-18 深圳市博驰信电子有限责任公司 Notify light driving circuit and notify light driving chip
CN104614977A (en) * 2015-03-03 2015-05-13 上海斐讯数据通信技术有限公司 System and method for modulating and demodulating expressive time with color
CN106304473A (en) * 2016-08-16 2017-01-04 深圳市前海疆域智能科技股份有限公司 A kind of control method of breath light
CN106488033A (en) * 2016-11-09 2017-03-08 上海斐讯数据通信技术有限公司 The display packing of mobile terminal WIFI signal intensity, system and mobile terminal
CN206452570U (en) * 2016-12-07 2017-08-29 上海传英信息技术有限公司 Many breath light control circuits
CN206620331U (en) * 2017-01-13 2017-11-07 锦丰科技(深圳)有限公司 Automobile regular movements atmosphere lamp control circuit
CN107041038A (en) * 2017-04-27 2017-08-11 维沃移动通信有限公司 The control method and mobile terminal of a kind of breath light
CN107276150A (en) * 2017-06-08 2017-10-20 深圳鼎智通讯股份有限公司 A kind of breath light intelligent reminding charged state method

Also Published As

Publication number Publication date
CN108366456A (en) 2018-08-03

Similar Documents

Publication Publication Date Title
EP2991324B1 (en) Method and device for button backlight processing
US20070139316A1 (en) Led module with integrated controller
US8344641B1 (en) LED illumination control using simple digital command structure
CN101902861A (en) LED driving method and LED driving circuit
CN103415109A (en) Adjusting method for LED backlight brightness
CN105592587B (en) The control method of LED
US8710759B1 (en) LED illumination control using a simple digital command structure
CN204968191U (en) Breathe controlling means of lamp
CN103310740B (en) The image treatment method of display device and display device thereof
CN111479370A (en) Electronic equipment, control method of atmosphere lamp of electronic equipment and computer storage medium
CN111246617A (en) LED controller and LED control method
CN103096565A (en) Light emitting diode (LED) lighting device and light control method thereof
CN108366456B (en) Driving method and driving device for indicator light of mobile equipment and mobile equipment
CN108563089A (en) Laser control device, the method and laser projection device for reducing laser noise
JP2004207411A (en) Led display device and its lighting method and program
CN109379804A (en) A kind of LED light light adjusting system and light-dimming method
CN108377594B (en) Driving method and driving device for indicator light of mobile equipment and mobile equipment
CN211240225U (en) Intelligent atmosphere lamp for electronic screen
CN205334096U (en) Control panel
EP2015285A2 (en) Method and device for controlling the backlighting of a flat screen
CN209949472U (en) LED lamp dimming system
JP5270795B2 (en) Power control device, backlight unit, and liquid crystal display device
CN213547894U (en) LED lighting circuit and time-sharing dimming circuit based on PWM
CN113759272A (en) Intelligent lamp band length detection method and device and intelligent lamp band
CN103763811A (en) Method, terminal and controller for dynamic light source change control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 201199 Room 1201, Lane 908, Xiuwen Road, Minhang District, Shanghai

Patentee after: Shanghai Awinic Technology Co.,Ltd.

Address before: Room 303-39, 33 Block 680 Guiping Road, Xuhui District, Shanghai, 2003

Patentee before: Shanghai Awinic Technology Co.,Ltd.

CP02 Change in the address of a patent holder