Summary of the invention
In order to solve the deficiency that exists in the above-mentioned prior art, the present invention utilized the touch sensible technological development a kind of more user-friendly air-conditioner controller touch the bar stepless speed regulating method.
Concrete scheme of the present invention is: a kind of air-conditioner controller touches the stepless speed regulating method of bar, touches on the bar and is distributed with plural touch key-press, and concrete step is:
A, detect to slide touch whether effective, if invalid then withdraw from detection;
Each key value that b, real time record touch when front slide, record from last time key value M to the used time T of current key value N;
Whether c, more current key value N and the key value M of last time be identical, if identical then withdraw from detection;
D, the current key value N of calculating deduct the key value M of last time and draw difference, draw the speed V that touches when front slide with this difference divided by time T, and formula is V=(N-M)/T;
E, calculate the product that the last air speed value V0 that touches adjustment of sliding adds proportionality coefficient K and speed V, draw when front slide and touch adjusted air speed value V1, formula is V1=V0+K * V.
This method touching the action of sliding and touching on the bar, reaches the purpose of quick and precisely regulating wind speed through the user, in operation, brings great convenience, thereby promotes the use value and the product specification of whole air-conditioning.
Above-mentioned touch bar is rectangle or circle or circular arc, or other shape, is not limited to the shape of rule.
The number of the touch key-press on the above-mentioned touch bar is 6,8,10 or 12, perhaps other number.
Be provided with no key area between the touch key-press on the above-mentioned touch bar; Touch key-press can be that transpostion interval distributes with no key area; Also can be that non-transpostion interval distributes, also no key area can be set, the size of no key area can unanimity also can be inconsistent.
Be provided with buzzer in the above-mentioned controller, buzzer sends volume or frequency becomes big sound gradually when the value of described speed V is positive number, and buzzer sends the sound that volume or frequency diminish gradually when the value of speed V is negative; Or other distinguishing sound or other prompting action that can point out the user to control the result, like flashing light, vibrations etc.
The present invention utilizes touch sensible technology, and adopt and detect the action that the user slides and touches, thus controlled wind speed fast and accurately, and the result of FEEDBACK CONTROL, greatly convenient for users to use, and improved the use value and the class of air-conditioning product.
The specific embodiment
Below in conjunction with accompanying drawing the present invention is further specified.
As shown in Figure 1, a kind of air-conditioner controller touches the touch key-press distribution form of bar, and the touch bar is a regular rectangular shape; Black is touch key-press, from 1 to 8 totally 8; White is for no key area, from A to G totally 7; The width of touch key-press and no key area is 1 centimetre, and transpostion interval distributes.
As shown in Figure 2, be the control flow chart of detection computations of the present invention.Illustrate detection computations process of the present invention by this flow chart below.
For example to touch be from touch key-press 1 to touch key-press 4 in user's slip, and be continuous touch, in this process, is consecutively detected key value 1, key value 2, key value 3, key value 4.When key value 1 position slides into key value 2 positions; The time that slip touches is 20 milliseconds; Then this slides to touch and is valid function, and this slides and touches current key value N is 2, and last key value N is 1; Sliding and touching used time T is 20 milliseconds, brings formula into and calculates: V=(N-M)/T=(2-1)/20=0.05 centimetre/millisecond=0.5 meter per second.Suppose that the last air speed value V0 that touches adjustment that slides is 20; Proportionality coefficient K is made as 10; Bring formula into: V1=V0+K * V=20+10 * 0.5=25; When promptly sliding into key value 2 positions, the air speed value that obtains after front slide touches increases to 25, and controller sends the auditory tone cues user air-conditioning that becomes big gradually and is about to strengthen wind speed then.By this rule, when sliding into key value 3 with key value 4 positions, distributing obtains the different wind value.
In like manner, be from touch key-press 4 to touch key-press 1 when user's slip touches, and be continuous touch, in this process, be consecutively detected key value 4, key value 3, key value 2, key value 1.When key value 4 positions slide into key value 3 positions; The time that slip touches is 20 milliseconds; Then this slides to touch and is valid function, and this slides and touches current key value N is 3, and last key value M is 4; Sliding and touching used time T is 20 milliseconds, brings formula into and calculates: V=(N-M)/T=(3-4)/20=-0.05 centimetre/millisecond=-0.5 meter per second.Suppose that the last air speed value V0 that touches adjustment that slides is 20; Proportionality coefficient K is made as 10; Bring formula into: V1=V0+K * V=20+10 * (0.5)=15; When promptly sliding into key value 3 positions, obtain adjusted air speed value and be reduced to 15, controller sends the auditory tone cues user air-conditioning that diminishes gradually and is about to reduce wind speed then.By this rule, when sliding into key value 2 with key value 1 position, distributing obtains the different wind value.