The content of the invention
Based on this, it is necessary to the technical problem easily judged by accident for above-mentioned operative scenario, there is provided a kind of scheme.
A kind of operative scenario determination methods of sweeping robot, computer perform following steps under configuration:
Motor is cleaned using pwm signal control sweeping robot to work under preset rotation speed;
Calculate time ratio of the high/low level signal of the pwm signal within the cycle;
Obtain time ratio and operative scenario of the high/low level signal of pwm signal under the preset rotation speed within the cycle
Corresponding relation;
According to the time ratio and the corresponding relation being calculated, the operative scenario of sweeping robot is determined.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
In one of the embodiments, the high/low level signal for obtaining pwm signal under the preset rotation speed is in the cycle
The step of corresponding relation of interior time ratio and operative scenario, specifically include:
Statistics preset rotation speed under sweeping robot be operated in the high/low level signal on unlike material ground within the cycle when
Between ratio;
The different operating scene to form sweeping robot is divided according to unlike material;
Determine the corresponding relation of operative scenario and the time ratio.
Accurate corresponding relation between operative scenario and time ratio section can be obtained, to improve sweeping robot work
Make the accuracy of scene judgement.
In one of the embodiments, the high/low level signal for obtaining pwm signal under the preset rotation speed is in the cycle
The step of corresponding relation of interior time ratio and operative scenario, specifically include:
The corresponding relation of the time ratio of importing operative scenario and the high/low level signal of pwm signal within the cycle.
Operative scenario and the historical data of the corresponding relation in time ratio section can be introduced directly into.It is thus possible to utilize
The operative scenario and the corresponding relation in time ratio section of history accumulation, without collection work scene again and time ratio area
Between data, improve and perform the efficiency that operative scenario determination methods perform.
In one of the embodiments, the step of operative scenario of the determination sweeping robot, is specifically included:
The time ratio is searched in the corresponding relation;
The time ratio in the corresponding relation determines operative scenario.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
The application also provides a kind of sweeping robot, including:
Drive module, worked for cleaning motor using pwm signal control sweeping robot under preset rotation speed;
Computing module, for calculating time ratio of the high/low level signal of the pwm signal within the cycle;
Acquisition module, for obtaining time ratio of the high/low level signal of pwm signal under the preset rotation speed within the cycle
The corresponding relation of rate and operative scenario;
Matching module, for according to the time ratio and the corresponding relation being calculated, determining sweeping robot
Operative scenario.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
In one of the embodiments, the acquisition module is specifically used for:
Statistics preset rotation speed under sweeping robot be operated in the high/low level signal on unlike material ground within the cycle when
Between ratio;
The different operating scene to form sweeping robot is divided according to unlike material;
Determine the corresponding relation of operative scenario and the time ratio.
Accurate corresponding relation between operative scenario and time ratio section can be obtained, to improve sweeping robot work
Make the accuracy of scene judgement.
In one of the embodiments, the acquisition module is specifically used for:
The corresponding relation of the time ratio of importing operative scenario and the high/low level signal of pwm signal within the cycle.
The operative scenario and the corresponding relation in time ratio section of history accumulation can be utilized, without collection work again
Scene and the data in time ratio section, improve and perform the efficiency that operative scenario determination methods perform.
In one of the embodiments, the matching module is specifically used for:
The time ratio is searched in the corresponding relation;
The time ratio in the corresponding relation determines operative scenario.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one
Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Go out under the premise of creative work the every other embodiment obtained, belong to the scope of the application protection.
Fig. 1 is the flow chart of the operative scenario determination methods for the sweeping robot that the embodiment of the present application provides, and is specifically included
Following steps:
S100:Motor is cleaned using pwm signal control sweeping robot to work under preset rotation speed.
PWM (Pulse Width Modulation, pulse width modulation) to a series of width of pulses by adjusting
System, equally to obtain required waveform.The necks such as PWM control technologies can apply to measure, communicate, Power Control and conversion
Domain.In the embodiment that the application provides, the rotating speed of motor is cleaned using pwm signal control sweeping robot.It can set pre-
If rotating speed, a step modulating pulse width is gone forward side by side to realize that clean motor works under preset rotation speed.Preset rotation speed can be according to sweeping
The practical working situation of floor-washing robot is rationally set.
S200:Calculate time ratio of the high/low level signal of the pwm signal within the cycle.
It is understood that the pulse width of pwm signal and power output, output voltage or preset rotation speed phase here
Close.Pulse width is presented as the duration of high level signal in specific oscillogram, and in other words, high level signal is in the cycle
The time ratio of interior time ratio or low level signal within the cycle.
S300:Obtain time ratio and work of the high/low level signal of pwm signal under the preset rotation speed within the cycle
The corresponding relation of scene.
In this application, the material for the earth's surface that the operative scenario of definition is walked or worked with sweeping robot is relevant.For example,
It is that the operative scenario of carpet, ground laying plank or earth's surface are the operative scenario of plank, ground paving that carpet or earth's surface are laid in ground
If ceramic tile or earth's surface are operative scenario of ceramic tile etc..
Sweeping robot is in the earth's surface work of unlike material, on the basis of maintaining cleaning motor to be in preset rotation speed,
Time ratio of the high/low level signal of pwm signal within the cycle is different.It is it is envisioned that big for coefficient of friction
Material, maintaining to clean on the basis of motor is in preset rotation speed, time ratio of the high level signal within the cycle is larger;Instead
It, for the small material of coefficient of friction, on the basis of maintaining cleaning motor to be in preset rotation speed, high level signal is within the cycle
Time ratio it is smaller.Opposite, for the big material of coefficient of friction, on the basis for maintaining cleaning motor to be in preset rotation speed
On, time ratio of the low level signal within the cycle is smaller;Conversely, for the small material of coefficient of friction, maintaining to clean motor
On the basis of preset rotation speed, time ratio of the low level signal within the cycle is larger.
Further, in the another embodiment that the application provides, the acquisition operative scenario is corresponding with motor speed
The step of relation, specifically include:
Statistics preset rotation speed under sweeping robot be operated in the high/low level signal on unlike material ground within the cycle when
Between ratio;
The different operating scene to form sweeping robot is divided according to unlike material;
Determine the corresponding relation of operative scenario and the time ratio.
It can count sweeping robot under preset rotation speed in an experiment or during actual use and be operated in unlike material
Time ratio of the high/low level signal on ground within the cycle, and be distinguish between forming different yards according to unlike material
Scape.So as to it determine the corresponding relation of operative scenario and the time ratio.The material on ground or the material of earth's surface can be subdivided into
Cement earth's surface, ceramic tile earth's surface, solid wood earth's surface, compacting plank earth's surface, the earth's surface for laying carpet.Unlike material earth's surface can be counted
The section of the time ratio.Such as can be formed using time ratio as file, using material as row, with the section of time ratio
For the two-dimensional table of content.It is thus possible to accurate corresponding relation between operative scenario and time ratio section is obtained, to carry
The accuracy that high sweeping robot operative scenario judges.
Further, it is described to obtain pwm signal under the preset rotation speed in the another embodiment that the application provides
The step of corresponding relation of time ratio and operative scenario of the high/low level signal within the cycle, specifically include:
The corresponding relation of the time ratio of importing operative scenario and the high/low level signal of pwm signal within the cycle.
In addition, in practice process, the corresponding relation in operative scenario and time ratio section can be with history of forming data.Cause
This, can also be introduced directly into operative scenario and the historical data of the corresponding relation in time ratio section.It is thus possible to utilize history
The operative scenario of accumulation and the corresponding relation in time ratio section, without collection work scene again and time ratio section
Data, improve and perform the efficiency that operative scenario determination methods perform.
S400:According to the time ratio and the corresponding relation being calculated, the yard of sweeping robot is determined
Scape.
Further, in the another embodiment that the application provides, the step of the operative scenario for determining sweeping robot
Suddenly, specifically include:
The time ratio is searched in the corresponding relation;
The time ratio in the corresponding relation determines operative scenario.
Search the higher limit and lower limit in time ratio section.Compare the time ratio being calculated, i.e. in S200 when
Between ratio and time ratio section higher limit and lower limit, determine the time ratio section that time ratio is fallen into.Then, according to
Time ratio section and the corresponding relation of operative scenario, so that it is determined that operative scenario corresponding to time ratio, it is determined that machine of sweeping the floor
The operative scenario of people.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
Above is the method that the embodiment of the present application provides, based on same thinking, refer to Fig. 2, is the embodiment of the present application
The sweeping robot of offer.
The application also provides a kind of sweeping robot, including:
Drive module 11, worked for cleaning motor using pwm signal control sweeping robot under preset rotation speed;
Computing module 12, for calculating time ratio of the high/low level signal of the pwm signal within the cycle;
Acquisition module 13, for obtaining time of the high/low level signal of pwm signal under the preset rotation speed within the cycle
The corresponding relation of ratio and operative scenario;
Matching module 14, the time ratio being calculated for basis and the corresponding relation, it is determined that machine of sweeping the floor
The operative scenario of people.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
Further, in the another embodiment that the application provides, the acquisition module 13 is specifically used for:
Statistics preset rotation speed under sweeping robot be operated in the high/low level signal on unlike material ground within the cycle when
Between ratio;
The different operating scene to form sweeping robot is divided according to unlike material;
Determine the corresponding relation of operative scenario and the time ratio.
It can count sweeping robot under preset rotation speed in an experiment or during actual use and be operated in unlike material
Time ratio of the high/low level signal on ground within the cycle, and be distinguish between forming different yards according to unlike material
Scape.So as to it determine the corresponding relation of operative scenario and the time ratio.The material on ground or the material of earth's surface can be subdivided into
Cement earth's surface, ceramic tile earth's surface, solid wood earth's surface, compacting plank earth's surface, the earth's surface for laying carpet.Unlike material earth's surface can be counted
The section of the time ratio.Such as can be formed using time ratio as file, using material as row, with the section of time ratio
For the two-dimensional table of content.It is thus possible to accurate corresponding relation between operative scenario and time ratio section is obtained, to carry
The accuracy that high sweeping robot operative scenario judges.
Further, in the another embodiment that the application provides, the acquisition module 13 is specifically used for:
The corresponding relation of the time ratio of importing operative scenario and the high/low level signal of pwm signal within the cycle.
In addition, in practice process, the corresponding relation in operative scenario and time ratio section can be with history of forming data.Cause
This, can also be introduced directly into operative scenario and the historical data of the corresponding relation in time ratio section.It is thus possible to utilize history
The operative scenario of accumulation and the corresponding relation in time ratio section, without collection work scene again and time ratio section
Data, improve and perform the efficiency that operative scenario determination methods perform.
Further, in the another embodiment that the application provides, the matching module 14 is specifically used for:
The time ratio is searched in the corresponding relation;
The time ratio in the corresponding relation determines operative scenario.
Search the higher limit and lower limit in time ratio section.Compare the time ratio being calculated, with time ratio area
Between higher limit and lower limit, determine the time ratio section that time ratio is fallen into.Then, according to time ratio section and work
The corresponding relation of scene, so that it is determined that operative scenario corresponding to time ratio, determine the operative scenario of sweeping robot.
Time ratio and work of the high/low level signal of pwm signal within the cycle when cleaning motor maintenance preset rotation speed
Scene matching accuracy is higher than the accuracy that reflecting rate matches with operative scenario in background technology, the electric current of movable motor and work
The accuracy of the matching of scene, so as to improve the accuracy of sweeping robot operative scenario judgement.
The concrete application scene of the application implementation is described below:
The processor of sweeping robot or the server for managing sweeping robot, obtain the cleaning motor of sweeping robot
The corresponding relation of time ratio and operative scenario of the high/low level signal of pwm signal within the cycle under the preset rotation speed.
Specifically, the high/low level of pwm signal under preset rotation speed by way of statistical experiment data or operational data, can be accumulated
The corresponding relation of time ratio and operative scenario of the signal within the cycle.PWM believes under the preset rotation speed that history can also be accumulated
Number the corresponding relation of time ratio and operative scenario of the high/low level signal within the cycle be introduced directly into the place of sweeping robot
Manage device or manage the server of sweeping robot.Sweeping robot controls machine of sweeping the floor in specific works, using pwm signal
People cleans motor and worked under preset rotation speed.Then, time of the high/low level signal of the pwm signal within the cycle is calculated
Ratio.According to the time ratio being calculated, and under preset rotation speed pwm signal high/low level signal within the cycle
Time ratio and operative scenario corresponding relation, determine the operative scenario of sweeping robot.For example, when searching in corresponding relation
Between rate terms higher limit and lower limit.Compare the higher limit and lower limit in the time ratio and time ratio section being calculated
Value, it is determined that the time ratio section that the time ratio being calculated is fallen into.Then, according to time ratio section and operative scenario
Corresponding relation, so that it is determined that operative scenario corresponding to time ratio, determine the operative scenario of sweeping robot.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.