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 the measurement of length of curve, area and the volume realized material object.
Background technology
Along with the development of science and technology, from strength to strength, different cell-phone functions every aspect in life all plays an important role the function of mobile phone.Can realize location to user as by mobile phone, can realize remote control to remote equipment, even can realize monitoring of health index etc., the difference in functionality of mobile phone brings the facility on different use to user.
Usually in life, can run into the situation of length of curve, area or the volume needing measurement one in kind, needing to use special survey tool in this case could realize, and for not carrying the user of specific purpose tool, then cannot measure, it is for user's quite inconvenience.
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, to solve the problem that current mobile phone cannot be measured the length of curve of material object, area and volume.
The object 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, for the information that detection of handset is run, and by sending to CPU after microprocessor processes, CPU is connected with algorithm memory, and correspondence calls Measurement Algorithm, calculates obtain measurement result according to above-mentioned operation information.
Preferably, the information that described detection of handset is run comprises the time of the running orbit of mobile phone, translational speed and mobile end.
Preferably, the computational algorithm of curve, air line distance computational algorithm and area and volume size is stored in described algorithm memory.
Preferably, this system also includes a display screen be connected with CPU, for showing the measurement result calculating and obtain.
In addition, present invention also offers a kind of mobile phone for measuring method, comprise step:
A, obtain mobile phone operation information by acceleration transducer, and this information correspondence is sent to microprocessor;
This information correspondence is sent to mobile phone CPU by B, microprocessor;
C, mobile phone CPU correspondence transfers the algorithm in algorithm memory, obtains measurement result by calculating;
D, by display screen correspondence display result is shown.
Preferably, comprise before steps A:
The corresponding write algorithm in algorithm memory by CPU and mobile phone input unit.
Preferably, step B comprises:
The information corresponding conversion of microprocessor acceleration sensor in future becomes digital signal, and correspondence sends to mobile phone CPU.
Preferably, the mobile phone operation information that described acceleration transducer obtains comprises the time of the running orbit of mobile phone, translational speed and mobile end.
The present invention compared with prior art, beneficial effect is: mobile phone for measuring system and method provided by the invention, the sideline of mobile phone along measured material object is moved, utilize the acceleration transducer be arranged in mobile phone, obtain speed and the time of movement, can length be calculated, utilize which each limit of material object can be calculated simultaneously, volume or the area of this material object can be calculated.The present invention have measurement effect accurately and fast, the advantage such as effective.
Accompanying drawing explanation
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 object of the present invention, technical scheme and advantage clearly understand, 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, be not intended to limit the present invention.
Refer to shown in Fig. 1, 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 current mobile phone cannot be measured the length of curve of material object, area and volume.
Wherein this system includes CPU, microprocessor, acceleration transducer, algorithm memory, memory and display screen, described acceleration transducer is connected with CPU by microprocessor, for the information that detection of handset is run, as the time etc. of the running orbit of mobile phone, translational speed and mobile end; And by sending to CPU after microprocessor processes, CPU is connected with algorithm memory, memory, display screen, correspondence calls the Measurement Algorithm in algorithm memory, calculate according to above-mentioned operation information and obtain measurement result, simultaneously can by this measurement result corresponding stored in memory, or correspondence shows on a 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 for a rectangle rule object, mobile along length three direction correspondences of this object with mobile phone, can measure the length length of this cuboid, can calculate its area according to areal calculation formula; Its volume can be calculated according to volume computing formula.
Length computation as length then can calculate according to the traveling time of mobile phone and translational speed and obtain.
Be more than the explanation to mobile phone for measuring system of the present invention, be further described below in conjunction with 2 pairs, accompanying drawing mobile phone for measuring method of the present invention.
Shown in Figure 2, Fig. 2 is operation principle flow chart of the present invention.Present invention also offers a kind of mobile phone for measuring method, it is as follows that it specifically comprises step:
First need the corresponding write algorithm in algorithm memory by CPU and mobile phone input unit, wherein this algorithm includes distance, curve, area and volume scheduling algorithm, and only needing to obtain corresponding numerical value can calculate acquisition.
A, obtain mobile phone operation information by acceleration transducer, and this information correspondence is sent to microprocessor;
Wherein obtain by acceleration transducer the time that mobile phone operation information includes but not limited to the running orbit of mobile phone, curve or straight line, translational speed and mobile end, corresponding can be calculated the distance of curve or straight line by above-mentioned data, then can calculate area or volume by the distance of many straight lines.
Here the data message obtained in addition is all analog signal information, needs to convert digital signal to and just can be identified process.
This information correspondence is sent to mobile phone CPU by B, microprocessor;
The information corresponding conversion of microprocessor acceleration sensor in future becomes digital signal, and correspondence sends to mobile phone CPU.
C, mobile phone CPU correspondence transfers the algorithm in algorithm memory, obtains measurement result by calculating;
D, by display screen correspondence display result is shown.
Mobile phone for measuring system and method provided by the invention, the sideline of mobile phone along measured material object is moved, utilize the acceleration transducer be arranged in mobile phone, obtain speed and the time of movement, length can be calculated, utilize which each limit of material object can be calculated simultaneously, volume or the area of this material object can be calculated.The present invention have measurement effect accurately and fast, the advantage such as effective.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.