A kind of mobile phone for measuring system and method
Technical field
The present invention relates to mobile phone, what be specifically related to is a kind of mobile phone for measuring system and method, is mainly used in realizing the measurement of length of curve, area and volume to material object.
Background technology
Along with the development of science and technology, the function of mobile phone from strength to strength, different cell-phone functions every aspect in life all plays an important role.Such as can realize by mobile phone to the user the location, can realize to remote equipment remote control, even can realize monitoring etc. to the health index, the difference in functionality of mobile phone has brought facility in different uses to the user.
Usually in life, can run into the situation of the length of curve, area or the volume that need a material object of measurement, needing in this case to use special-purpose survey tool could realize, and for the user who does not carry specific purpose tool, can't measure, it is for quite inconvenience of user.
Summary of the invention
For this reason, the object of the present invention is to provide a kind of mobile phone for measuring system and method, the problem that can't measure length of curve, area and the volume of material object to solve present mobile phone.
The objective of the invention is to be achieved through the following technical solutions.
A kind of mobile phone for measuring system, comprise CPU, microprocessor, acceleration transducer and algorithm memory, described acceleration transducer is connected with CPU by microprocessor, information for detection of the mobile phone operation, and by sending to CPU after microprocessor processes, CPU is connected with algorithm memory, and correspondence is called Measurement Algorithm, calculates according to above-mentioned operation information and obtains measurement result.
Preferably, the information of described detection of handset operation comprises the time of running orbit, translational speed and the mobile end of mobile phone.
Preferably, store the computational algorithm of curve, air line distance computational algorithm and area and volume size in described algorithm memory.
Preferably, this system also includes a display screen that is connected with CPU, is used for the measurement result that shows that calculating is obtained.
In addition, the present invention also provides a kind of mobile phone for measuring method, comprises step:
A, obtain the mobile phone operation information by acceleration transducer, and this information correspondence is sent to microprocessor;
B, microprocessor send to mobile phone CPU with this information correspondence;
C, mobile phone CPU correspondence are transferred the algorithm in algorithm memory, obtain measurement result by calculating;
D, will show that by the display screen correspondence result shows.
Preferably, comprise before steps A:
Write algorithm by CPU and mobile phone input unit correspondence in the algorithm memory.
Preferably, step B comprises:
The microprocessor information corresponding conversion of self-acceleration transducer in the future becomes digital signal, and correspondence sends to mobile phone CPU.
Preferably, the mobile phone operation information that obtains of described acceleration transducer comprises the time of running orbit, translational speed and the mobile end of mobile phone.
The present invention compared with prior art, beneficial effect is: mobile phone for measuring system and method provided by the invention, mobile phone is moved along the sideline of measured material object, utilization is arranged on the acceleration transducer in mobile phone, obtain mobile speed and time, can calculate length, utilize simultaneously this mode each limit of material object can be calculated, can calculate this volume in kind or area.The present invention have measurement effect accurately and fast, the advantage such as effective.
Description of drawings
Fig. 1 is system principle diagram of the present invention.
Fig. 2 is operation principle flow chart of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
See also shown in Figure 1ly, Fig. 1 is system principle diagram of the present invention.The present invention is to provide a kind of mobile phone for measuring system, be mainly used in solving the problem that present mobile phone can't be measured length of curve, area and the volume of material object.
Wherein this system includes CPU, microprocessor, acceleration transducer, algorithm memory, memory and display screen, described acceleration transducer is connected with CPU by microprocessor, for detection of the information of mobile phone operation, as time of running orbit, translational speed and the mobile end of mobile phone etc.; And by sending to CPU after microprocessor processes, CPU is connected with algorithm memory, memory, display screen, correspondence is called the Measurement Algorithm in algorithm memory, calculate according to above-mentioned operation information and obtain measurement result, simultaneously can be with this measurement result corresponding stored in memory, perhaps correspondence shows on display screen.
Wherein store the computational algorithm of curve, air line distance computational algorithm and area and volume size in algorithm memory.
Native system is take a rectangle rule object as example, and is corresponding mobile along three directions of length of this object with mobile phone, can measure the length length of this cuboid, can calculate its area according to the area computing formula; Can calculate its volume according to the volume computing formula.
Length computation as for length can be calculated acquisition according to traveling time and the translational speed of mobile phone.
Be more than to the explanation of mobile phone for measuring of the present invention system, be further described below in conjunction with 2 pairs of mobile phone for measuring methods of the present invention of accompanying drawing.
Shown in Figure 2, Fig. 2 is operation principle flow chart of the present invention.The present invention also provides a kind of mobile phone for measuring method, and it comprises that specifically step is as follows:
At first need to write algorithm by CPU and mobile phone input unit correspondence in the algorithm memory, wherein this algorithm includes distance, curve, area and volume scheduling algorithm, only need to obtain corresponding numerical value and can calculate and obtain.
A, obtain the mobile phone operation information by acceleration transducer, and this information correspondence is sent to microprocessor;
Wherein obtain by acceleration transducer the time of running orbit, curve or straight line, translational speed and mobile end that the mobile phone operation information includes but not limited to mobile phone, can corresponding calculate the distance of curve or straight line by above-mentioned data, the distance by many straight lines can calculate area or volume.
Here the data message that obtains in addition is all analog signal information, need to convert digital signal to and just can be identified processing.
B, microprocessor send to mobile phone CPU with this information correspondence;
The microprocessor information corresponding conversion of self-acceleration transducer in the future becomes digital signal, and correspondence sends to mobile phone CPU.
C, mobile phone CPU correspondence are transferred the algorithm in algorithm memory, obtain measurement result by calculating;
D, will show that by the display screen correspondence result shows.
Mobile phone for measuring system and method provided by the invention, mobile phone is moved along the sideline of measured material object, utilization is arranged on the acceleration transducer in mobile phone, obtain mobile speed and time, can calculate length, utilize simultaneously this mode each limit of material object can be calculated, can calculate this volume in kind or area.The present invention have measurement effect accurately and fast, the advantage such as effective.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.