Utility model content
The purpose of the utility model embodiment is to provide a kind of key control method and device, dish-washing machine, should press key control
Method and device, dish-washing machine can realize different vibration prompting functions according to button operation feature, so as to improve user
Experience.
To achieve the goals above, the utility model embodiment provides a kind of key control method for household electrical appliance,
This method comprises: receive at least two types with the associated trigger signal of button operation, and each type of triggering is believed
Number correspond to specific drive waveforms;And when receiving the trigger signal, the specific drive according to corresponding to the trigger signal
Dynamic drive waveform vibrating motor, so that the vibrating motor generates vibration, the specific drive waveforms according to the button operation
It is determined according to button operation feature.
Wherein, this method can also include: reception stop signal;And make the vibration when receiving the stop signal
Dynamic motor stops vibration.
Wherein, the button operation feature may include at least one of following: keypress function, key duration, key
The operating mode of dish-washing machine and user are directed to the vibration settings of the button operation when dynamics, keying frequency, button operation.
Wherein, described receiving at least two types with the associated trigger signal of button operation, and according to the trigger signal
Corresponding specific drive waveforms drive vibrating motor, comprising: receive multiple trigger signals, multiple trigger signal includes described
At least two types with the associated trigger signal of button operation;And it is corresponding specific according to the multiple trigger signal
Drive waveforms drive the vibrating motor.
Wherein, described to drive the vibrating motor according to the corresponding specific drive waveforms of the multiple trigger signal
To include: according to the receiving time of the multiple trigger signal, by the corresponding specific drive waveforms of each trigger signal in timing
On be overlapped;And the vibrating motor is driven according to superimposed drive waveforms.
Another aspect according to the present utility model also provides a kind of key control device for household electrical appliance, the device
It include: vibrating motor, for generating vibration according to button operation;Receiving module, for receive at least two types with it is described
The associated trigger signal of button operation, and each type of trigger signal corresponds to specific drive waveforms;And driving mould
Block, for driving the vibration electricity according to the corresponding specific drive waveforms of the trigger signal when receiving the trigger signal
Machine, so that the vibrating motor generates vibration, the specific drive waveforms are determined according to button operation feature.
Wherein, the receiving module can be also used for receiving stop signal;The drive module, which is also used to work as, receives institute
The vibrating motor is set to stop vibration when stating stop signal.
Wherein, the button operation feature may include at least one of following: keypress function, key duration, key
The operating mode of dish-washing machine and user are directed to the vibration settings of the button operation when dynamics, keying frequency, button operation.
Wherein, the receiving module can be also used for receiving multiple trigger signals, and multiple trigger signal includes institute
State at least two types with the associated trigger signal of button operation;And the drive module is also used to according to the multiple touching
Corresponding specific drive waveforms of signaling drive the vibrating motor.
Wherein, described to drive the vibrating motor packet according to the corresponding specific drive waveforms of the multiple trigger signal
It includes: according to the receiving time of the multiple trigger signal, the corresponding specific drive waveforms of each trigger signal are enterprising in timing
Row superposition;And the vibrating motor is driven according to superimposed drive waveforms.
Another aspect according to the present utility model also provides a kind of dish-washing machine, which is characterized in that the dish-washing machine includes described
Key control device.
Wherein, the key is preferably touch key-press.
On the other hand, the utility model provides a kind of machine readable storage medium, stores on the machine readable storage medium
There is instruction, which is used for so that machine executes the key control method.
Through the above technical solutions, different specific drive waveforms can be triggered using a variety of trigger signals, only by means of
Key and vibrating motor can make key realize different vibration prompting functions, to improve the usage experience of user.
The other feature and advantage of the utility model embodiment will give in the following detailed description section specifically
It is bright.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the utility model embodiment.It should be understood that
It is that specific embodiment described herein is merely to illustrate and explains the utility model embodiment is not limited to this reality
Use new embodiment.
Fig. 1 is the flow chart according to the key control method of an embodiment of the present invention.As shown in Figure 1, this method packet
Include following steps:
Step S110, receive at least two types with the associated trigger signal of button operation, and every kind of triggering is believed
Number correspond to specific drive waveforms.Trigger signal can be in level signal, the pwm signal with different duty or timing
Multiple level signals etc..
Step S120, when receiving the trigger signal, the specific drive waveforms according to corresponding to the trigger signal are driven
Dynamic vibrating motor, so that the vibrating motor generates vibration according to the button operation, the specific drive waveforms are according to key
Operating characteristics determine.
Button operation feature may include at least one of following: keypress function, key duration, keystroke dynamics, key
The operating mode of dish-washing machine and user are directed to the vibration settings of the button operation when frequency, button operation.For example, can be directed to
The different trigger signal of the button design of different function and specific drive waveforms corresponding with every kind of trigger signal.It can also set
It is set to, as user again key and flicking key, vibrates vibrating electrode in different ways, this can be by key
Pressure sensor is set to realize.For another example when repeating in user in the given time (such as 1 second) by same key, it can
It is repeated with the alerting by vibration user's operation of long period.For another example can be set to when dish-washing machine just executes drain operation,
If user has pressed inlet function key, vibrating motor high vibration can be made to remind user's operation mistake.It can also be arranged
To make the vibration duration of vibrating motor than short-press key duration when user's long-pressing key.
As shown in fig. 6, being two kinds of examples of specific drive waveforms and corresponding vibrational waveform, left-half is specific driving
Waveform, right half part are corresponding vibrating motor vibrational waveform.Specific drive waveforms can be PWM wave, sine wave, heartbeat waveform
Or corresponding waveform of specific audio etc., specific drive waveforms are not particularly limited.In a preferred embodiment, can also by with
Family selects the corresponding specific drive waveforms of different key operating characteristics.
By the embodiment, in user's operation key, different touchings is provided a user using different mode of vibrations
Thus sense improves user's operation experience.
Fig. 2 is the flow chart according to the key control method of another embodiment of the utility model.As shown in Fig. 2, this method
Can with the following steps are included:
Step S230 judges whether to receive stop signal.
Step S240, judges whether the specific timing for driving waveform corresponding with trigger signal terminates.
Step S250, when receive the stop signal or specific drive waveforms timing terminate when, when make the vibration
Motor stops vibration.
For example, trigger signal can be issued when user presses the button, when user unclamps key, stop signal is issued,
Thus make vibrating motor that vibrating motor be made to generate vibration during user presses the button.If user is not loose for a long time after pressing
Hand makes vibrating motor stop vibration then when specific drive waveforms timing terminates.
In a preferred embodiment, in order to realize different mode of vibrations using different specific drive waveforms, this method is also
It may include: to receive multiple trigger signals, multiple trigger signal includes being associated with button operation at least two type
Trigger signal;And the vibrating motor is driven according to the corresponding specific drive waveforms of the multiple trigger signal.
Fig. 3 is the flow chart according to the key control method of another embodiment of the utility model.As shown in figure 3, this method
It may include steps of:
Step S310 receives the first trigger signal.
Step S320 drives vibrating motor according to the corresponding first specific drive waveforms of the first trigger signal, makes vibration electricity
Machine vibrates in the first way.
Step S330 judges whether to receive the second trigger signal.
Step S340 terminates the vibration of first method, and according to the second trigger signal when receiving the second trigger signal
Corresponding second specific drive waveforms drive vibrating motor, or the first specific drive waveforms are superimposed with the second specific drive waveforms
Afterwards, vibrating motor is driven according to the drive waveforms of superposition.
The mode of superposition for example can be, and when receiving the second trigger signal, the first specific drive waveforms are not held also
The part that finishes of row is superimposed from the moment with the second specific waveforms, is also possible to when receiving the second trigger signal, makes the
One specific drive waveforms and the second specific drive waveforms are integrally superimposed.It may be arranged as successively executing when estimating the predetermined time more
The driving operation of a specific driving wave row.
By the embodiment, the mode of vibration of vibrating motor can be more enriched, operating experience is further increased.
Fig. 4 is the structural block diagram according to the key control device of another embodiment of the utility model.The device includes: vibration
Motor 30, for generating vibration according to button operation;Receiving module 10, for receiving grasping with the key at least two types
Make associated trigger signal, and every kind of trigger signal corresponds to specific drive waveforms;And drive module 20, it is connect for working as
When receiving the trigger signal, the vibrating motor 30 is driven according to the corresponding specific drive waveforms of the trigger signal, so that institute
It states vibrating motor 30 and generates vibration, the specific drive waveforms are determined according to button operation feature.
Fig. 5 is that drive module is connect with dish-washing machine processor in the key control device according to an embodiment of the present invention
A kind of example.The vibration mode of vibrating motor VM is divided into steady-state vibration and transient oscillation, and steady-state vibration can satisfy daily mention
Awake function, but when the diversified mode of vibration of realization, need using transient oscillation.When driving voltage is 1.2V, excitation
Waveform and vibrational waveform compare as shown in fig. 7, can achieve stable state;Transient oscillation needs higher driving voltage (such as 9.0V
Driving voltage) and specific drive waveforms, can be realized by the driving circuit of external vibrating motor VM, obtain it is stronger,
Rapid touch feedback, for example gear rotates or the vibration sense of apish heartbeat isotype.
As shown in figure 5, for a kind of example of the drive module circuit diagram when key is touch key-press, external driving circuit example
Dynamic fortune (7912) can be selected such as to realize complicated drive waveforms.In Fig. 5, input terminal voltage Vin can be in 2.9V to 4.5V
Between, 3.3V, input end capacitor 10uF, inductance 2.2uH are preferably used, is connected relative at the reference voltage VBST of ground GND
The capacitor C of two 10uFBST;A 1uF capacitor is accessed at voltage-stablizer voltage VREG, other CSB, SDO, SEL pieces select, digitally
DGND, simulation ground AGND, power ground PGND etc. are grounded after all connecting together, using the processing of I2C communication protocol and dish-washing machine
Device communication, clock signal SCL and data transfer signal SDA are separately connected pull-up resistor, enable signal EN, trigger signal TRIG1
The GPIO mouth of dishwasher control panel is respectively connected to TRIG2.Dish-washing machine processor can pass through trigger signal TRIG1 and TRIG2
Trigger signal is issued, configuring two trigger signal ends is to be conducive to be superimposed different specific drive waveforms to realize a variety of vibrations
Mode.When there is finger down, capacitor changes, and dish-washing machine can send one by the low level translation got higher by TRIG1
Signal, when there is hand release, dish-washing machine can send the level shifted signal being lower by height by TRIG2, be believed by triggering
Number specific drive waveforms of triggering, so that vibrating motor VM completes vibration action.
Wherein, the receiving module can be also used for receiving stop signal;The drive module, which is also used to work as, receives institute
The vibrating motor is set to stop vibration when stating stop signal.
Wherein, the button operation feature may include at least one of following: keypress function, key duration, key
The operating mode of dish-washing machine and user are directed to the vibration settings of the button operation when dynamics, keying frequency, button operation.
Wherein, the receiving module can be also used for receiving multiple trigger signals, multiple trigger signal include it is described extremely
Few two kinds of and associated trigger signal of button operation;And the drive module is also used to be believed according to the multiple triggering
Number corresponding specific drive waveforms drive the vibrating motor.
Wherein, described to drive the vibrating motor packet according to the corresponding specific drive waveforms of the multiple trigger signal
It includes: according to the receiving time of the multiple trigger signal, the corresponding specific drive waveforms of each trigger signal are enterprising in timing
Row superposition;And the vibrating motor is driven according to superimposed drive waveforms.
The optional embodiment of the utility model embodiment, still, the utility model is described in detail in conjunction with attached drawing above
Embodiment be not limited to the above embodiment in detail can in the range of the technology design of the utility model embodiment
A variety of simple variants are carried out with the technical solution to the utility model embodiment, these simple variants belong to the utility model reality
Apply the protection scope of example.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the utility model is implemented
No further explanation will be given to various combinations of possible ways for example.
It will be appreciated by those skilled in the art that implementing the method for the above embodiments is that can pass through
Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that single
Piece machine, chip or processor (processor) execute all or part of the steps of each embodiment the method for the application.And it is preceding
The storage medium stated includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk.
In addition, any combination can also be carried out between a variety of different embodiments of the utility model embodiment, as long as
It equally should be considered as the utility model embodiment disclosure of that without prejudice to the thought of the utility model embodiment.