CN109445329A - A kind of refrigerator functions selection system and method - Google Patents

A kind of refrigerator functions selection system and method Download PDF

Info

Publication number
CN109445329A
CN109445329A CN201811229483.7A CN201811229483A CN109445329A CN 109445329 A CN109445329 A CN 109445329A CN 201811229483 A CN201811229483 A CN 201811229483A CN 109445329 A CN109445329 A CN 109445329A
Authority
CN
China
Prior art keywords
phase signals
rotary encoder
level
low level
anchor point
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
CN201811229483.7A
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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent 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 Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN201811229483.7A priority Critical patent/CN109445329A/en
Publication of CN109445329A publication Critical patent/CN109445329A/en
Pending legal-status Critical Current

Links

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
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D29/00Arrangement or mounting of control or safety devices
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D2600/00Control issues
    • F25D2600/06Controlling according to a predetermined profile
    • 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/21Pc I-O input output
    • G05B2219/21119Circuit for signal adaption, voltage level shift, filter noise

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Thermal Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Rotary Switch, Piano Key Switch, And Lever Switch (AREA)

Abstract

The present invention provides a kind of refrigerator functions to select system and method, system includes: rotary encoder, for when monitoring that itself is rotated to the same direction, there are the first phase signals and the second phase signals of delay relationship to single-chip microcontroller output, and according to the level state of the first phase signals of the angle adjustment output rotated and the second phase signals;Single-chip microcontroller determines the direction of rotation of corresponding rotary encoder for the delay relationship according to the first phase signals and the second phase signals;According to the variation of the level state of the first phase signals and the second phase signals sequence, the handoff relation of corresponding rotary encoder anchor point is determined;According to the direction of rotation of each rotary encoder and anchor point handoff relation, selected refrigerator functions are determined.For the present invention using several keys of rotary encoder substitution current refrigerator, user can be easy to operate by rotating to rotary encoder, to select refrigerator functions, improves user experience.

Description

A kind of refrigerator functions selection system and method
Technical field
The present invention relates to refrigerator art, in particular to a kind of refrigerator functions select system and method.
Background technique
With the continuous development of refrigerator technology, and in order to meet the needs of users, the function that refrigerator provides is more and more. To meet selection of the user to refrigerator functions, currently, being configured with display screen and multiple function buttons on refrigerator, user can basis Prompt on display screen operates multiple function buttons, to realize the option and installment to refrigerator functions.However, function in the prior art The mode of selection is complicated, for some the elderlys possibly can not Fast Learning to the operating procedure to refrigerator, accordingly, it is desirable to provide A kind of function selection method easy to operate.
Summary of the invention
The embodiment of the invention provides a kind of refrigerator functions to select system and method, to solve the problems of the prior art.
To solve the above problems, in a first aspect, the embodiment of the invention provides a kind of refrigerator functions to select system, comprising: Single-chip microcontroller and at least one rotary encoder, wherein the single-chip microcontroller is connect at least one described rotary encoder;
The rotary encoder, for when monitoring that itself is rotated to the same direction, Xiang Suoshu single-chip microcontroller to be exported With delay relationship the first phase signals and the second phase signals, and according to rotated angle adjustment output the first phase signals and The level state of second phase signals;
The single-chip microcontroller determines corresponding rotary coding for the delay relationship according to the first phase signals and the second phase signals The direction of rotation of device;According to the variation of the level state of the first phase signals and the second phase signals sequence, corresponding rotary coding is determined The handoff relation of device anchor point;According to the direction of rotation of each rotary encoder and anchor point handoff relation, determine selected by Refrigerator functions.
Preferably, the rotary encoder, specifically for monitoring that itself is set to the same direction continuous rotation When angle, the level state of first phase signals and the second phase signals is adjusted;The set angle is 90/m;Wherein, m is used for Characterization rotary encoder is rotated a circle the total number of corresponding anchor point to the same direction;The adjustment one time first is believed Number and the second phase signals level state are as follows: by the first phase signals by high level be adjusted to low level, by the first phase signals line by Low level is adjusted to high level, the second phase signals is adjusted to low level by high level or adjust the second phase signals by low level For high level.
Preferably, the single-chip microcontroller, specifically for determining the delay of the first phase signals when the second phase signals, it is determined that phase The direction of rotation for answering rotary encoder is rotation counterclockwise;Determining the delay of the second phase signals when the first phase signals, it is determined that The direction of rotation of corresponding rotary encoder is to rotate clockwise.
Preferably, the single-chip microcontroller, is specifically used for:
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: high level-low level → height electricity from a upper anchor point Flat-high level → low level-high level → low level-low level;
Or,
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: low level-high level → height electricity from a upper anchor point Flat-high level → high level-low level → low level-low level.
Preferably, further comprise: at least one LED light being connect with the single-chip microcontroller;
The single-chip microcontroller is after determining selected refrigerator functions, according to preconfigured refrigerator functions and LED light Corresponding relationship controls the output of at least one LED light.
Second aspect, the embodiment of the present invention provide a kind of refrigerator function based on any of the above-described refrigerator functions selection system Energy selection method, comprising:
When rotary encoder monitors that itself is rotated to the same direction, exporting has the first of delay relationship to believe Number and the second phase signals, and according to rotated angle adjustment output the first phase signals and the second phase signals level state;
The single-chip microcontroller determines the rotation of corresponding rotary encoder according to the delay relationship of the first phase signals and the second phase signals Turn direction;According to the variation of the level state of the first phase signals and the second phase signals sequence, corresponding rotary encoder positioning is determined The handoff relation of point;According to the handoff relation of the direction of rotation of each rotary encoder and anchor point, selected ice is determined Box function.
Preferably, the level shape of first phase signals and the second phase signals exported according to the angle rotated adjustment State, comprising: when monitoring itself by the same direction continuous rotation set angle, adjust first phase signals and second The level state of phase signals;The set angle is 90/m;Wherein, m is revolved for characterizing rotary encoder to the same direction Circle the total number of corresponding anchor point;The level state of the adjustment first phase signals and the second phase signals are as follows: will First phase signals are adjusted to low level by high level, the first phase signals line are adjusted to high level by low level, is believed second Number low level is adjusted to by high level or the second phase signals are adjusted to high level by low level.
Preferably, the delay relationship according to the first phase signals and the second phase signals, determines corresponding rotary encoder Direction of rotation, comprising: determining the delay of the first phase signals when the second phase signals, it is determined that the rotation side of corresponding rotary encoder It is rotated to be counterclockwise;Determining the delay of the second phase signals when the first phase signals, it is determined that the rotation of corresponding rotary encoder Direction is to rotate clockwise.
Preferably, the variation sequence of the level state according to the first phase signals and the second phase signals, determines corresponding rotation Turn the handoff relation of encoder anchor point, comprising:
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: high level-low level → height electricity from a upper anchor point Flat-high level → low level-high level → low level-low level;
Or,
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: low level-high level → height electricity from a upper anchor point Flat-high level → high level-low level → low level-low level.
Preferably, after the selected refrigerator functions of the determination, further comprise: according to preconfigured refrigerator function The output of at least one LED light can be controlled with the corresponding relationship of LED light.
The embodiment of the invention provides a kind of refrigerator functions to select system and method, is connected by rotary encoder and single-chip microcontroller It connects, monitors the first phase signals and the second phase signals that the output of itself direction of rotation has delay relationship using rotary encoder, and It is true according to delay relationship using single-chip microcontroller according to the level state of the angle adjustment the first phase signals and the second phase signals that are rotated The direction of rotation of fixed corresponding rotary encoder, according to the variation of the level state of the first phase signals and the second phase signals sequence, really The handoff relation of fixed corresponding rotary encoder anchor point, and according to the handoff relation of direction of rotation and anchor point, determine selected by Refrigerator functions.The present invention, using several keys of rotary encoder substitution current refrigerator, user can be by rotary coding Device is rotated, so that refrigerator functions are selected, it is easy to operate, improve user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of refrigerator functions selection system construction drawing provided in an embodiment of the present invention;
Fig. 2 is the first phase signals and second that a kind of rotary encoder provided in an embodiment of the present invention rotates clockwise output The delay relational graph of phase signals;
Fig. 3 is the first phase signals and second that a kind of rotary encoder provided in an embodiment of the present invention rotates output counterclockwise The delay relational graph of phase signals;
Fig. 4 is another refrigerator functions selection system construction drawing provided in an embodiment of the present invention;
Fig. 5 is a kind of refrigerator functions selection method flow chart provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the invention provides a kind of refrigerator functions to select system, comprising: single-chip microcontroller and at least one A rotary encoder, wherein the single-chip microcontroller is connect at least one described rotary encoder;
The rotary encoder, for when monitoring that itself is rotated to the same direction, Xiang Suoshu single-chip microcontroller to be exported With delay relationship the first phase signals and the second phase signals, and according to rotated angle adjustment output the first phase signals and The level state of second phase signals;
The single-chip microcontroller determines corresponding rotary coding for the delay relationship according to the first phase signals and the second phase signals The direction of rotation of device;According to the variation of the level state of the first phase signals and the second phase signals sequence, corresponding rotary coding is determined The handoff relation of device anchor point;According to the direction of rotation of each rotary encoder and anchor point handoff relation, determine selected by Refrigerator functions.
In embodiments of the present invention, several keys of rotary encoder substitution current refrigerator, user Ke Tong be can use It crosses and rotary encoder is rotated, so that refrigerator functions are selected, it is easy to operate, improve user experience.
In the embodiment of the present invention, the number of rotary encoder can be 1, or multiple, specific number is according to ice The number of box function is arranged.Regardless of the number of rotary encoder is how many, the principle of each rotary encoder is all the same.
The present embodiment is illustrated by taking 1 rotary encoder as an example, and the first phase signals of rotary encoder output are A phase Signal, the second phase signals of output are B phase signals.
Wherein, A phase signals are square-wave signal with B phase, and rotary encoder adjusts the A of output according to the angle rotated The level state of phase signals and B phase signals, level state include high level and low level.
Referring to FIG. 2, the delay of the A phase signals and B phase signals of output is closed for when rotating clockwise the rotary encoder System postpones when A phase signals, it is determined that phase as can be seen from FIG. 2 in the B phase signals that single-chip microcontroller receives rotary encoder output The direction of rotation for answering rotary encoder is to rotate clockwise.
Referring to FIG. 3, the delay of the A phase signals and B phase signals of output is closed for when rotating the rotary encoder counterclockwise System postpones when B phase signals, it is determined that phase as can be seen from FIG. 3 in the A phase signals that single-chip microcontroller receives rotary encoder output The direction of rotation for answering rotary encoder is rotation counterclockwise.
In order to realize the configuration of refrigerator functions, several anchor points, i.e. rotary encoder can be set for rotary encoder By to the same direction rotate a circle can corresponding function number, the corresponding function of each anchor point, in rotary encoder When being rotated to another anchor point from an anchor point, the switching of function may be implemented.
To realize function switch, when rotary encoder is by angle to the same direction continuous rotation 360/m, then complete From an anchor point to the switching of another anchor point, wherein m is rotated one to the same direction for characterizing rotary encoder The total number of all corresponding anchor points.For example, rotary encoder is rotated a circle the total of corresponding anchor point to the same direction Number is 10, then when rotary encoder is by 36 degree of the same direction continuous rotation, is completed from an anchor point to another The switching of a positioning.
The A phase signals of output and the level shape of B phase signals are adjusted since rotary encoder is the angle by being rotated State and single-chip microcontroller are according to the variation sequence of the level state of A phase signals and B phase signals, to determine that corresponding rotary encoder is fixed The handoff relation in site, therefore, the level state for how adjusting A phase signals and B phase signals are most important, in the present embodiment, When rotary encoder monitors itself by the same direction continuous rotation set angle, adjusts an A phase signals and B believes Number level state, wherein the set angle be 360/4m=90/m.In m=10, which is 9 degree.
Specifically, the level state of adjustment an A phase signals and B phase signals are as follows: be adjusted to A phase signals by high level A phase signals line is adjusted to high level by low level, B phase signals is adjusted to low level by high level or believe B by low level Number high level is adjusted to by low level.
For example, rotating clockwise the rotary encoder, when having rotated clockwise 9 degree, rotary encoder exports A phase signals For high level, B phase signals are low level, at this time AB=10;When having rotated clockwise 18, B phase signals are adjusted by low level For high level, AB=11 at this time;When having rotated clockwise 27 degree, A phase signals are adjusted to low level by high level, at this time AB =01;When having rotated clockwise 36 degree, B phase signals are adjusted to low level by high level, at this time AB=00.Wherein, it 1 is used for High level is characterized, 0 for characterizing low level.
For another example, the rotary encoder is rotated counterclockwise, and when having rotated 9 degree counterclockwise, rotary encoder exports A phase signals For low level, B phase signals are high level, at this time AB=01;When having rotated 18 counterclockwise, A phase signals are adjusted by low level For high level, AB=11 at this time;When having rotated 27 degree counterclockwise, B phase signals are adjusted to low level by high level, at this time AB =10;When having rotated 36 degree counterclockwise, A phase signals are adjusted to low level by high level, at this time AB=00.
In this way, single-chip microcontroller completes primary become according to following variation sequences in the level state for determining A phase signals and B phase signals When change, it is determined that rotary encoder has been rotated to an adjacent anchor point: the level state of AB from a upper anchor point are as follows: 10 → 11 → 01 → 00, or, 01 → 11 → 10 → 00.
It should be noted that if rotary encoder has been rotated clockwise first degree, for example, first degree It is 20 degree, and is rotated counterclockwise second degree, for example, 18 degree, then the AB level state that single-chip microcontroller receives is not 10 → 11 → 01 → 00, or, 01 → 11 → 10 → 00 good working condition, hence, it can be determined that rotary encoder is not completed from one The switching that a anchor point is positioned to another.
Specifically, it can use the form of state machine to describe, the level state of AB is total up to 4 states, for example, AB= 10 be state 1, and AB=11 is state 2, and AB=01 is state 3, and AB=00 is state 4.Angle is counted with 9 degree as a unit, Set an initial value 4.
In state 1, B rising edge is encountered, becomes state 2, angle a count is incremented unit;
In state 1, A failing edge is encountered, becomes state 4, a unit that angle counting subtracts 1;
In state 2, A failing edge is encountered, becomes state 3, angle a count is incremented unit;
In state 2, B failing edge is encountered, becomes state 1, a unit that angle counting subtracts 1;
In state 3, B failing edge is encountered, becomes state 4, angle a count is incremented unit;
In state 3, A rising edge is encountered, becomes state 2, a unit that angle counting subtracts 1;
In state 4, A rising edge is encountered, becomes state 1, angle a count is incremented unit;
In state 4, B rising edge is encountered, becomes state 3, a unit that angle counting subtracts 1;
It is then to go to another anchor point clockwise in angle count value=8;In angle count value=0, it is then Rotate counterclockwise to another anchor point.
In an embodiment of the invention, it can be pre-configured with each rotary encoder direction of rotation in refrigerator and determine Site handoff relation, the corresponding relationship with refrigerator functions, for example, being only configured with 1 rotary encoder, which is used for Refrigerator temperature is adjusted, is rotated clockwise in rotary encoder, an anchor point is often rotated to, refrigerator temperature promotes set temperature, For example, 0.2 DEG C;When rotary encoder rotates counterclockwise, an anchor point is often rotated to, refrigerator temperature reduces set temperature, For example, 0.2 DEG C.For another example, there are two rotary encoders, two rotary encoders to combine a corresponding function for configuration.In this way, single Piece machine can direction of rotation according to each rotary encoder and anchor point handoff relation, determine selected refrigerator functions.
In an embodiment of the invention, in order to further increase the interactive experience of user and refrigerator, referring to FIG. 4, being somebody's turn to do Refrigerator functions selection system may further include: at least one LED light connecting with single-chip microcontroller.Wherein it is possible to be pre-configured with The corresponding relationship of refrigerator functions and LED light controls this at least one when single-chip microcontroller is after determining selected refrigerator functions The output of LED light.For example, being only configured with a LED light, rotary encoder is rotated to adjacent anchor point by an anchor point When, LED light flashing is primary, shows that anchor point switches successfully.For another example, there are four LED light in one line, rotary encoders for configuration When being rotated clockwise, it is often switched to an anchor point, LED light flashes a LED light by forward sequence, and rotary encoder is inverse When hour hands rotate, it is often switched to an anchor point, LED light flashes a LED light by reverse order.
It should be noted that a default conditions can be set when refrigerator powers on, which can be setting Original state is also possible to corresponding state when the last power-off of record.
Referring to FIG. 5, the embodiment of the invention provides a kind of refrigerator functions selection method based on the above embodiment, the party Method may comprise steps of:
Step 01, when rotary encoder monitors that itself is rotated to the same direction, exporting has delay relationship First phase signals and the second phase signals, and according to the electricity of the first phase signals of the angle adjustment output rotated and the second phase signals Level state;
Step 02, the single-chip microcontroller determines that corresponding rotation is compiled according to the delay relationship of the first phase signals and the second phase signals The direction of rotation of code device;According to the variation of the level state of the first phase signals and the second phase signals sequence, determine that corresponding rotation is compiled The handoff relation of code device anchor point;According to the handoff relation of the direction of rotation of each rotary encoder and anchor point, institute is determined The refrigerator functions of selection.
In an embodiment of the invention, first phase signals and the second phase according to the angle rotated adjustment output The level state of signal, comprising: when monitoring itself by the same direction continuous rotation set angle, adjust one time first The level state of phase signals and the second phase signals;The set angle is 90/m;Wherein, m for characterize rotary encoder by The same direction rotates a circle the total number of corresponding anchor point;The electricity of the adjustment first phase signals and the second phase signals Level state are as follows: by the first phase signals by high level be adjusted to low level, by the first phase signals line by low level be adjusted to high level, Second phase signals are adjusted to low level by high level or the second phase signals are adjusted to high level by low level.
In an embodiment of the invention, the delay relationship according to the first phase signals and the second phase signals, determines phase Answer the direction of rotation of rotary encoder, comprising: determining the delay of the first phase signals when the second phase signals, it is determined that corresponding rotation The direction of rotation of encoder is rotation counterclockwise;Determining the delay of the second phase signals when the first phase signals, it is determined that corresponding rotation The direction of rotation for turning encoder is to rotate clockwise.
In an embodiment of the invention, the variation of the level state according to the first phase signals and the second phase signals is suitable Sequence determines the handoff relation of corresponding rotary encoder anchor point, comprising:
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: high level-low level → height electricity from a upper anchor point Flat-high level → low level-high level → low level-low level;
Or,
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, Then determine that rotary encoder has been rotated to an adjacent anchor point: low level-high level → height electricity from a upper anchor point Flat-high level → high level-low level → low level-low level.
In an embodiment of the invention, after the selected refrigerator functions of the determination, further comprise: according to pre- The corresponding relationship of the refrigerator functions and LED light that first configure controls the output of at least one LED light.
To sum up, each embodiment of the present invention at least may be implemented it is following the utility model has the advantages that
1, it in embodiments of the present invention, is connect by rotary encoder with single-chip microcontroller, monitors itself using rotary encoder Direction of rotation output has the first phase signals and the second phase signals of delay relationship, and adjusts the first phase according to the angle rotated The level state of signal and the second phase signals determines the rotation side of corresponding rotary encoder using single-chip microcontroller according to delay relationship To determining corresponding rotary encoder anchor point according to the variation of the level state of the first phase signals and the second phase signals sequence Handoff relation, and according to the handoff relation of direction of rotation and anchor point, determine selected refrigerator functions.The present invention utilizes rotation Turn several keys of encoder substitution current refrigerator, user can be by rotating rotary encoder, to select refrigerator Function, it is easy to operate, improve user experience.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to implementing with the method for the present invention Example is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, and details are not described herein again.
It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements, It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged Except there is also other identical factors in the process, method, article or apparatus that includes the element.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light In the various media that can store program code such as disk.
Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (10)

1. a kind of refrigerator functions select system characterized by comprising single-chip microcontroller and at least one rotary encoder, wherein institute Single-chip microcontroller is stated to connect at least one described rotary encoder;
The rotary encoder, for when monitoring that itself is rotated to the same direction, the output of Xiang Suoshu single-chip microcontroller to have The first phase signals and the second phase signals of delay relationship, and according to the first phase signals and second of the angle adjustment output rotated The level state of phase signals;
The single-chip microcontroller determines corresponding rotary encoder for the delay relationship according to the first phase signals and the second phase signals Direction of rotation;According to the variation of the level state of the first phase signals and the second phase signals sequence, determine that corresponding rotary encoder is fixed The handoff relation in site;According to the direction of rotation of each rotary encoder and anchor point handoff relation, selected ice is determined Box function.
2. refrigerator functions according to claim 1 select system, which is characterized in that the rotary encoder is specifically used for When monitoring itself by the same direction continuous rotation set angle, first phase signals and the second phase signals are adjusted Level state;The set angle is 90/m;Wherein, m is rotated a circle pair for characterizing rotary encoder to the same direction The total number for the anchor point answered;The level state of the adjustment first phase signals and the second phase signals are as follows: believe first Number low level is adjusted to by high level, the first phase signals line is adjusted to high level by low level, by the second phase signals by high electricity It is flat to be adjusted to low level or the second phase signals are adjusted to high level by low level.
3. refrigerator functions according to claim 1 select system, which is characterized in that the single-chip microcontroller is specifically used for true Fixed first phase signals delay is when the second phase signals, it is determined that the direction of rotation of corresponding rotary encoder is rotation counterclockwise;? Determine the delay of the second phase signals when the first phase signals, it is determined that the direction of rotation of corresponding rotary encoder is to rotate clockwise.
4. refrigerator functions according to claim 1 select system, which is characterized in that the single-chip microcontroller is specifically used for:
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, then really Determine rotary encoder and be rotated to an adjacent anchor point from a upper anchor point: high level-low level → high level-height Level → low level-high level → low level-low level;
Or,
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, then really Determine rotary encoder and be rotated to an adjacent anchor point from a upper anchor point: low level-high level → high level-height Level → high level-low level → low level-low level.
5. refrigerator functions according to any one of claims 1-4 select system, which is characterized in that further comprise: with institute State at least one LED light of single-chip microcontroller connection;
The single-chip microcontroller is corresponding with LED light according to preconfigured refrigerator functions after determining selected refrigerator functions Relationship controls the output of at least one LED light.
6. the refrigerator functions selection method based on the refrigerator functions selection system any in claim 1-5, which is characterized in that Include:
When rotary encoder monitors that itself is rotated to the same direction, export have delay relationship the first phase signals and Second phase signals, and according to the level state of the first phase signals of the angle adjustment output rotated and the second phase signals;
The single-chip microcontroller determines the rotation side of corresponding rotary encoder according to the delay relationship of the first phase signals and the second phase signals To;According to the variation of the level state of the first phase signals and the second phase signals sequence, corresponding rotary encoder anchor point is determined Handoff relation;According to the handoff relation of the direction of rotation of each rotary encoder and anchor point, selected refrigerator function is determined Energy.
7. refrigerator functions selection method according to claim 6, which is characterized in that described to be adjusted according to the angle rotated First phase signals of output and the level state of the second phase signals, comprising: monitoring that itself is continuously revolved to the same direction When turning set angle, the level state of first phase signals and the second phase signals is adjusted;The set angle is 90/m;Its In, m is used to characterize rotary encoder and is rotated a circle the total number of corresponding anchor point to the same direction;The adjustment is primary The level state of first phase signals and the second phase signals are as follows: the first phase signals are adjusted to low level by high level, by the first phase Signal wire is adjusted to high level by low level, the second phase signals is adjusted to low level or by the second phase signals by low by high level Level is adjusted to high level.
8. refrigerator functions selection method according to claim 6, which is characterized in that described according to the first phase signals and second The delay relationship of phase signals, determines the direction of rotation of corresponding rotary encoder, comprising: is determining the delay of the first phase signals in second When phase signals, it is determined that the direction of rotation of corresponding rotary encoder is rotation counterclockwise;Determining the delay of the second phase signals in the When one phase signals, it is determined that the direction of rotation of corresponding rotary encoder is to rotate clockwise.
9. refrigerator functions selection method according to claim 6, which is characterized in that described according to the first phase signals and second The variation sequence of the level state of phase signals, determines the handoff relation of corresponding rotary encoder anchor point, comprising:
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, then really Determine rotary encoder and be rotated to an adjacent anchor point from a upper anchor point: high level-low level → high level-height Level → low level-high level → low level-low level;
Or,
When the level state for determining the first phase signals and the second phase signals completes one-shot change according to following variation sequences, then really Determine rotary encoder and be rotated to an adjacent anchor point from a upper anchor point: low level-high level → high level-height Level → high level-low level → low level-low level.
10. according to the refrigerator functions selection method any in claim 6-9, which is characterized in that selected by the determination After the refrigerator functions selected, further comprise: according to the corresponding relationship of preconfigured refrigerator functions and LED light, described in control The output of at least one LED light.
CN201811229483.7A 2018-10-22 2018-10-22 A kind of refrigerator functions selection system and method Pending CN109445329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811229483.7A CN109445329A (en) 2018-10-22 2018-10-22 A kind of refrigerator functions selection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811229483.7A CN109445329A (en) 2018-10-22 2018-10-22 A kind of refrigerator functions selection system and method

Publications (1)

Publication Number Publication Date
CN109445329A true CN109445329A (en) 2019-03-08

Family

ID=65547067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811229483.7A Pending CN109445329A (en) 2018-10-22 2018-10-22 A kind of refrigerator functions selection system and method

Country Status (1)

Country Link
CN (1) CN109445329A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109974389A (en) * 2019-03-29 2019-07-05 四川虹美智能科技有限公司 Module position detection method and device in a kind of Modular refrigerator
CN114113993A (en) * 2020-08-26 2022-03-01 深圳和而泰智能控制股份有限公司 Code switch detection method, computer storage medium and device
CN114995251A (en) * 2022-06-22 2022-09-02 中银金融科技有限公司 Multifunctional knob device and household appliance

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1683852A (en) * 2004-04-12 2005-10-19 乐金电子(天津)电器有限公司 Control panel for korean pickle refrigerator
JP2006318587A (en) * 2005-05-13 2006-11-24 Kenwood Corp Device and method for selecting source
CN101193233A (en) * 2007-06-20 2008-06-04 深圳创维-Rgb电子有限公司 TV set key control device and TV set
CN101521764A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 TV set with revolving functional key and method for adjusting functions
CN102355274A (en) * 2011-09-30 2012-02-15 北京昆腾微电子有限公司 Channel adjusting and storing device for radio receiver chip and method
EP2530695A1 (en) * 2011-05-28 2012-12-05 Abb Ag Multifunctional operating device with rotating button and function symbols
CN103017800A (en) * 2011-09-27 2013-04-03 比亚迪股份有限公司 Method and device used for decoding orthogonal coding signal
CN104898763A (en) * 2015-04-15 2015-09-09 广东好帮手电子科技股份有限公司 Turn button control-adjustment method and system of vehicle-mounted encoder
CN105915229A (en) * 2016-04-06 2016-08-31 珠海格力电器股份有限公司 Method and device for processing output of rotary coding switch

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1683852A (en) * 2004-04-12 2005-10-19 乐金电子(天津)电器有限公司 Control panel for korean pickle refrigerator
JP2006318587A (en) * 2005-05-13 2006-11-24 Kenwood Corp Device and method for selecting source
CN101193233A (en) * 2007-06-20 2008-06-04 深圳创维-Rgb电子有限公司 TV set key control device and TV set
CN101521764A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 TV set with revolving functional key and method for adjusting functions
EP2530695A1 (en) * 2011-05-28 2012-12-05 Abb Ag Multifunctional operating device with rotating button and function symbols
CN103017800A (en) * 2011-09-27 2013-04-03 比亚迪股份有限公司 Method and device used for decoding orthogonal coding signal
CN102355274A (en) * 2011-09-30 2012-02-15 北京昆腾微电子有限公司 Channel adjusting and storing device for radio receiver chip and method
CN104898763A (en) * 2015-04-15 2015-09-09 广东好帮手电子科技股份有限公司 Turn button control-adjustment method and system of vehicle-mounted encoder
CN105915229A (en) * 2016-04-06 2016-08-31 珠海格力电器股份有限公司 Method and device for processing output of rotary coding switch

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109974389A (en) * 2019-03-29 2019-07-05 四川虹美智能科技有限公司 Module position detection method and device in a kind of Modular refrigerator
CN114113993A (en) * 2020-08-26 2022-03-01 深圳和而泰智能控制股份有限公司 Code switch detection method, computer storage medium and device
CN114995251A (en) * 2022-06-22 2022-09-02 中银金融科技有限公司 Multifunctional knob device and household appliance

Similar Documents

Publication Publication Date Title
CN109445329A (en) A kind of refrigerator functions selection system and method
US10743388B2 (en) Intelligent lighting control multi-switch apparatuses
US10123398B2 (en) Intelligent lighting control multi-switch apparatuses, systems, and methods
WO2015070708A1 (en) Smart home scenario switching method and system
AU553360B2 (en) Power circuit control programmable timer
CN202077245U (en) Intelligent wireless internet lighting controller
CN104104325A (en) Method and system for controlling series photovoltaic inverter
CN103823398A (en) Rotary encoder regulation control method and device
CN105142263A (en) Intelligent switch and live wire electricity-utilizing method
CN201689651U (en) Circuit capable of realizing the fixed frequency and adjusting the duty ratio by button
CN102900543B (en) A kind of miniature caliberating device of Digital Governor for Diesel Engine
WO2021068927A1 (en) Reloading device and reloading device-based focusing method
CN204631471U (en) The management system of household electrical appliance
CN106950886A (en) Intelligent switch is long-range and local inter-linked controlling method
CN109237115A (en) Adaptive adjustment method for working range of proportional valve and gas water heater
CN103487072A (en) Household electric appliance, gear detection device thereof and combination of household electric appliance, cooker and smoke exhaust ventilator
CN204290433U (en) Adjustable energy-storing switching device shifter and energy-storage system
CN104240978A (en) Automatic changeover device for three-output power source
CN113568340A (en) Switch control method, device, electronic equipment and storage medium
CN204290340U (en) Power consumption equipment management system
CN204516701U (en) A kind of circuit breaker with tripping mechanism
CN107193444A (en) The lamp control method and device of mobile terminal
CN103928798A (en) Intelligent wiring board device and control method thereof
CN116365891B (en) Multi-loop seamless switching control method, system, bidirectional power supply and medium
CN203801114U (en) Wireless WiFi (wireless fidelity) controlled light adjusting switch with rotary button

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308