Summary of the invention
Embodiment of the invention technical problem to be solved is, provides a kind of and rocks control method and infanette rocks controller, can be according to user's needs, and second equipment such as infanette are rocked in the action that the imitation user rocks the baby automatically.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of control method of rocking, and comprising:
Adopt sensor sensing first object to rock the motion sensing data in the process, said sensor comprises any one or more in three dimension acceleration sensor, gyroscope and the magnetometer;
According to said motion sensing data, the standard that calculates said first object is rocked action waveforms;
Rock action waveforms according to said standard, second equipment is rocked in control.
Wherein, said according to said motion sensing data, the standard that calculates said first object is rocked the step of action waveforms, comprising:
According to said motion sensing data, calculate the three dimensional space coordinate of said first object in the process of rocking;
According to said three dimensional space coordinate, calculate the standard that said first object rocks in the process and rock action waveforms.
Wherein, also comprise:
Store said standard and rock action waveforms.
Wherein, saidly rock action waveforms according to said standard, the step that second equipment is rocked in control comprises:
Rock action waveforms according to said standard, the power set that control is arranged on said second equipment rock said second equipment;
Through rocking of said second equipment of said sensor in real time sensing, and obtain said second equipment and rock the action waveforms that rocks in the process;
The said standard of rocking action waveforms and storage of said second equipment is rocked action waveforms to be compared; When rock action waveforms and the said standard of said second equipment are rocked action waveforms when inconsistent; Control is arranged at the power set on said second equipment, with regulate said second equipment rock with said standard rock action waveforms pairing rock consistent.
Correspondingly, the embodiment of the invention also provides a kind of infanette to rock controller, comprising:
Sensor is used for the motion sensing data that sensing first object rocks process, and said sensor comprises any one or more in three dimension acceleration sensor, gyroscope and the magnetometer;
Processing unit is used for the motion sensing data that obtain according to said sensor sensing, and the standard that calculates said first object is rocked action waveforms;
Control module is used for rocking action waveforms according to the standard that said processing unit calculates, and infanette is rocked in control.
Wherein, said processing unit comprises:
First computing unit is used for the motion sensing data that sense according to said sensor, calculates the three dimensional space coordinate of said first object in the process of rocking;
Second computing unit is used for the three dimensional space coordinate that obtains according to said first computing unit, calculates the standard that said first object rocks in the process and rocks action waveforms.
Wherein, also comprise:
Memory cell is used to store the standard that said processing unit obtains and rocks action waveforms.
Wherein,
Said sensor also is used for rocking of the said infanette of real-time sensing, obtains said infanette and rocks the motion sensing data in the process;
The motion sensing data of the said infanette that said processing unit also is used for obtaining according to said sensor are obtained said infanette and are rocked the action waveforms that rocks in the process;
Said control module comprises:
First control module is used for rocking action waveforms according to the standard of said cell stores, and the power set that control is arranged on the said infanette rock said infanette;
Second control module; The standard of rocking action waveforms and said cell stores of the said infanette that is used for said processing unit is obtained is rocked action waveforms and is compared; When rock action waveforms and the said standard of said infanette are rocked action waveforms when inconsistent; Control is arranged at the power set on the said infanette, with regulate said infanette rock with said standard rock action waveforms pairing rock consistent.
Embodiment of the present invention embodiment has following beneficial effect:
First objects such as baby that sense according to sensor are initially rocking the motion sensing data of process; Can calculate the baby waits first object to rock action waveforms in the standard of initially rocking in the process; And can rock action waveforms according to said standard; Automatically rocking of second equipment such as control infanette realizes rocking similar function of rocking automatically like second equipment such as infanettes with mother, helps the growth of organs such as the quiet sleeping and brain of baby; Simultaneously alleviate mother's burden again, promoted user's experience.
The specific embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Fig. 1 is that the structure of rocking controller of the embodiment of the invention is formed sketch map; As shown in Figure 1, this rocks controller and comprises: sensor 1, and processing unit 2 and control module 3, wherein,
Said sensor 1 is used for the motion sensing data that sensing first object rocks process, and said sensor comprises any one or more in three dimension acceleration sensor, gyroscope and the magnetometer;
Concrete; Said first object is baby etc., when needs rock the baby and make the baby quiet sleeping, can said controller be positioned on one's body the baby; The user can be through the bosom baby; The baby is rocked, perhaps the baby is placed in the infanette and rocks, said sensor 1 can sense the baby along with infanette rocks the motion sensing data in the process.
When the baby rocked in users such as mother bosom or in the infanette, said sensor 1 can adopt three dimension acceleration sensor to sense the linear acceleration value on X axle in the three dimensions of said baby in the process of rocking, Y axle, the Z-direction; Perhaps adopt the angular acceleration values on X axle in the three dimensions of the said baby of gyroscope sensing in the process of rocking, Y axle, the Z-direction; Perhaps adopt magnetometer to sense the geomagnetic data that the baby rocks each location point of process.
Processing unit 2 is used for the motion sensing data that obtain according to said sensor 1 sensing, and the standard that calculates said first object is rocked action waveforms;
Concrete, the linear acceleration value on the X axle of the said acceleration transducer of 2 pairs of said processing units institute sensing, Y axle, the Z-direction is carried out computing and is drawn the baby and rock X axle in the process, Y axle, Z-direction straight-line displacement, and is fused into three dimensional space coordinate; After angular acceleration values on the X axle of the said gyroscope of 2 pairs of said processing units institute sensing, Y axle, the Z-direction is carried out computing, can obtain the baby and rock angular displacement on X axle in the process, Y axle, the Z-direction, and be fused into three dimensional space coordinate; The different geomagnetic data that said processing unit 2 senses according to said magnetometer; Can obtain the baby and rock straight-line displacement on X axle in the process, Y axle, the Z-direction; And be fused into three dimensional space coordinate, according to said straight-line displacement and/or said angular displacement and binding time value, can obtain the baby and rock in the process; Parameter values such as frequency of rocking and amplitude, thus the standard that obtains the baby is rocked action waveforms.
Control module 3 is used for rocking action waveforms according to the standard that said processing unit 2 calculates, and infanette is rocked in control.
Concrete, said control module 3 rocks action waveforms according to the baby's that said processing unit 2 calculates standard, and the power set of control infanette make said power set to rock action waveforms according to said standard, rock said infanette.
In the process of rocking; The said also situation of rocking through the said sensor 1 real-time said infanette of sensing of controller of rocking; Obtain said infanette through said processing unit 2 and rock the action waveforms that rocks in the process; The said control module 3 real-time said standards of rocking action waveforms and storage with said infanette are rocked action waveforms and are compared; Rock action waveforms when inconsistent when rock action waveforms and the said standard of said infanette, control is arranged at the power set on the said infanette, with regulate said infanette rock with said standard rock action waveforms pairing rock consistent.
In addition, see also Fig. 1 again, the said controller that rocks also comprises: memory cell 4.
Said memory cell 4 is used to store the standard that said processing unit 2 obtains and rocks action waveforms.
Concrete; Said processing unit 2 is when the standard of calculating is rocked action waveforms; Also can send data to said memory cell 4 storages; Make control module 3 to rock the power set that action waveforms is controlled one or more infanette according to the standard of said memory cell 4 storages, rock corresponding infanette with control according to user's needs.In addition; When the user embraces the baby when in the bosom, rocking; Need the standard of baby in the process of rocking be rocked action waveforms through said memory cell 4 of rocking in the controller and store, so that when the user places infanette with the baby, the said controller that rocks is placed on the infanette; Said control module 3 can rock action waveforms according to the said standard that said memory cell 4 is preserved; The power set of control infanette make said power set to rock action waveforms according to the said standard of preserving, and rock said infanette.
Further, seeing also Fig. 2, is that the structure of the processing unit that rocks controller among Fig. 1 is formed sketch map; Said processing unit 2 comprises:
First computing unit 21 is used for the motion sensing data that sense according to said sensor 1, calculates the three dimensional space coordinate of said first object in the process of rocking;
Second computing unit 22 is used for calculating the three dimensional space coordinate that Unit 21 obtain according to said first, calculates the standard that said first object rocks in the process and rocks action waveforms.
Further, seeing also Fig. 3, is that the structure of the control module that rocks controller among Fig. 1 is formed sketch map, and said control module 3 comprises:
First control module 31 is used for rocking action waveforms according to the standard of said memory cell 4 storages, and the power set that control is arranged on the said infanette rock said infanette;
Said sensor 1 also is used for rocking of the said infanette of real-time sensing, obtains said infanette and rocks the motion sensing data in the process; The motion sensing data of said infanette comprise the three-dimensional acceleration data, any one or more in three-dimensional gyro data and the magnetometer data.
The motion sensing data of the said infanette that said processing unit 2 also is used for obtaining according to said sensor 1 are obtained said infanette and are rocked the action waveforms that rocks in the process;
Concrete, obtain said infanette to rock the mode that action waveforms and the standard of obtaining the baby rock action waveforms identical, do not give unnecessary details at this.
Second control module 32; The standard of rocking action waveforms and 4 storages of said memory cell of the said infanette that is used for said processing unit 2 is obtained is rocked action waveforms and is compared; When rock action waveforms and the said standard of said infanette are rocked action waveforms when inconsistent; Control is arranged at the power set on the said infanette, with regulate said infanette rock with said standard rock action waveforms pairing rock consistent.
Concrete; Infanette may cause rocking on amplitude and frequency of infanette owing to external force in the process of rocking, with the storage standard rock the pairing amplitude of action waveforms and frequency inconsistent; At this moment; Said second control module 32 just rocks action waveforms according to the standard of said memory cell 4 storages, regulates rocking of infanette, make infanette rock with standard rock action waveforms pairing rock consistent.
It is understandable that above-mentioned first object is merely for example for the baby, it can also be for child waits other similar objects, and similar analysis is not given unnecessary details at this under other situation.
Description through the foregoing description; The present invention has the following advantages: first object such as the baby who senses according to sensor, child is initially rocking the motion sensing data of process; Can calculate first objects such as baby, child and rock action waveforms, and can rock action waveforms, control rocking of infanette automatically according to said standard in the standard of initially rocking in the process; Realize rocking similar function of rocking automatically like second equipment such as infanettes with mother; Help the growth of organs such as the quiet sleeping and brain of baby, alleviated mother's burden again simultaneously, promoted user's experience.
In order to be illustrated more clearly in the present invention, be elaborated in the face of the control method of rocking of the present invention down.
Fig. 4 is the first embodiment schematic flow sheet that rocks control method of the present invention, and as shown in Figure 4, this method comprises:
S401: adopt sensor sensing first object to rock the motion sensing data in the process, said sensor comprises any one or more in three dimension acceleration sensor, gyroscope and the magnetometer;
Concrete, said first object can be the baby, makes the baby quiet when sleeping when needs rock the baby; Can sensor be placed on one's body the baby, mother can rock the baby through the bosom baby; Said sensor just can sense the baby and rock the motion sensing data in the process; Perhaps also can the baby be placed on second equipment, and rock said second equipment, place baby's said sensor on one's body then can sense the baby rocks process along with second equipment motion sensing data.
When the baby rocked in users such as mother bosom or in second equipment, said sensor can adopt three dimension acceleration sensor to sense the linear acceleration value on X axle in the three dimensions of said baby in the process of rocking, Y axle, the Z-direction; Perhaps adopt the angular acceleration values on X axle in the three dimensions of the said baby of gyroscope sensing in the process of rocking, Y axle, the Z-direction; Perhaps adopt magnetometer to sense the geomagnetic data that the baby rocks each point of process.
S402: according to said motion sensing data, the standard that calculates said first object is rocked action waveforms;
Concrete, the linear acceleration value on the X axle of said acceleration transducer institute sensing, Y axle, the Z-direction is carried out computing draw straight-line displacement on X axle, Y axle, the Z-direction, and be fused into three dimensional space coordinate; After angular acceleration values on the X axle of said gyroscope institute sensing, Y axle, the Z-direction carried out computing, can obtain angular displacement on X axle, Y axle, the Z-direction, and be fused into three dimensional space coordinate; The different geomagnetic data that senses according to said magnetometer; Can obtain straight-line displacement on X axle, Y axle, the Z-direction; And be fused into three dimensional space coordinate, according to said straight-line displacement and/or said angular displacement and binding time value, can obtain the baby and rock in the process; Frequency of rocking and amplitude are equivalent, thereby the standard that obtains the baby is rocked action waveforms.
S403: rock action waveforms according to said standard, second equipment is rocked in control.
Concrete, the baby's who calculates according to S402 standard is rocked action waveforms, controls the power set of second equipment, makes said power set to rock action waveforms according to said standard, rocks said second equipment; Perhaps rock action waveforms and regulate rocking of second equipment according to said standard, make second equipment rock with standard rock action waveforms pairing rock consistent.
It is understandable that above-mentioned first object is merely for example for the baby, it can also be for child waits other similar objects, and similar analysis is not given unnecessary details at this under other situation; Simultaneously, above-mentioned second equipment can be according to infanette that rocks the power set that Waveform Control rocks etc. for being provided with.
Description through the foregoing description; The present invention has the following advantages: first object such as the baby who senses according to sensor, child is initially rocking the motion sensing data of process; Can calculate first objects such as baby, child and rock action waveforms, and can rock action waveforms, control rocking of second equipment automatically according to said standard in the standard of initially rocking in the process; Realize rocking similar function of rocking automatically like second equipment such as infanettes with mother; Help the growth of organs such as the quiet sleeping and brain of baby, alleviated mother's burden again simultaneously, promoted user's experience.
Fig. 5 is the second embodiment schematic flow sheet that rocks control method of the present invention, and as shown in Figure 5, this method comprises:
S501: adopt sensor sensing first object to rock the motion sensing data in the process, said sensor comprises any one or more in three dimension acceleration sensor, gyroscope and the magnetometer;
S502:, calculate the three dimensional space coordinate of said first object in the process of rocking according to said motion sensing data;
S503:, calculate the standard that said first object rocks in the process and rock action waveforms according to said three dimensional space coordinate;
S504: store said standard and rock action waveforms;
Concrete, through the storage that said standard is rocked action waveforms, make that rocking controller accordingly can rock the power set that action waveforms is controlled the second different equipment according to the standard of storage according to user's needs, rocks the second different equipment with control.
S505: rock action waveforms according to said standard, the power set that control is arranged on said second equipment rock said second equipment;
S506:, and obtain said second equipment and rock the action waveforms that rocks in the process through rocking of said second equipment of sensor in real time sensing;
S507: the said standard of rocking action waveforms and storage of said second equipment is rocked action waveforms compare, judge and saidly rock action waveforms to rock action waveforms consistent with the standard of storage;
Concrete; Action waveforms and baby the standard in the process of rocking of rocking of second equipment is rocked action waveforms carry out amplitude, the isoparametric comparison of frequency, to rock action waveforms consistent with the baby's of storage standard can to judge the action waveforms that rocks of second equipment.When unanimity, execution in step S507, otherwise, execution in step S508.
S508: rock action waveforms when inconsistent when rock action waveforms and the said standard of second equipment, control is arranged at the power set on second equipment, with regulate second equipment rock with said standard rock action waveforms pairing rock consistent.
Concrete; Second equipment may cause rocking on amplitude and frequency of second equipment owing to external force in the process of rocking, with the storage said standard rock the pairing amplitude of action waveforms and frequency inconsistent; At this moment; S508 just rocks action waveforms according to the said standard of storage, regulates rocking of second equipment, make amplitude that said second equipment rocks and frequency and said standard rock action waveforms corresponding amplitude of rocking and frequency consistent.
It is understandable that above-mentioned first object is merely for example for the baby, it can also be for child waits other similar objects, and similar analysis is not given unnecessary details at this under other situation; Simultaneously, above-mentioned second equipment can be according to infanette that rocks the power set that Waveform Control rocks etc. for being provided with.
Description through the foregoing description; The present invention has the following advantages: first object such as the baby who senses according to sensor, child is initially rocking the motion sensing data of process, can calculate first objects such as baby, child and rock action waveforms in the standard of initially rocking in the process, and can rock action waveforms according to said standard; Automatically control second equipment rocks; Realize rocking similar function of rocking automatically, help the growth of organs such as the quiet sleeping and brain of baby, alleviated mother's burden simultaneously again like second equipment such as infanettes with mother;, promoted user's experience.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely a kind of preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.