CN109388080B - Control method and device of encoder switch and electrical equipment - Google Patents

Control method and device of encoder switch and electrical equipment Download PDF

Info

Publication number
CN109388080B
CN109388080B CN201710664610.5A CN201710664610A CN109388080B CN 109388080 B CN109388080 B CN 109388080B CN 201710664610 A CN201710664610 A CN 201710664610A CN 109388080 B CN109388080 B CN 109388080B
Authority
CN
China
Prior art keywords
encoder switch
square wave
pulse signal
wave pulse
phase square
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
CN201710664610.5A
Other languages
Chinese (zh)
Other versions
CN109388080A (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.)
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Foshan Shunde Midea Electrical Heating Appliances Manufacturing 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 Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority to CN201710664610.5A priority Critical patent/CN109388080B/en
Publication of CN109388080A publication Critical patent/CN109388080A/en
Application granted granted Critical
Publication of CN109388080B publication Critical patent/CN109388080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Electric Ovens (AREA)

Abstract

The invention discloses a control method and a control device of an encoder switch and electrical equipment, wherein the method comprises the following steps: s1, when a menu option opening instruction is received, acquiring a first phase signal and a second phase signal output by an encoder switch in a preset sampling period; s2, after the rotation direction of the encoder switch is determined according to the first phase signal and the second phase signal, the falling edge of the second phase signal is monitored; s3, recording as one effective rotation when the falling edge of the second phase signal arrives, and returning to execute S1-S3 in a circulating way; s4, when the change of the rotation direction of the encoder switch is determined, clearing the effective rotation times, recording the current direction of the encoder switch, and returning to execute S3; and S5, when the effective rotation times reach the preset times value, determining that the rotation operation of the encoder switch is effective, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction. The invention realizes that the corresponding adjusting speed is set according to different menus or parameter ranges.

Description

Control method and device of encoder switch and electrical equipment
Technical Field
The invention relates to the technical field of encoder switches, in particular to a control method and device of an encoder switch and electrical equipment.
Background
The control panel of the existing electrical equipment such as a washing machine and a microwave oven mostly adopts a key type for selecting a working mode or setting corresponding parameters through keys, corresponding keys are increased along with the abundance of functions of the electrical equipment, and in order to reduce the use of the number of the selected keys, an encoder switch is mostly added in the electrical equipment, and a user selects menu options, adjusting time or other parameters and the like through rotating the encoder switch.
However, in the menu or parameter setting of different levels, the adjustment selection range is different, the adjustment with a small range has no problem, but the adjustment with a large range can be selected by rotating for multiple turns, which brings great inconvenience to the user.
Disclosure of Invention
The invention mainly aims to provide a control method and a control device for an encoder switch and electrical equipment, and aims to set corresponding adjusting speed according to the number of submenus of different levels or parameter ranges of different lengths.
In order to achieve the above object, the present invention provides a method for controlling an encoder switch, comprising the steps of:
s1, when a menu option opening instruction is received, acquiring a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch according to a preset sampling period T;
s2, after the rotation direction of the encoder switch is determined according to the collected first phase square wave pulse signal and the second phase square wave pulse signal, the falling edge of the second phase square wave pulse signal is monitored; the rotation direction comprises a clockwise direction and a counterclockwise direction;
s3, recording as an effective rotation when the falling edge of the second phase square wave pulse signal arrives, returning to the step S1-S3 of cyclic execution, and accumulating the effective rotation times in the process of the step S1-S3 of cyclic execution until the effective rotation times reach a preset time value or the rotation direction of the encoder switch is determined to be changed;
s4, when the change of the rotation direction of the encoder switch is determined, clearing the effective rotation times, recording the current direction of the encoder switch, and returning to execute the step S3;
and S5, when the effective rotation times reach a preset time value, determining that the rotation operation of the encoder switch is effective, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction.
Preferably, step S2 includes:
s21, when the second-phase square wave pulse signal is a high-level signal, if the first-phase square wave pulse signal jumps from a low-level signal to a high-level signal, determining that the rotation direction of the encoder switch is clockwise;
and S22, if the first-phase square wave pulse signal jumps from a high-level signal to a low-level signal, determining that the rotation direction of the encoder switch is in a counterclockwise direction.
Preferably, the step S2 further includes:
and recording the time delta t of the second-phase square wave pulse signal from high-level signal to low-level when the first-phase square wave pulse signal jumps from low level to high level or the first-phase square wave pulse signal jumps from high level to low level, wherein each delta t is one effective rotation.
Preferably, before the step S1, the method for controlling the encoder switch further includes:
and S6, acquiring the key information of the user, determining the menu option corresponding to the acquired key information, and opening the corresponding menu option.
The present invention further provides a control device of an encoder switch, where the control device of the encoder switch includes an MCU and a control program of the encoder switch stored in the MCU and operable on the MCU, where the control program of the encoder switch is executed by the MCU to implement the steps of the control method of the encoder switch, where the control method of the encoder switch includes the following steps: s1, when a menu option opening instruction is received, acquiring a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch according to a preset sampling period T; s2, after the rotation direction of the encoder switch is determined according to the collected first phase square wave pulse signal and the second phase square wave pulse signal, the falling edge of the second phase square wave pulse signal is monitored; the rotation direction comprises a clockwise direction and a counterclockwise direction; s3, recording as an effective rotation when the falling edge of the second phase square wave pulse signal arrives, returning to the step S1-S3 of cyclic execution, and accumulating the effective rotation times in the process of the step S1-S3 of cyclic execution until the effective rotation times reach a preset time value or the rotation direction of the encoder switch is determined to be changed; s4, when the change of the rotation direction of the encoder switch is determined, clearing the effective rotation times, recording the current direction of the encoder switch, and returning to execute the step S3; and S5, when the effective rotation times reach a preset time value, determining that the rotation operation of the encoder switch is effective, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction.
The invention also provides electrical equipment which comprises an encoder switch and the control device of the encoder switch, wherein the encoder switch is electrically connected with the MCU of the control device of the encoder switch.
Preferably, the electric appliance is a washing machine/an induction cooker/a microwave oven/an electric cooker/an electric pressure cooker.
When a menu option opening instruction is received, a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch are collected in a preset sampling period T; after the rotation direction of the encoder switch is determined according to the collected first-phase square wave pulse signal and the collected second-phase square wave pulse signal, the falling edge of the second-phase square wave pulse signal is monitored; and when the falling edge of the second-phase square wave pulse signal arrives, recording as one-time effective rotation, accumulating the effective rotation times until the effective rotation times reach a preset number, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction. If the effective rotation times are reset when the rotation direction of the encoder switch is changed in the accumulation process of the effective rotation times, recording the current direction of the encoder switch, monitoring the falling edge of the second-phase square wave pulse signal again, and accumulating the effective rotation times until the effective rotation times reach a preset number value; and when the effective rotation times reach a preset number, determining that the rotation operation of the encoder switch is effective. The invention sets different sampling periods T and preset times S according to the corresponding parameter adjusting range or menu selecting range, and sets different parameter adjusting speeds, thereby adapting to different adjusting ranges.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic circuit diagram of an embodiment of an encoder switch in a control method of the encoder switch according to the present invention;
fig. 2 is a flowchart illustrating a control method for an encoder switch according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a control method of an encoder switch.
The encoder switch is a rotary sensor for converting rotary displacement into digital pulse signals, and particularly, the encoder switch displacement is converted into periodic voltage signals, and then the voltage signals are converted into pulse level signals, so that the size of the encoder switch displacement can be known by recording the number of pulses, therefore, in electric equipment such as washing machines, microwave ovens and the like, a user can select menu options, adjust time or other parameters and the like by rotating the encoder switch, the use of the number of selection keys is reduced, and the operation is more convenient and faster than the operation keys.
Referring to fig. 1, an encoder switch 100 generally has A, B, C output three phases, and in practical application, a phase C is grounded, a phase a and a phase B are connected to a power VCC through a pull-up resistor, and the phase a and the phase B are respectively connected to two IO interfaces IO1 and IO2 of a main controller in an electrical apparatus, where the phase a is also a first phase and the phase B is also a second phase of the present invention, and the main controller 200 is also an MCU obtains a displacement of the encoder switch 100 and a rotation direction of the encoder switch by receiving square wave pulse signals output by the phase a and the phase B, so as to set corresponding parameters or select corresponding menu options after determining the rotation direction and the displacement of the encoder switch 100, and execute corresponding function instructions.
However, in the menu or parameter setting of different levels, the adjustment selection range is different, the adjustment with a small range has no problem, but the adjustment with a large range needs to be rotated for multiple turns to select the required setting, and the use of the user is inconvenient.
Referring to fig. 2, in order to solve the above problem, in an embodiment of the present invention, a method for controlling an encoder switch is provided, where the method specifically includes the following steps:
step S1, when a menu option opening instruction is received, acquiring a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch according to a preset sampling period T;
in the electrical equipment, the encoder switch is mostly used with a small number of keys to reduce the number of keys, when a user selects a menu or adjusts working parameters of the electrical equipment, the user firstly selects a corresponding function menu through the keys, then the specific parameters in the function menu are adjusted by rotating the encoder switch, or selecting a submenu in the function menu, when receiving a menu option opening instruction, indicating that the user has selected the function menu, the pointer of the main program jumps to the program corresponding to the menu option, when the user rotates the encoder switch, the encoder switch converts the displacement into a periodic voltage signal and outputs corresponding square wave pulse signals from the first phase and the second phase, and acquiring square wave pulse signals output by the first phase and the second phase of the switch of the encoder according to a preset sampling period T. The sampling period T can be set according to different electrical equipment and different menus and function keys so as to realize different adjusting speeds.
Step S2, after the rotation direction of the encoder switch is determined according to the collected first phase square wave pulse signal and the second phase square wave pulse signal, the falling edge of the second phase square wave pulse signal is monitored; the rotation direction comprises a clockwise direction and a counterclockwise direction;
when a user adjusts a corresponding working parameter under a selected menu, the parameter is adjusted through an encoder, for example, the working parameter is correspondingly increased through a clockwise encoder switch, and the working parameter is correspondingly decreased through an anticlockwise encoder.
When a user selects a certain menu and sets a corresponding sub-menu, the sub-menu is selected through an encoder, for example, a clockwise encoder switch can be configured in advance to correspondingly select the sub-menu in the menu downwards or leftwards, and the sub-menu in the menu is correspondingly selected upwards or rightwards anticlockwise. Of course, the working parameter may be correspondingly increased when the encoder switch is rotated counterclockwise, and the working parameter may be correspondingly decreased when the encoder switch is rotated clockwise, which is not limited herein. When the encoder switch rotates in the clockwise direction, the second phase square wave pulse signal is at a high level, and the first phase square wave pulse signal changes from low to high. When the encoder switch rotates along the anticlockwise direction, the second-phase square wave pulse signal is at a high level, the first-phase square wave pulse signal jumps from the high level to a low level, and therefore the rotating direction of the encoder switch can be determined according to the collected first-phase square wave pulse signal and the collected second-phase square wave pulse signal. After determining the rotation direction of the encoder switch, it is detected whether a falling edge of the second phase square wave pulse signal arrives.
Step S3, recording as an effective rotation when the falling edge of the second phase square wave pulse signal arrives, returning to the step S1 to the step S3, and accumulating the effective rotation times in the process of executing the step S1 to the step S3 in a circulating way until the effective rotation times reach a preset time value S, or until the rotation direction of the encoder switch is determined to be changed;
in the process of the rotation of the encoder switch, in the period from the high level of the first-phase square wave pulse signal jumping to the low level from the high level to the low level of the second-phase square wave pulse signal jumping to the low level, or in the period from the low level of the first-phase square wave pulse signal jumping to the high level from the high level to the low level of the second-phase square wave pulse signal jumping to the low level from the high level, the first-phase square wave pulse signal and the second-phase square wave pulse signal can change once, the process that the first-phase square wave pulse signal and the second-phase square wave pulse signal change is recorded as effective rotation, if interference is generated due to signal jitter or false operation and the like, the first-phase square wave pulse signal or the second-phase square wave pulse signal fluctuates, so that only the change of the first-phase signal or the second-phase signal is detected, the first-phase square wave pulse signal is determined as invalid rotation, and determining the rotation direction of the encoder switch according to the second phase signal and the collected first phase square wave pulse signal and second phase square wave pulse signal, and counting the effective rotation times.
Step S4, when the change of the rotation direction of the encoder switch is determined, clearing the effective rotation times, recording the current direction of the encoder switch, and returning to execute the step S3;
when the fact that the rotating direction of the encoder switch is changed from the clockwise direction to the anticlockwise direction or the anticlockwise direction is changed to the clockwise direction is detected, the currently recorded effective rotating frequency is cleared, the current rotating direction is recorded, then a first phase square wave pulse signal and a second phase square wave pulse signal output by the encoder switch are continuously collected, the rotating direction of the encoder switch can be determined according to the collection of the first phase square wave pulse signal and the second phase square wave pulse signal, and the effective rotating frequency is counted.
And step S5, when the effective rotation times reach a preset time value S, determining that the rotation operation of the encoder switch is effective, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction.
In a preset sampling period, if the rotation direction of the encoder switch is unchanged, when the effective rotation times reach a preset time value S, determining that the rotation operation of the encoder switch is effective, detecting whether a user inputs a confirmation key instruction, and if the user does not input the confirmation key instruction within a preset time (such as 5 seconds), automatically converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the effective rotation operation. If a key instruction input by a user is received, the effective rotation operation of the encoder switch is converted into a corresponding key instruction and executed, and the preset numerical value S can be set according to different electrical equipment, different menus and function keys so as to realize different adjusting speeds.
In the above embodiment, the smaller the sampling period T or the smaller the preset number S, the faster the parameter adjustment speed, that is, the faster the response speed of the encoder switch, the larger the sampling period T or the larger the preset number S, the slower the parameter adjustment speed, that is, the slower the response speed of the encoder switch, so as to set the corresponding adjustment speed according to the number of submenus at different levels or parameter ranges of different lengths, for example, a menu with a large number of submenus in a range or a parameter range, the larger the preset number is set correspondingly, thereby reasonably setting the response speed of the encoder switch.
When a menu option opening instruction is received, a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch are collected in a preset sampling period T; after the rotation direction of the encoder switch is determined according to the collected first-phase square wave pulse signal and the collected second-phase square wave pulse signal, the falling edge of the second-phase square wave pulse signal is monitored; and when the falling edge of the second-phase square wave pulse signal arrives, recording as one-time effective rotation, accumulating the effective rotation times until the effective rotation times reach a preset number, and converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction. If the effective rotation times are reset when the rotation direction of the encoder switch is changed in the accumulation process of the effective rotation times, recording the current direction of the encoder switch, monitoring the falling edge of the second-phase square wave pulse signal again, and accumulating the effective rotation times until the effective rotation times reach a preset number value; and when the effective rotation times reach a preset number, determining that the rotation operation of the encoder switch is effective. The invention sets different sampling periods T and preset times S according to the corresponding parameter adjusting range or menu selecting range, and sets different parameter adjusting speeds, thereby adapting to different adjusting ranges.
In a preferred embodiment, the step S2 further includes:
and recording the time delta t of the second-phase square wave pulse signal from high-level signal to low-level when the first-phase square wave pulse signal jumps from low level to high level or the first-phase square wave pulse signal jumps from high level to low level, wherein each delta t is one effective rotation.
The encoder switch rotates in a clockwise direction or a counterclockwise direction, the time from the low level jump of the first-phase square wave pulse signal to the high level, or from the high level jump of the first-phase square wave pulse signal to the low level to the high level jump of the second-phase square wave pulse signal to the low level is recorded as delta t, the delta t is also the phase difference between the first-phase square wave pulse signal and the second-phase square wave pulse signal, the delta t is smaller as the rotating speed is higher, and therefore the corresponding rotating speed is set according to the number of submenus of different levels or parameter ranges of different lengths.
Further, before the step S1, the method for controlling the encoder switch further includes:
acquiring user key information, determining a menu option corresponding to the acquired key information, and opening the corresponding menu option.
In this embodiment, a key instruction input by a user is detected, corresponding key information is acquired, a menu option corresponding to the acquired key information is determined, a pointer of a main program jumps to a program corresponding to the menu option, and then a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch are acquired.
The invention also provides a control device of the encoder switch, which comprises an MCU and a control program of the encoder switch, wherein the control program of the encoder switch is stored in the MCU and can run on the MCU, and the control program of the encoder switch realizes the steps of the control method of the encoder switch when being executed by the MCU. The specific steps of the control method of the encoder switch and the technical effects of the implementation can refer to the above embodiments, and are not described herein again.
The invention also provides electrical equipment which comprises an encoder switch and the control device of the encoder switch, wherein the encoder switch is electrically connected with the MCU of the control device of the encoder switch.
In this embodiment, referring to fig. 1, the encoder switch 100 generally has A, B, C output three phases, and in practical application, the C phase is grounded, the a phase and the B phase are connected to a VCC through a pull-up resistor, and the a phase and the B phase are respectively connected to two IO interfaces IO1 and IO2 of a main controller in an electrical apparatus, where the a phase is a first phase and a B phase according to the present invention and a second phase according to the present invention, and the MCU is a main controller 200 that obtains a displacement of the encoder switch 100 and a rotation direction of the encoder switch by receiving square wave pulse signals output by the a phase and the B phase, so as to set corresponding parameters or select corresponding menu options after determining the rotation direction and the displacement of the encoder switch 100, and execute corresponding function instructions.
In the above embodiments, the electric appliance may be a washing machine, an induction cooker, a microwave oven, an electric cooker, an electric pressure cooker, or the like.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A control method of an encoder switch is characterized by comprising the following steps:
s1, when a menu option opening instruction is received, acquiring a first-phase square wave pulse signal and a second-phase square wave pulse signal output by an encoder switch according to a preset sampling period T;
s2, after the rotation direction of the encoder switch is determined according to the collected first phase square wave pulse signal and the second phase square wave pulse signal, the falling edge of the second phase square wave pulse signal is monitored; the rotation direction comprises a clockwise direction and a counterclockwise direction;
s3, recording as an effective rotation when the falling edge of the second phase square wave pulse signal arrives, returning to the step S1-S3 of cyclic execution, and accumulating the effective rotation times in the process of the step S1-S3 of cyclic execution until the effective rotation times reach a preset time value or the rotation direction of the encoder switch is determined to be changed;
s4, when the change of the rotation direction of the encoder switch is determined, clearing the effective rotation times, recording the current direction of the encoder switch, and returning to execute the step S3;
s5, when the effective rotation times reach a preset times value, determining that the rotation operation of the encoder switch is effective, and then converting the effective rotation operation of the encoder switch into a corresponding key instruction and executing the key instruction;
wherein the step S2 includes:
s21, when the second-phase square wave pulse signal is a high-level signal, if the first-phase square wave pulse signal jumps from a low-level signal to a high-level signal, determining that the rotation direction of the encoder switch is clockwise;
and S22, if the first-phase square wave pulse signal jumps from a high-level signal to a low-level signal, determining that the rotation direction of the encoder switch is in a counterclockwise direction.
2. The control method of the encoder switch according to claim 1, wherein the step S2 further comprises:
and recording the time delta t of the second-phase square wave pulse signal from high-level signal to low-level when the first-phase square wave pulse signal jumps from low level to high level or the first-phase square wave pulse signal jumps from high level to low level, wherein each delta t is one effective rotation.
3. The method for controlling the encoder switch according to claim 1, wherein before the step S1, the method for controlling the encoder switch further comprises:
and S6, acquiring the key information of the user, determining the menu option corresponding to the acquired key information, and opening the corresponding menu option.
4. A control device of an encoder switch, characterized in that the control device of the encoder switch comprises an MCU and a control program of the encoder switch stored in and operable on the MCU, wherein the control program of the encoder switch, when executed by the MCU, implements the steps of the control method of the encoder switch according to any one of claims 1 to 3.
5. An electrical apparatus, characterized in that the electrical apparatus comprises an encoder switch and a control device of the encoder switch according to claim 4, the encoder switch being electrically connected to the MCU of the control device of the encoder switch.
6. The electrical apparatus of claim 5, wherein the electrical apparatus is a washing machine/an induction cooker/a microwave oven/an electric cooker/an electric pressure cooker.
CN201710664610.5A 2017-08-04 2017-08-04 Control method and device of encoder switch and electrical equipment Active CN109388080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710664610.5A CN109388080B (en) 2017-08-04 2017-08-04 Control method and device of encoder switch and electrical equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710664610.5A CN109388080B (en) 2017-08-04 2017-08-04 Control method and device of encoder switch and electrical equipment

Publications (2)

Publication Number Publication Date
CN109388080A CN109388080A (en) 2019-02-26
CN109388080B true CN109388080B (en) 2021-05-28

Family

ID=65413152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710664610.5A Active CN109388080B (en) 2017-08-04 2017-08-04 Control method and device of encoder switch and electrical equipment

Country Status (1)

Country Link
CN (1) CN109388080B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748838B (en) * 2019-10-31 2022-07-29 浙江绍兴苏泊尔生活电器有限公司 Parameter setting method and electric appliance
CN113040601B (en) * 2019-12-27 2023-03-14 九阳股份有限公司 Operating method of household appliance
CN114113993B (en) * 2020-08-26 2024-10-01 深圳和而泰智能控制股份有限公司 Encoding switch detection method, computer storage medium and apparatus
CN114216488B (en) * 2021-12-01 2022-11-25 珠海格力电器股份有限公司 Control method, control system and equipment of rotary encoder
CN115683172B (en) * 2022-11-11 2024-08-16 广东美的智能科技有限公司 Multi-turn counting method of encoder, encoder and operation control device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3254182B2 (en) * 1998-02-12 2002-02-04 株式会社北浦製作所 Consolidated water pipe facility
JP3454750B2 (en) * 1998-05-09 2003-10-06 マルチデザイン有限会社 Moving position detector
CN101193233A (en) * 2007-06-20 2008-06-04 深圳创维-Rgb电子有限公司 TV set key control device and TV set
CN101521764B (en) * 2008-12-17 2013-01-02 康佳集团股份有限公司 TV set with revolving functional key and method for adjusting functions
JP5641746B2 (en) * 2010-02-12 2014-12-17 株式会社ミツトヨ Photoelectric encoder
CN103185603B (en) * 2011-12-29 2016-03-23 苏州汇川技术有限公司 Incremental encoder signal processing system and method

Also Published As

Publication number Publication date
CN109388080A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109388080B (en) Control method and device of encoder switch and electrical equipment
US20110156800A1 (en) Sensor, sensing method thereof, and filter therefor
US8432173B2 (en) Capacitive position sensor
EP2680018A1 (en) Method and apparatus for detecting key
JP2010530661A (en) Switch debounce device and method
CN105334903A (en) Turn button control method and device of household electrical appliance
CN105630218A (en) Household appliance, touch apparatus for household appliance and touch method for household appliance
CN114270708A (en) Method for setting sampling frequency of capacitive touch switch
CN106033964B (en) Button triggers detection device and has its domestic appliance among domestic appliance
US20220383710A1 (en) Control device, control method, and control program
CN108873763A (en) Operating mode adjusting method, device and equipment
JP6300371B2 (en) Motor drive control device and motor drive control method
KR20050070212A (en) Noise filtering method for touch screen
CN109976635A (en) Time control method and device based on intelligent kitchen appliance touch screen
CN113139638B (en) Control method of magnetic knob, cooking device and computer readable storage medium
CN105595864B (en) Electric kitchen appliance
JP2022103046A (en) Signal generating device
CN111371462B (en) Anti-interference method and device for touch keys, electronic equipment and storage medium
US20140346895A1 (en) Method and circuit arrangement for the activation and parameterization of an electrical device
JP7433999B2 (en) Distance calculation device, distance measurement system, distance calculation program and distance calculation method
JP4463533B2 (en) Rotary encoder detection device
US6353432B1 (en) Mouse scroll input apparatus
US20180046320A1 (en) Sampling frequency and accumulator sweeping in a touch screen controller
JP5175158B2 (en) Jog dial control method
CN113138621B (en) Control method of magnetic knob, cooking device and computer readable storage medium

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