Embodiment
The utility model is described in further detail below by embodiment combination accompanying drawing.It is wherein different to implement
Similar component employs associated similar element numbers in mode.In the following embodiments, many detailed descriptions are
In order that obtaining the application can be better understood.However, those skilled in the art can be without lifting an eyebrow recognize, which part
Feature is dispensed in varied situations, or can be substituted by other elements, material, method.In some cases,
The related certain operations of the application are not shown in the description or description, and this is the core in order to avoid the application
Flooded by excessive description, and to those skilled in the art, be described in detail these associative operations be not it is necessary,
They can completely understand associative operation at the general technology knowledge of description and this area in specification.
In addition, feature described in this description, operation or feature can combine to form respectively in any suitable way
Kind embodiment.Meanwhile each step in method description or action can also can be aobvious and easy according to those skilled in the art institute
The mode carry out order exchange or adjustment seen.Therefore, the various orders in specification and drawings are intended merely to clearly describe a certain
Individual embodiment, necessary order is not meant to be, wherein some sequentially must comply with unless otherwise indicated.
It is herein part institute serialization number itself, such as " first ", " second " etc., is only used for distinguishing described object,
Without any order or art-recognized meanings.And " connection ", " connection " described in the application, unless otherwise instructed, include directly and
It is indirectly connected with (connection).
In the utility model embodiment, by setting direction rocker switch, when shake in different directions clap hands device when,
Corresponding sound can be sent, there are abundant a variety of expression-forms, so as to meet that user expresses the needs of a variety of moods.
Fig. 1 is refer to, the electrical block diagram of a kind of device of clapping hands provided for the utility model embodiment, such as Fig. 1 institutes
Show, the device of clapping hands includes main control chip 1, rocker switch group 2, amplifier 3 and loudspeaker 4.
Wherein, above-mentioned main control chip 1 can be MCU (English:Microcontroller Unit, Chinese:Microcontroller list
Member), single-chip microcomputer, CPU (English:Central Process Unit, Chinese:Central processing unit) in any one.In this reality
With in new embodiment, above-mentioned main control chip 1 is used for the control letter for receiving rocker switch group 2 or other input units are sent
Number, calculated according to above-mentioned control signal, and control corresponding voice signal through amplifier 3 amplification after by loudspeaker 4 to
Outer broadcasting.
Above-mentioned rocker switch group 2 comprises at least first direction rocker switch 21 and second direction rocker switch 22;First party
Electrically connected to rocker switch 21 with main control chip 1, the first direction that above-mentioned first direction rocker switch 21 shakes according to device of clapping hands
The first control signal is sent to main control chip 1;Second direction rocker switch 22 equally electrically connects with main control chip 1, and above-mentioned second
Direction rocker switch 22 sends the second control signal according to the second direction for device shake of clapping hands to main control chip 1.Certainly, it is above-mentioned to shake
Dynamic switches set 2 can include the rocker switch of any number of different directions, and in the specific implementation, rocker switch group 2 can include
Fore-and-aft direction rocker switch, above-below direction rocker switch, left and right directions rocker switch, bottom right upper left rocker switch and upper right
Any a variety of combination in lower left rocker switch so that clap hands device along different directions shake when, can trigger corresponding
Rocker switch send control signal to main control chip 1.In one exemplary embodiment, as shown in Fig. 1, above-mentioned rocker switch
Group 2 can include 4 rocker switch, i.e. first direction rocker switch 21, second direction rocker switch 22, third direction shakes and opened
Close 23 and fourth direction rocker switch 24;And above-mentioned 4 rocker switch can perceive the shake for device different directions of clapping hands, example
As in the specific implementation, first direction rocker switch 21 can be configured as fore-and-aft direction rocker switch, i.e., can be according to clapping hands
The front and rear of device rocks the rocker switch for sending the first control signal;Second direction rocker switch 22 can be configured as left and right directions
Rocker switch, i.e., the rocker switch of the second control signal can be sent according to rocking from side to side for device of clapping hands;Third direction shakes and opened
Above-below direction rocker switch can be configured as by closing 23, i.e., can send the 3rd control signal according to fluctuating for device of clapping hands
Rocker switch;Third direction rocker switch 24 can be configured as upper right lower left rocker switch, i.e., can be according to device of clapping hands
Upper right lower-left shake and send the rocker switch of the 4th control signal.Certainly, above-mentioned direction rocker switch could be arranged to other
The rocker switch of any direction, is not limited in the utility model embodiment.
It should be noted that first direction rocker switch 21, second direction rocker switch for forming rocker switch group 2
22nd, third direction rocker switch 23 and fourth direction rocker switch 24, the knot of the sliding block slided along fixed-direction can be passed through
Structure realizes the triggering of the control signal of different directions, or distinguishes different directions by devices such as gyroscopes and produce corresponding control
Signal processed, is repeated no more in the utility model embodiment.
Main control chip 1 electrically connects with each rocker switch in rocker switch group 2, and receives and come from rocker switch group 2
Transmitted control signal.In the utility model implementation, main control chip 1 receives the first control of first direction rocker switch 21
Signal, the second control signal of second direction rocker switch 22, the 3rd control signal of third direction rocker switch 23 and
Any one or more control signals in 4th control signal of four direction rocker switch 24.Wherein, main control chip 1 can be by
It is configured to play the sound of respective type according to control signal, the type includes applause cheer type, whistle type, sobbed
The one or more of dislike sound type and strange laugh type.Moreover, the device of clapping hands in the utility model embodiment also includes putting
Big device 3 and loudspeaker 4;One end of amplifier 3 electrically connects with main control chip 1, the other end electrically connects with loudspeaker 4, is using
Cheng Zhong, main control chip 1 send voice signal to amplifier 3, and after the amplification of amplifier 3, loudspeaker 4 outwards plays corresponding
Sound.
In one exemplary embodiment, when main control chip 1 receives the first control signal, applause applause sound signal is sent out
Amplifier 3 is delivered to, after the amplification of amplifier 3, applause cheer is outwards played by loudspeaker 4;Main control chip 1 receives second
During control signal, whistle voice signal is sent to amplifier 3, after the amplification of amplifier 3, mouth is outwards played by loudspeaker 4
Whistle;When main control chip 1 receives three control signals, the dislike that will sob voice signal is sent to amplifier 3, through amplifier 3
After amplification, dislike sound of sobbing outwards is played by loudspeaker 4;When main control chip 1 receives four control signals, by strange laugh sound
Signal is sent to amplifier 3, and after the amplification of amplifier 3, strange laugh is outwards played by loudspeaker 4.
During device of clapping hands shakes, main control chip 1 may receive multiple control signal, in order to prevent letter
Number interference produces to play by mistake, expresses the mood of user exactly, it is high preferentially that main control chip 1 calculates determination from multiple control signal
The control signal of level, and voice signal corresponding to the control signal of high priority is sent to amplifier 3, amplify through amplifier 3
Afterwards, outwards played by loudspeaker 4.In one exemplary embodiment, when user, which fluctuates, claps hands device, under perceptually
The third direction rocker switch 23 in direction and and perceive upper right lower left fourth direction rocker switch 24 may be to master
Control chip 1 sends control signal, i.e. the 3rd control signal and fourth direction rocker switch corresponding to third direction rocker switch 23
4th control signal corresponding to 24, main control chip 1 further calculate and determine the preferential of the 3rd control signal and the 4th control signal
Grade, and determining that the priority of the 3rd control is high, then the control of main control chip 1 broadcasting, which is sobbed, dislikes sound.
In order to strengthen the flexibility for device of clapping hands, in one exemplary embodiment, the device of clapping hands also includes microphone 5, record
Sound switch 6 and playback switch 7, such user can freely record the sound for needing to play, and during device is clapped hands in use
Play, and then meet the needs of a variety of emotion expression services.See also Fig. 1, one end of microphone 5 passes through tie point and master control core
Piece 1 electrically connects, and is electrically connected by the second branch road with power supply VCC;The first electric capacity 81 is in series with tie point, on the second branch road
It is in series with first resistor 91 and second resistance 92;The other end ground connection of microphone 5.Recording switch 6 and playback switch 7 are and master control
Chip 1 electrically connects, and recording switch 6 is used to send control signal to main control chip 1, so that main control chip 1 obtains from microphone 5
And voice signal is stored, the voice signal got from microphone 5 can be stored in the memory in device of clapping hands, the memory
Built-in flash memory or external USB storage etc. can be included, in case subsequently repeating playing use;Playback switch 7 be used for
Main control chip 1 sends control signal, so that the control of main control chip 1 plays the voice signal of storage.In one exemplary embodiment,
The recording switch 6 and the playback switch 7 can be the push switch including single key.
Moreover, for the maloperation for preventing from recording and playing, the utility model embodiment is to recording switch 6 and playback switch
7 set-up mode is optimized.In one exemplary embodiment, recording switch 6 can include the sub switch 61 of multiple series connection,
So, only just control signal can be sent to main control chip 1, and make main control chip 1 from wheat when the sub switch 61 of whole closes
Gram wind 5 obtains and stores voice signal, so as to the maloperation for preventing to record and playing.In a further exemplary embodiment,
Referring to Fig. 2, one kind for being provided for the utility model embodiment is clapped hands device external structure schematic diagram, and the utility model embodiment enters one
Walk and the set location of recording switch 6 and playback switch 7 is optimized, as shown in Fig. 2 device of clapping hands also includes hand-type housing 10
With handle 11;Playback switch 7 and recording switch 6 are successively set on the outer wall of handle 11 along the direction with remote hand-type housing 10
On;Wherein, recording switch 6 includes 3 sub switchs 61 being serially connected, and exists between playback switch 7 and recording switch 6 between first
Away from D1, there is the second space D 2 in sub switch 61 between being uniformly arranged i.e. adjacent sub switch 61;Moreover, the utility model is implemented
Example sets the first space D 1 to be more than the second space D 2, and so by above-mentioned set-up mode, user can make during use
Press triggering playback switch 7 with forefinger, be easy to playback, and when needing recording, it is necessary to refer to simultaneously in use, it is nameless and
Pinkie presses sub switch 61 simultaneously could trigger recording switch 6, be recorded, and can either meet the convenience played, and can
Enough prevent the maloperation recorded and played.
In the utility model embodiment, device of clapping hands can include 3 hand-type housings 10 being arranged side by side, positioned at centre
Hand-type housing 10 is fixedly connected with handle 11, and other hand-type housings 10 positioned at both sides are flexibly connected with handle 11, are so being shaken
It is dynamic clap hands device when, the hand-type housing 10 that the activity positioned at both sides is set can hit the hand-type housing positioned at middle fixed setting
10, so as to produce the sound of similar applause.Clapped hands device based on 3 hand-type housings 10, as a preferred embodiment, rocker switch group
In 2 hand-type housings 10 being arranged at centre, being fixedly connected, hand that loudspeaker 4 can be arranged at both sides, that activity is set
In any one of shell body 10.Certainly, it is necessary to illustrate, the set-up mode of above-mentioned rocker switch group 2 and loudspeaker 4 is only
It is in an exemplary embodiment, in the specific implementation, rocker switch group 2 and loudspeaker 4 can also be arranged at other optional positions,
Such as in handle 11 etc., do not limited in the utility model embodiment.
In addition, in order to further facilitate the use for device of clapping hands, in an exemplary implementation, referring also to Fig. 1 and Fig. 2, clap
Hand device is additionally provided with volume switch 12, and one end of volume switch 12 electrically connects with main control chip 1, other end ground connection, specific real
Shi Shi, the volume switch 12 can be that slide rheostat formula switchs, and device of clapping hands is broadcast by the resistance for changing slide rheostat
Playback amount is controlled.Device of clapping hands can also include power switch 13, as shown in figure 1, one end of power switch 13 and master control core
Piece 1 electrically connects, the other end electrically connects with socket 14, and socket 14 further may be coupled on power supply, by disconnecting or closing
Turning off or on for device of clapping hands can conveniently be controlled by closing power switch 13.
In order to ensure the normal work of amplifier 3 and result of broadcast, the input of amplifier 3 and the connection of main control chip 1
The second electric capacity 82 is in series with circuit, the 3rd electric capacity 83 is in series with the output end of amplifier 3 and the connection circuit of loudspeaker 4,
The feeder ear of amplifier 3 is with being in series with 3rd resistor 93 on power supply VCC connection circuit, and amplifier 3 also has one end ground connection.
It should be noted that in the utility model embodiment, for the first electric capacity 81, the second electric capacity 82, the 3rd the 83, first electricity of electric capacity
The concrete numerical value of resistance 91, second resistance 92 and 3rd resistor 93 does not limit, and those skilled in the art can be according to specific electricity
Road design needs, from the resistance and electric capacity of relevant parameter.
From the description of above-described embodiment, one kind that the utility model embodiment provides is clapped hands device, including main control chip
1st, rocker switch group 2, amplifier 3 and loudspeaker 4;Wherein, rocker switch group 2 comprises at least first direction rocker switch 21 and the
Two direction rocker switch 22;First direction rocker switch 21 electrically connects with main control chip 1, for according to clap hands device shake first
Direction sends the first control signal to main control chip 1;Second direction rocker switch 22 electrically connects with main control chip 1, for basis
The second direction that device of clapping hands shakes sends the second control signal to main control chip 1;One end of amplifier 3 is electrically connected with main control chip 1
Connect, the other end electrically connects with loudspeaker 4;Main control chip 1 determines high priority from the first control signal and the second control signal
Control signal, and voice signal corresponding to high priority control signal is sent to amplifier 3, through amplifier 3 amplify after
Played on loudspeaker 4.In use, by the shake of different directions, device of clapping hands can send a variety of different types of sound
Sound, meet the needs of user emotion expression, there is very high practicality;Moreover, by the judgement of control signal priority and
Set-up mode is switched, the interference of control signal can be effectively avoided, prevent maloperation, device of clapping hands further is improved and plays control
Accuracy.
Corresponding with the device embodiment of above-mentioned device of clapping hands, the utility model embodiment also provides a kind of control for device of clapping hands
Method.
Referring to Fig. 3, a kind of schematic flow sheet of the control method of the device of clapping hands provided for the utility model embodiment, such as scheme
Shown in 3, the utility model embodiment shows that main control chip 1 plays out the process of control:
Step S101:Main control chip 1 obtains one or more of rocker switch group 2, recording switch 6 and playback switch 7
The control signal sent.
During the use for device of clapping hands, user rocks the shake of one or more of device of clapping hands, such rocker switch group 2
Switch may send one or more control signals to main control chip 1;Meanwhile user may produce mistake in device is clapped hands in use
Operation, such as the rocker switch of recording switch 6, playback switch 7 even in rocker switch group 2 etc., such master control core are triggered simultaneously
Piece 1 may get various control signal.
Step S102:Main control chip 1 determines the priority of control signal.
Main control chip 1 can determine the priority of corresponding control signal, i.e. switch triggering according to the triggered time of switch
And sending that control signal is more early, then the priority of corresponding control signal is higher.In the specific implementation, main control chip 1 receives
The control signal and recording switch 6 and playback switch that any one or more direction rocker switch are sent in rocker switch group 2
7 control signals sent, further judge that the time of each control signal, such as recording switch 6 send the time of control signal
Earlier than the time that playback switch 7 sends control signal, the time that playback switch 7 sends control signal is sent out earlier than rocker switch group 2
Go out the time of control signal, then main control chip 1 determines that recording switch 6 sends the priority of control signal>Playback switch 7 sends control
The priority of signal processed>Rocker switch group 2 sends the priority of control signal.
Under the first performance, when control signal is the control signal that the rocker switch in rocker switch group 2 is sent
When, and when comprising at least the first control signal and the second control signal, main control chip 1 can be according to the time of control signal, really
Its fixed priority.Referring to Fig. 4, a kind of control signal priority provided for the utility model embodiment determines that the flow of method is shown
It is intended to, as shown in figure 4, this method includes:
Step S1021:The very first time of the first control signal and the second time of the second control signal are obtained, wherein, the
One time corresponded to the time that first direction rocker switch 21 sends the first control signal, and the second time corresponded to second direction shake and opened
Closed for 22 times for sending the second control signal.
Step S1022:If the very first time was later than for the second time, determine that the priority of the first control signal is less than the second control
The priority of signal processed.
Step S1023:If the very first time earlier than the second time, determines that the priority of the first control signal is more than the second control
The priority of signal processed.
By the description of above-described embodiment, during the utility model embodiment in shake by clapping hands device, not Tongfang
To rocker switch triggering produce control signal time it is different, determine the priority of control signal, and then subsequently walking
The operation corresponding to the control signal more early triggered is preferentially performed in rapid.In the case of one kind is embodied, device of clapping hands shakes up and down
In dynamic process, above-below direction rocker switch and upper right lower-left rocker switch may can send control signal to main control chip 1,
And above-below direction rocker switch is consistent with shaking direction, it can earlier trigger and produce control signal, bottom right upper left rocker switch
The triggering of above-below direction rocker switch can be later than and produce control signal, so can be excellent by control signal time, main control chip 1
The corresponding operating of control signal produced by first carrying out above-below direction rocker switch, such as dislike sound of sobbing is sent, so as to exactly
Respond the exposition need of user.
Under second of performance, when control signal is the control signal that the rocker switch in rocker switch group 2 is sent
When, and when comprising at least the first control signal and the second control signal, main control chip 1 can be according to the pulse frequency of control signal
Rate, determine its priority.Referring to Fig. 5, another control signal priority provided for the utility model embodiment determines method
Schematic flow sheet, as shown in figure 5, this method includes:
Step S1024:The first frequency of the first control signal and the second frequency of the second control signal are obtained, wherein, institute
The pulse frequency that first frequency sends the first control signal for first direction rocker switch 21 is stated, the second frequency is second party
The pulse frequency of the second control signal is sent to rocker switch 22.
Step S1025:If the first frequency is more than the second frequency, determine that the priority of the first control signal is big
In the priority of second control signal.
Step S1026:If the first frequency is less than the second frequency, determine that the priority of the first control signal is small
In the priority of second control signal.
In the above-described embodiments, device is clapped hands during shake, and first direction rocker switch 21 may be due in sliding block etc.
The continuous triggering that slidably reciprocates of portion's structure, so as to produce the control signal with first frequency, while second direction rocker switch
22 can also produce the control signal of second frequency.With first direction rocker switch 21 for above-below direction rocker switch, second direction
Rocker switch 22 be upper right lower-left rocker switch exemplified by, when device of clapping hands fluctuates, first direction rocker switch 21 and second
Direction rocker switch 22 may trigger and produce corresponding control signal, however, because first direction rocker switch 21 is with shaking
Direction is consistent, therefore the pulse frequency of control signal caused by first direction rocker switch 21 is higher than second direction rocker switch
The pulse frequency of control signal produced by 22, main control chip 1 determine that first direction rocker switch 21 sends the preferential of control signal
Level sends the priority of control signal higher than second direction rocker switch 22, and then may proceed to perform first direction rocker switch 21
Corresponding operation, such as control send dislike sound of sobbing.Pulse frequency during the utility model is implemented being capable of more accurately area
Other control signal, so as to further improve the response accuracy for device of clapping hands, accurately express the mood of user.
Under the third performance, due to the possible maloperation of user, control signal can include recording switch 6 and broadcast
Decontrol any one control signal sent closed in 7, and the control signal that the rocker switch group 2 is sent;Or control letter
Number include the control signal that recording switch 6 and playback switch 7 are sent, the utility model embodiment show main control chip 1 in order to
Prevent maloperation from determining the process of control signal priority:
When control signal includes any one control signal sent in recording switch 6 and playback switch 7, and described shake
During the control signal that dynamic switches set 2 is sent, determine the priority of control signal of recording switch 6 or playback switch 7 higher than described
The priority of the control signal of rocker switch group 2;Or when the control signal is sent including recording switch 6 and playback switch 7
Control signal when, determine that the priority for the control signal that recording switch 6 is sent is more than the control that sends of record playback switch 7
The priority of signal.
In the above-described embodiments, during user recording, in triggering rocker switch group 2 during rocker switch, main control chip 1
The control signal triggered according to aforesaid way preferential answering recording switch 6, carry out recording operation;When user's playback process
In, in triggering rocker switch group 2 during rocker switch, control that main control chip 1 triggers according to aforesaid way preferential answering playback switch 7
Signal processed, operation is played out, play the recorded audio signals of storage;During user's playback, recording switch 6 is triggered, it is main
The control signal that control chip 1 triggers according to aforesaid way preferential answering playback switch 7, plays out operation, plays the record of storage
Sound signal.The utility model embodiment determines the priority of control signal through the above way, can effectively shield the mistake of user
Operation, and then ensure the response accuracy of device of clapping hands.
Step S103:Main control chip 1 performs the operation corresponding to the control signal of high priority.
According to the priority that control signal is determined in step S102, and the control signal of high priority is rocker switch group 2
During the control signal sent, in order to further coordinate the device operation of clapping hands of user, the sound for the volume that matches with user emotion is sent
Sound, in the utility model embodiment, main control chip 1 can also adjust wave volume, tool according to the pulse frequency of control signal
Body process is:When the pulse frequency increase of the control signal of high priority, increase wave volume corresponding to the control signal;
Or when the pulse frequency of the control signal of high priority is reduced, reduce wave volume corresponding to the control signal.This
Sample, when user emotion excitement, the shake frequency for device of clapping hands can be increased, main control chip 1 is by perceiving the pulse frequency of control signal
Rate increase, further improves volume;Equally, when user emotion calmness, the shake frequency for device of clapping hands, main control chip 1 can be reduced
By perceiving the reduction of control signal pulse frequency, so as to reduce volume, the control method of the utility model embodiment can enter one
The accurate emotion expression service demand for agreeing with user of step.
From the description of above-described embodiment, a kind of control method for device of clapping hands that the utility model embodiment provides, lead to
Cross main control chip 1 and obtain the control signal that one or more of rocker switch group 2, recording switch 6 and playback switch 7 are sent;
Main control chip 1 determines the priority of the control signal;Main control chip 1 performs the behaviour corresponding to the control signal of high priority
Make.The utility model is by the judgement of the priority to control signal, the operation of preferential answering high priority control signal, so as to
Meet the needs of a variety of expression moods of user;Moreover, this method can effectively prevent the maloperation of user, there is very high response
Precision.
It will be understood by those skilled in the art that all or part of function of various methods can pass through in above-mentioned embodiment
The mode of hardware is realized, can also be realized by way of computer program.When all or part of function in above-mentioned embodiment
When being realized by way of computer program, the program can be stored in a computer-readable recording medium, and storage medium can
With including:Read-only storage, random access memory, disk, CD, hard disk etc., it is above-mentioned to realize that the program is performed by computer
Function.For example, by program storage in the memory of equipment, when passing through computing device memory Program, you can in realization
State all or part of function.In addition, when in above-mentioned embodiment all or part of function realized by way of computer program
When, the program can also be stored in the storage mediums such as server, another computer, disk, CD, flash disk or mobile hard disk
In, by download or copying and saving into the memory of local device, or version updating is carried out to the system of local device, when logical
When crossing the program in computing device memory, you can realize all or part of function in above-mentioned embodiment.
Use above specific case is illustrated to the utility model, is only intended to help and is understood the utility model, and
Not limiting the utility model.For the utility model person of ordinary skill in the field, according to think of of the present utility model
Think, some simple deductions, deformation can also be made or replaced.