CN115103486A - Dynamic dimming method for knob encoder - Google Patents

Dynamic dimming method for knob encoder Download PDF

Info

Publication number
CN115103486A
CN115103486A CN202210794715.3A CN202210794715A CN115103486A CN 115103486 A CN115103486 A CN 115103486A CN 202210794715 A CN202210794715 A CN 202210794715A CN 115103486 A CN115103486 A CN 115103486A
Authority
CN
China
Prior art keywords
value
interval
knob encoder
dimming
count value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210794715.3A
Other languages
Chinese (zh)
Inventor
黄荣丰
陈志曼
余泽松
欧阳锐文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yajiang Photoelectric Equipment Co Ltd
Original Assignee
Guangzhou Yajiang Photoelectric Equipment 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 Guangzhou Yajiang Photoelectric Equipment Co Ltd filed Critical Guangzhou Yajiang Photoelectric Equipment Co Ltd
Priority to CN202210794715.3A priority Critical patent/CN115103486A/en
Publication of CN115103486A publication Critical patent/CN115103486A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01HELECTRIC SWITCHES; RELAYS; SELECTORS; EMERGENCY PROTECTIVE DEVICES
    • H01H19/00Switches operated by an operating part which is rotatable about a longitudinal axis thereof and which is acted upon directly by a solid body external to the switch, e.g. by a hand
    • H01H19/02Details
    • H01H19/10Movable parts; Contacts mounted thereon
    • H01H19/14Operating parts, e.g. turn knob

Landscapes

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

Abstract

The application relates to the technical field of light dimming, in particular to a dynamic dimming method of a knob encoder. The method comprises the following steps: the control unit identifies a first change state of the knob encoder, initializes a timing counter, and judges the rotation direction of the knob encoder according to the level change received by the control unit in the first change state; the control unit identifies a second change state of the knob encoder, acquires a current time count value of the timing counter, and acquires a preset interval value corresponding to the current time count value based on the current time count value; and dynamically adjusting the dimming value of the knob encoder by one rotation according to the rotation direction and the preset interval value until the target dimming value is adjusted. This application realizes the effect of dynamic adjustment numerical value of adjusting luminance through the interval value of every check of dynamic adjustment knob encoder.

Description

Dynamic dimming method for knob encoder
Technical Field
The application relates to the technical field of light dimming, in particular to a dynamic dimming method of a knob encoder.
Background
Knob encoders are increasingly used in various industries, and in the lighting industry, trouble in operating consoles and screens is avoided, and knob encoders are beginning to be commonly used for lighting adjustment of lamps. For the dimming of a lamp, the dimming precision is adjusted within the range of 0-255, and a high-resolution encoder needs to be selected for improving the dimming precision, but because the interval of each grid of the high-resolution encoder is small, the dimming value corresponding to each grid of the rotary encoder can not be changed when the rotary encoder rotates, and the encoder needs to be accurately positioned to a certain dimming value and can only be operated finely and slowly. When the dimming value is required to be dynamically adjusted, the selection of the encoder is difficult to realize.
Disclosure of Invention
Therefore, the embodiment of the application provides a dynamic dimming method for a knob encoder, which can dynamically adjust a dimming value of the knob encoder according to a preset interval value by a time count value of one grid of the rotary knob encoder, so as to realize dynamic adjustment of the dimming value, and the specific technical scheme content is as follows:
the control unit identifies a first change state of the knob encoder, initializes a timing counter, and judges the rotation direction of the knob encoder according to the level change received by the control unit in the first change state;
the control unit identifies a second change state of the knob encoder, acquires a current time count value of the timing counter, and acquires a preset interval value corresponding to the current time count value based on the current time count value;
and dynamically adjusting the dimming value of the knob encoder by one rotation according to the rotation direction and the preset interval value until the target dimming value is adjusted.
In a preferred example of the present application, the timing counter may further determine, at intervals, whether the current time count value is 0, and if not, subtract 1 from the current time count value until the current time count value is equal to 0.
In a preferred example of the present application it may further be provided that,
the control unit identifies a first change state of the knob encoder, and the step of judging the rotation direction of the knob encoder according to the level change received by the control unit in the first change state comprises the following steps:
the control unit identifies a first change state of the knob encoder, and judges the rotation direction of the knob encoder according to the sequence of level changes of an input end A and an input end B of the control unit in the first change state; the knob encoder is electrically connected with the input end A and the input end B of the control unit;
if the input end B of the control unit receives the level change before the output end A receives the level change, the knob encoder is judged to rotate clockwise;
if the input end A of the control unit receives the level change before the output end B receives the level change, the knob encoder is judged to rotate anticlockwise.
In a preferred example of the present application, the present application can be further configured to
The step of adjusting the dimming value of the current knob encoder rotating one grid according to the rotating direction and the preset interval value further comprises:
if the knob encoder rotates clockwise, increasing the dimming numerical value of the knob encoder according to a preset interval value;
if the knob encoder rotates anticlockwise, the dimming numerical value of the knob encoder is reduced according to a preset interval value.
In a preferred example of the present application it may further be provided that,
the steps of increasing the dimming value of the knob encoder according to the preset interval value and decreasing the dimming value of the knob encoder according to the preset interval value all include:
a time count value interval table is preset in the control unit, at least two count value intervals are divided in the time count value interval table, and each count value interval is correspondingly provided with a preset interval value;
and judging a count value interval to which the current time count value belongs, acquiring a preset interval value corresponding to the count value interval, and adjusting the dimming value of the knob encoder according to the preset interval value corresponding to the count value interval.
In a preferred example of the present application it can be further arranged,
dividing the time count value interval table into five count value intervals which respectively correspond to five preset interval values, wherein adjacent preset interval values are gradually increased;
if the current time count value is judged to belong to a first count value interval, acquiring a first preset interval value corresponding to the first count value interval, and adjusting the dimming value of the knob encoder according to the first preset interval value;
if the current time count value is judged to belong to a second count value interval, a second preset interval value corresponding to the second count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the second preset interval value;
if the current time count value is judged to belong to a third counting value interval, a third preset interval value corresponding to the third counting value interval is obtained, and the dimming value of the knob encoder is adjusted according to the third preset interval value;
if the current time count value is judged to belong to a fourth count value interval, a fourth preset interval value corresponding to the fourth count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the fourth preset interval value;
and if the current time count value is judged to belong to a fifth count value interval, acquiring a fifth preset interval value corresponding to the fifth count value interval, and adjusting the dimming value of the knob encoder according to the fifth preset interval value. In a preferred example of the present application it may further be provided that,
the first counting value interval is (250,300), and the corresponding first preset interval value is 5;
the second counting value interval is (200, 250), and the corresponding second preset interval value is 4;
the third counting interval is (150, 200), and the corresponding third preset interval value is 3;
the fourth counting value interval is (100, 150), and the corresponding fourth preset interval value is 2;
the fifth counting value interval is [0,100], and the corresponding fifth preset interval value is 1.
In a preferred example of the present application it may further be provided that,
when the dimming value of the knob encoder is adjusted to be smaller than a first threshold value, setting the dimming value as the first threshold value;
and when the dimming value of the knob encoder is adjusted to be larger than a second threshold value, setting the dimming value as the second threshold value.
In a preferred example of the present application it can be further arranged,
the first threshold is set to 0 and the second threshold is set to 255.
In a preferred example of the present application, the step of dynamically adjusting a dimming value of one rotation of the knob encoder according to the rotation direction and the preset interval value may further include:
and after the dimming value of one rotation of the current knob encoder is finished, the time count value is reassigned to 300.
In summary, compared with the prior art, the beneficial effects brought by the technical scheme provided by the embodiment of the present application at least include:
1. identifying a first change state of the knob encoder through the control unit, initializing a timing counter, and judging the rotation direction of the knob encoder; after the second change state of the knob encoder is identified, the current time count value of the timing counter is obtained, the dimming value of each lattice of the knob encoder is dynamically adjusted according to the corresponding preset interval value according to the count value interval to which the current time count value belongs, and then the purpose of quickly adjusting the large numerical span or adjusting the precision of the small numerical span according to the speed of the knob encoder rotated by a user is achieved.
Drawings
Fig. 1 is a schematic flowchart illustrating a dynamic dimming method for a rotary encoder according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a connection relationship between a control unit and a knob encoder according to an embodiment of the present application;
FIG. 3 is a schematic diagram of the control unit determining a clockwise rotation of the knob encoder according to an embodiment of the present application;
fig. 4 is a schematic diagram of the control unit determining that the knob encoder rotates counterclockwise according to an embodiment of the present application.
Detailed Description
The present embodiment is only for explaining the present application, and it is not limited to the present application, and those skilled in the art can make modifications of the present embodiment without inventive contribution as needed after reading the present specification, but all of them are protected by patent law within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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.
In addition, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the present application, the character "/" indicates that the preceding and following related objects are in an "or" relationship, unless otherwise specified.
The terms "first," "second," and the like in this application are used for distinguishing between similar items and items that have substantially the same function or similar functionality, and it should be understood that "first," "second," and "nth" do not have any logical or temporal dependency or limitation on the number or order of execution.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
Referring to fig. 1, in one embodiment of the present application, a dynamic dimming method for a rotary knob encoder is provided, the main steps of the method are described as follows:
s10: the control unit identifies a first change state of the knob encoder, initializes a timing counter, and judges the rotation direction of the knob encoder according to the level change received by the control unit in the first change state;
s20: the control unit identifies a second change state of the knob encoder, acquires a current time count value of the timing counter, and acquires a preset interval value corresponding to the current time count value based on the current time count value;
and S30, dynamically adjusting the dimming value of one rotation of the knob encoder according to the rotation direction and the preset interval value until the target dimming value is adjusted.
As shown in fig. 2, the knob encoder is electrically connected to the input a end and the input B end of the control unit, the first output port of the knob encoder is electrically connected to the input a end of the control unit, the second output port of the knob encoder is electrically connected to the input B end of the control unit, and the control unit can receive the digital signal output by the knob encoder. The control unit is an MCU (microprogrammed control unit), and a timing counter is integrated in the MCU system.
Preferably, at intervals, the timing counter determines whether the current time count value is 0, and if not, the current time count value is subtracted by 1 until the current time count value is equal to 0. In this embodiment, the time interval T is set to 3.3 milliseconds, the timer counter is not interfered in the whole process, the current time count value is checked every 3.3 milliseconds to determine whether the current time count value is 0, and if not, the time count value is subtracted by 1 every 3.3 milliseconds until the time count value is equal to 0. The change of the time count value can be estimated in the process of rotating one grid through the knob encoder, the time for rotating one grid of the knob encoder by a user is the time used by multiplying the change of the time count value by 3.3 milliseconds, and the speed for rotating one grid of the knob encoder by the user can be estimated on the premise that the rotary displacement of each grid of the knob is the same. When the time count value of the knob encoder rotated by a user has small variation, namely the time used is short, the user wants to quickly adjust the knob encoder, and the expected dimming value is greatly changed; when the user rotates a knob encoder, the time count value has a large variation, i.e. the time taken is long, which represents that the user wants to slowly adjust the knob encoder, a fine variation of the dimming value is expected. Therefore, the dimming value can be adjusted by setting different interval values according to the time and speed of a user rotating a knob encoder.
Preferably, the control unit receives a signal from the knob encoder, and recognizes a first change state of the knob encoder, where the first change state is an instant when the knob encoder rotates. Judging the rotation direction of the knob encoder according to the sequence of level changes of an input end A and an input end B of the control unit in a first change state;
if the input end B of the control unit receives the level change before the input end A receives the level change, the knob encoder is judged to rotate clockwise;
if the input end A of the control unit receives the level change before the input end B receives the level change, the knob encoder is judged to rotate anticlockwise.
Specifically, the control unit receives a digital signal output by the knob encoder, and when the knob encoder is in a static and non-rotating state, the input A end and the input B end of the control unit are simultaneously high level and/or low level when receiving the digital signal. At the moment of rotating the knob encoder, the level received by the input A end and the input B end of the control unit changes, and the high level is converted into the low level or the low level is converted into the high level. As shown in fig. 3, when the control unit recognizes a first change state, where the first change state is state 1 in fig. 3, and the electrical levels received by the input a end and the input B end of the control unit change from a high electrical level to a low electrical level, and the electrical level received by the input B end of the control unit preferentially changes from the electrical level received by the input a end, it may be determined that the knob encoder rotates clockwise; as shown in fig. 4, when the control unit recognizes that the first change state is the state 1 in fig. 4, the levels received by the input a end and the input B end of the control unit change, and the levels change from high level to low level, and the level change received by the input a end of the control unit is preferentially changed from the level received by the input B end, then it can be determined that the knob encoder rotates counterclockwise.
Preferably, if the knob encoder rotates clockwise, the dimming value of the knob encoder is increased according to a preset interval value; and if the knob encoder rotates anticlockwise, reducing the dimming numerical value of the knob encoder according to a preset interval value. Specifically, the control unit judges that the user rotates the knob encoder clockwise, and when the user rotates the knob encoder one grid, the dimming numerical value of the knob encoder is added with a preset interval value; the control unit judges that the user rotates the knob encoder anticlockwise, and when the user rotates the knob encoder one grid, the dimming value of the knob encoder subtracts a preset interval value once. Through judging the rotation direction of the knob encoder, the dimming numerical value is increased or reduced at any time, so that the dimming numerical value is more convenient and efficient to adjust.
Preferably, a time count value interval table is preset in the control unit, at least two count value intervals are divided in the time count value interval table, each count value interval is correspondingly provided with a preset interval value, and the number of the count value intervals can be freely set;
and judging a count value interval to which the current time count value belongs, acquiring a preset interval value corresponding to the count value interval, and adjusting the dimming value of the knob encoder according to the preset interval value corresponding to the count value interval.
Specifically, as shown in fig. 3 and 4, the control unit obtains a current time count value of the timing counter at the instant when the control unit receives the second change state of the knob encoder, determines a count value interval to which the current time count value belongs by referring to a time technical value interval table preset in the control unit, obtains a preset interval value corresponding to the count value interval, and adjusts the dimming value of the knob encoder according to the preset interval value. And estimating the time for rotating a lattice knob encoder according to the counting value interval to which the current counting value belongs, and further performing quick adjustment of large numerical span on the dimming numerical value according to different preset interval values or performing fine adjustment of small numerical span on the dimming numerical value.
Preferably, the time count value interval table is divided into five count value intervals from large to small, and the five count value intervals respectively correspond to five preset interval values, wherein the first count value interval corresponds to a first preset interval value, the second count value interval corresponds to a second preset interval value, the third count value interval corresponds to a third preset interval value, the fourth count value interval corresponds to a fourth preset interval value, the fifth count value interval corresponds to a fifth preset interval value, the first preset interval value to the fifth preset interval value, and adjacent preset interval values are gradually reduced.
If the current time count value is judged to belong to the first count value interval, acquiring a first preset interval value corresponding to the first count value interval, and adjusting the dimming value of the knob encoder according to the first preset interval value;
if the current time count value is judged to belong to the second count value interval, a second preset interval value corresponding to the second count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the second preset interval value;
if the current time count value is judged to belong to a third counting value interval, a third preset interval value corresponding to the third counting value interval is obtained, and the dimming value of the knob encoder is adjusted according to the third preset interval value;
if the current time count value is judged to belong to a fourth count value interval, a fourth preset interval value corresponding to the fourth count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the fourth preset interval value;
if the current time count value is judged to belong to the fifth count value interval, acquiring a fifth preset interval value corresponding to the fifth count value interval, and adjusting the dimming value of the knob encoder according to the fifth preset interval value;
preferably, the first counting value interval is (250,300), and the corresponding first preset interval value is 5;
the second counting value interval is (200, 250), and the corresponding second preset interval value is 4;
the third interval is (150, 200), and the corresponding third preset interval value is 3;
the fourth counting value interval is (100, 150), and the corresponding fourth preset interval value is 2;
the fifth counting value interval is [0,100], and the corresponding fifth preset interval value is 1.
Specifically, for example, the control unit recognizes a first change state of the knob encoder, initializes the timing counter, and in the first change state, the input B end of the control unit receives a level change before the output a end receives a level change, and determines that the rotation direction of the knob encoder is clockwise; and identifying a second change state of the knob encoder, rotating the knob encoder by one grid to obtain a current time count value of the timing counter at the moment, comparing the current time count value with a time count value interval table preset in the control unit, if the judgment result shows that the current time count value belongs to a first count value interval, obtaining a first preset interval value corresponding to the first count value interval, and adding a first preset interval value to the dimming value of the knob encoder.
The time counting value has a value interval of 0-300, which is divided into 5 different value intervals, and the different value intervals represent the time range for a user to rotate a knob encoder. The numerical value interval of the time count value is divided into 5 different numerical value intervals, so that the regulation rate habit of a user is better met, and the dimming efficiency of the dimming numerical value of the adjusting knob encoder can be improved. The first counting value interval is between more than 250 and less than or equal to 300, which represents that the time range for rotating a knob encoder by a user is between 0 and 0.165 seconds, and the first preset interval value is set to be 5; the second counting value interval is between more than 200 and less than or equal to 250, which represents that the time range for the user to rotate one knob encoder is between 0.165 and 0.33 seconds, and the second preset interval value is set to be 4; the third counting value interval is between more than 150 and less than or equal to 200, which represents that the time range for the user to rotate one knob encoder is between 0.33 and 0.495 seconds, and at this time, the third preset interval value is set to be 3; the fourth counting value interval is between more than 100 and less than or equal to 150, which represents that the time range for the user to rotate one knob encoder is between 0.495 and 0.66 seconds, and the second preset interval value is set to be 2; the fourth counting value interval is between greater than 0 and less than or equal to 100, which represents that the time for the user to rotate one knob encoder ranges from 0.66 to 0.99 seconds, and the first preset interval value is set to be 1. The different time spent scope of a check knob encoder is rotated according to the user, correspond and set up different interval value of predetermineeing and come dynamic adjustment numerical value of adjusting luminance, the interval value of predetermineeing that short time spent corresponds is big when the user rotates a check knob encoder, make the numerical value of adjusting luminance jump fast to the value of adjusting luminance that is close the user and wants, the interval value of predetermineeing that longer correspondence when the user rotates a check knob encoder usefulness is little, it is more accurate to make the numerical value of adjusting luminance change this moment, realize quick and accurate adjustment to the value of adjusting luminance that wants.
Preferably, when the dimming value of the knob encoder is adjusted to be smaller than the first threshold, the dimming value of the knob encoder is set to be the first threshold; when the dimming value of the knob encoder is adjusted to be larger than a second threshold value, setting the dimming value as the second threshold value; wherein the first threshold is set to 0 and the second threshold is set to 255.
The existing LED lamps adopt digital signals to control brightness dimming, and each channel of a digital signal dimming system only changes from 0 to 255, so that the LED dimming stage number is only 256 levels and the dimming system numerical value is in one-to-one correspondence with 0 to 255. When the dimming value of the knob encoder is adjusted to be increased or decreased according to the preset interval value, a value greater than 255 or less than 0 may occur, and at this time, the lamp does not have corresponding brightness. When the dimming value of the knob encoder is adjusted to be less than 0, setting the dimming value to be 0; when the dimming value of the knob encoder is adjusted to be larger than 255, the dimming value is set to be 255, and the dimming value is guaranteed to change between effective values.
Preferably, after the step of adjusting the dimming value of the knob encoder according to the time count value by the preset interval value, the method further includes: and after the dimming count value of one rotation of the current knob encoder is completed, the time count value is reassigned to 300. And the time counting device is used for judging the numerical range of the time counting value when the knob encoder is rotated next time.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the system described in this application is divided into different functional units or modules to perform all or part of the above-mentioned functions.

Claims (10)

1. A dynamic dimming method for a rotary knob encoder, the method comprising:
the control unit identifies a first change state of the knob encoder, initializes a timing counter, and judges the rotation direction of the knob encoder according to the level change received by the control unit in the first change state;
the control unit identifies a second change state of the knob encoder, acquires a current time count value of the timing counter, and acquires a preset interval value corresponding to the current time count value based on the current time count value;
and dynamically adjusting the dimming numerical value of one rotation of the knob encoder according to the rotation direction and the preset interval value until the target dimming numerical value is adjusted.
2. The dynamic dimming method for knob encoders according to claim 1, further comprising: and judging whether the current time count value is 0 or not by a timing counter at intervals, and if not, subtracting 1 from the current time count value until the current time count value is equal to 0.
3. The dynamic dimming method of knob encoder according to claim 1, wherein the step of determining the rotation direction of knob encoder according to the level change received by the control unit in the first change state comprises:
judging the rotation direction of the knob encoder according to the sequence of level changes of the input end A and the input end B of the control unit in the first change state; the knob encoder is electrically connected with the input end A and the input end B of the control unit;
if the input end B of the control unit receives the level change before the output end A receives the level change, the knob encoder is judged to rotate clockwise;
if the input end A of the control unit receives the level change before the output end B receives the level change, the knob encoder is judged to rotate anticlockwise.
4. The dynamic dimming method for knob encoders according to claim 3, wherein the step of adjusting the dimming value of one rotation of the knob encoder according to the rotation direction and the preset interval value further comprises:
if the knob encoder rotates clockwise, increasing the dimming numerical value of the knob encoder according to a preset interval value;
if the knob encoder rotates anticlockwise, the dimming numerical value of the knob encoder is reduced according to a preset interval value.
5. The dynamic dimming method of the knob encoder according to claim 4, wherein the steps of increasing the dimming value of the knob encoder by a preset interval value and decreasing the dimming value of the knob encoder by the preset interval value each comprise:
a time count value interval table is preset in the control unit, at least two count value intervals are divided in the time count value interval table, and each count value interval is correspondingly provided with a preset interval value;
and judging a count value interval to which the current time count value belongs, acquiring a preset interval value corresponding to the count value interval, and adjusting the dimming value of the knob encoder according to the preset interval value corresponding to the count value interval.
6. The dynamic dimming method for knob encoders according to claim 5, further comprising:
dividing the time count value interval table into five count value intervals which respectively correspond to five preset interval values;
if the current time count value is judged to belong to a first count value interval, acquiring a first preset interval value corresponding to the first count value interval, and adjusting the dimming value of the knob encoder according to the first preset interval value;
if the current time count value is judged to belong to a second count value interval, a second preset interval value corresponding to the second count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the second preset interval value;
if the current time count value is judged to belong to a third counting value interval, a third preset interval value corresponding to the third counting value interval is obtained, and the dimming value of the knob encoder is adjusted according to the third preset interval value;
if the current time count value is judged to belong to a fourth count value interval, a fourth preset interval value corresponding to the fourth count value interval is obtained, and the dimming value of the knob encoder is adjusted according to the fourth preset interval value;
and if the current time count value is judged to belong to a fifth count value interval, acquiring a fifth preset interval value corresponding to the fifth count value interval, and adjusting the dimming value of the knob encoder according to the fifth preset interval value.
7. The dynamic dimming method of knob encoder according to claim 6,
the first counting value interval is (250,300), and the corresponding first preset interval value is 5;
the second counting value interval is (200, 250), and the corresponding second preset interval value is 4;
the third interval is (150, 200), and the corresponding third preset interval value is 3;
the fourth counting value interval is (100, 150), and the corresponding fourth preset interval value is 2;
the fifth counting value interval is [0,100], and the corresponding fifth preset interval value is 1.
8. The knob encoder dynamic dimming method according to claim 7, further comprising:
when the dimming value of the knob encoder is adjusted to be smaller than a first threshold value, setting the dimming value as the first threshold value;
and when the dimming value of the knob encoder is adjusted to be larger than a second threshold value, setting the dimming value as the second threshold value.
9. The knob encoder dynamic dimming method according to claim 8, wherein the first threshold is set to 0 and the second threshold is set to 255.
10. The dynamic dimming method for knob encoders according to claim 9, wherein the step of dynamically adjusting the dimming value of one rotation of the knob encoder according to the rotation direction and the preset interval value further comprises:
and after the dimming value of one rotation of the current knob encoder is finished, the time count value is reassigned to 300.
CN202210794715.3A 2022-07-07 2022-07-07 Dynamic dimming method for knob encoder Pending CN115103486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210794715.3A CN115103486A (en) 2022-07-07 2022-07-07 Dynamic dimming method for knob encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210794715.3A CN115103486A (en) 2022-07-07 2022-07-07 Dynamic dimming method for knob encoder

Publications (1)

Publication Number Publication Date
CN115103486A true CN115103486A (en) 2022-09-23

Family

ID=83296961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210794715.3A Pending CN115103486A (en) 2022-07-07 2022-07-07 Dynamic dimming method for knob encoder

Country Status (1)

Country Link
CN (1) CN115103486A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117031990A (en) * 2023-08-02 2023-11-10 大拓(山东)物联网科技有限公司 Household appliance control method, device, equipment and storage medium based on knob screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117031990A (en) * 2023-08-02 2023-11-10 大拓(山东)物联网科技有限公司 Household appliance control method, device, equipment and storage medium based on knob screen

Similar Documents

Publication Publication Date Title
US9041308B2 (en) Systems and methods of controlling the output of a light fixture
CN115103486A (en) Dynamic dimming method for knob encoder
WO2023051639A1 (en) Gear shifting control method and apparatus for electrochromic device, and electrochromic device
CN1499479A (en) Sampling phase device for regulating digital displaying device and its regulation method
CN104797063A (en) Method and device for adjusting lamplight brightness, and LED lamp
CN107134273B (en) Brightness compensation method and device and terminal
CN114126155B (en) Wireless multi-frequency dimmer control system based on intelligent induction
EP3479654B1 (en) Smart light dimming
EP3079447A1 (en) Controlling networked lighting devices
US9713229B2 (en) Lighting control apparatus and lighting system
CN110440226A (en) Atmosphere lamp, atmosphere lamp automatic switching method and the associated component that can automatically switch
CN109616082B (en) Method, device and system for automatically adjusting backlight brightness
CN105744034A (en) Screen brightness output method and device
CN106714383B (en) A kind of LED light light control method
CN109443533B (en) Method and device for calibrating backlight brightness of switch panel
CN105827939A (en) Method for controlling flash lamp and electronic device
CN112689107B (en) Method for dynamically adjusting backlight
JPH1145782A (en) Dimmer monitor control system
CN115731882A (en) Screen brightness adjusting method, device, equipment and storage medium
CN108601150A (en) A kind of method, apparatus and electric appliance of automatic adjustment LED display brightness
US10070496B2 (en) Task to wall color control
CN111915688B (en) Theme style generation method, electronic device and medium
SG186590A1 (en) Device and method for controlling output of load
US20160174342A1 (en) Method for controlling lighting element and associated system
CN105551442A (en) Backlight brightness adjustment method and device

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