CN103424096A - Method for measuring angles through mobile phone - Google Patents

Method for measuring angles through mobile phone Download PDF

Info

Publication number
CN103424096A
CN103424096A CN2012101533678A CN201210153367A CN103424096A CN 103424096 A CN103424096 A CN 103424096A CN 2012101533678 A CN2012101533678 A CN 2012101533678A CN 201210153367 A CN201210153367 A CN 201210153367A CN 103424096 A CN103424096 A CN 103424096A
Authority
CN
China
Prior art keywords
angle
sensor
axes
calibration
mobile phone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012101533678A
Other languages
Chinese (zh)
Inventor
员健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN2012101533678A priority Critical patent/CN103424096A/en
Publication of CN103424096A publication Critical patent/CN103424096A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method for measuring angles through a mobile phone. The method comprises the following steps that a G-Sensor senses the gravity and converts the gravity into a level signal to be output; when the angle of an object is measured, any angle side of the measured object is made to be placed in any plane of the G-Sensor and to be parallel to any axial direction of the G-Sensor, one angle edge of the object is parallel to a Y axis and is placed in a plane XOY, and at the moment, the output value of the X axis, the output value of the Y axis and the output value of the Z axis of the G-Sensor are Vx1, VY1 and VZ1 respectively; then, the G-Sensor is rotated to the other angle edge, the angle edge is kept to be parallel to a Y' axis and to be placed in a plane X'O'Y', and at the moment, the output value of the X axis, the output value of the Y axis and the output value of the Z axis of the G-Sensor are Vx2, VY2 and VZ2 respectively. The method for measuring the angles through the mobile phone greatly meets the measuring demands for object angles of engineers conveniently.

Description

Method by the mobile phone for measuring angle
Technical field
The present invention relates to the mobile phone application, relate in particular to a kind of by the method for mobile phone for measuring angle.
Background technology
Measure the multiplex inclinometer of object angle for the engineering staff and realize, this instrument is Portable belt and easily cause personal error not.Most mobile phones has collected at present the G-Sensor(gravity sensor) device, be limited to the switching aspect of interface, application program or contextual model more for the application of this device, and do not notice the application of G-Sensor device aspect engineering survey.According to the principle of induction of G-Sensor device, can be applied to engineering viewpoint fully and measure; Realize acquisition process, the demonstration to the G-Sensor device data by means of mobile phone.
Summary of the invention
In order to facilitate the problem of engineering staff's Quick Measurement object angle, the invention provides a kind of method that mobile phone takes measurement of an angle of crossing, its by mobile phone soon with measuring accurately the object angle, thereby can make the engineering viewpoint measurement be more prone to, and increase the practicality of mobile phone.
The present invention solves above-mentioned technical matters by following technical proposals: a kind of method of mobile phone for measuring angle of passing through, it is characterized in that, and it comprises the following steps:
G-Sensor sensor sensing gravity, and be translated into level signal output; When measuring the object angle, should by make in arbitrary plane of arbitrary arm of angle in the G-Sensor sensor of testee and with arbitrary axially parallel of G-Sensor sensor, object one arm of angle is parallel with Y-axis, and, in plane X OY, now the X, Y, Z axis output valve of G-Sensor sensor is respectively V X1, V Y1, V Z1Then the G-Sensor sensor is turned to another arm of angle of object, keep this arm of angle and this arm of angle parallel with the Y` axle in plane X `O`Y`, now the X, Y, Z axis output valve of G-Sensor sensor is respectively V X2, V Y2, V Z2
The G-Sensor sensor gravitational acceleration component that Y-axis is born after rotating a angle is g*sin a, and arbitrary axis is V to bearing what export under the effect of 1g acceleration; Can draw thus:
V x2=g*cos?a*V/g+V x1
V Y2=g*sin?a*V/g+V Y1
V Z1=V Z2
Release a=arccos[(V X2-V X1)/V],
a=arcsin[(V Y2-V Y1)/V];
Can using this axle as calibration of axes when the actual measurement angle, and when the G-Snesor sensor, when rotating with angle, plane YOZ should be parallel with surface level all the time; To cause measured deviation if plane YOZ and surface level are not parallel, be calibration of axes so should select the axle perpendicular to the angle plane when measuring, by read calibration of axes to value can judge that whether measured value effective.
Preferably, the described method by the mobile phone for measuring angle has the software end, and the process of software end is as follows:
Axially identification: because the G-Sensor sensor is integrated in interior of mobile phone, its slice direction user is difficult for knowing, and the G-Sensor sensor is axially closely related with its slice direction, therefore needs the software end to have axial recognition capability;
Axial identification step: by mobile phone just facing to operator and mobile phone perpendicular to surface level, then by mobile phone respectively with parallel water plane and operator, operation repetitive person and vertical water surface level, vertical operation person's axial rotation, software will be somebody's turn to do automatically axially to be bound with corresponding data channel;
Calibration of axes is selected: the selected principle that should defer to the vertical testee angle of calibration of axes plane of calibration of axes; When the testee angle is larger, can select calibration of axes and adopt acquiescence axially;
Software angle algorithm: selected calibration of axes is arranged: the calibration of axes value that will at every turn read and original calibrated axle value compare, and difference reads respectively two and measures the axle value in requiring error range, is designated as once and effectively reads; When valid data reach a fixed number, on average each is measured the valid data of axle and obtains the angle value, and the object of then two measurement axle gained angle values being done to average treatment takes measurement of an angle;
Acquiescence calibration of axes: repeatedly read three axial data and calculate each Axial changes, change minimum and axially be used as calibration of axes in rational change range; Residue is calculated with selected calibration of axes is arranged.
Positive progressive effect of the present invention is: the present invention utilizes the principle of induction of the G-Sensor device that on mobile phone there is collection, collection, computing by mobile phone base band chip to the G-Sensor device draw the object angle and show on LCD to have fast and accurate characteristics.
The accompanying drawing explanation
The schematic diagram that Fig. 1 is the G-sensor coordinate axis.
Fig. 2 is that G-sensor measures the angle principle schematic.
Fig. 3 is acceleration of gravity Y-axis component schematic diagram.
Fig. 4 is the software treatment scheme.
Software operating method
Processing is described in detail concrete software operation below in conjunction with software flow pattern, and the concrete components and parts of some that use in description or definition, only for description and interpretation the present invention, and are not used in restriction the present invention.
Concrete methods of realizing is as follows:
1, design concept:
1.1, the G-Sensor sensor can respond to gravity, and is translated into level signal output.The 3 axle G-Sensors of the design based on commonly used realize.Be illustrated in figure 1 the G-Sensor axial coordinate.When measuring the object angle, should by make in arbitrary plane of arbitrary arm of angle in G-Sensor of testee and with the arbitrary axially parallel of G-Sensor, as shown in Figure 2: object one arm of angle is parallel with Y-axis, and, in plane X OY, now the X, Y, Z axis output valve of G-Sensor is respectively V X1, V Y1, V Z1Then G-Sensor is turned to another arm of angle of object, keeping this arm of angle and this arm of angle parallel with the Y` axle is the coordinate after G-Sensor turns over a angle in plane X `O`Y`(X`, Y`, O`, Z`), now the X, Y, Z axis output valve of G-Sensor is respectively V X2, V Y2, V Z2.
The G-Sensor sensor gravitational acceleration component that Y-axis is born after rotating as shown in Figure 2 a angle is illustrated in figure 3 g*sin a, arbitrary axis to bear under the effect of 1g acceleration, export for V.Can draw thus:
V x2=g*cos?a*V/g+V x1
V Y2=g*sin?a*V/g+V Y1
V Z1=V Z2
Release a=arccos[(V X2-V X1)/V],
a=arcsin[(V Y2-V Y1)/V].
1.2, known by above-mentioned derivation: in the process of rotating, the weight component of G-Sensor sensor Z-axis direction does not become, so the level value of Z-axis direction does not change in theory.Can using this axle as calibration of axes when the actual measurement angle, as shown in Figure 2 when the G-Snesor device when rotating with angle, plane YOZ should be parallel with surface level all the time; To cause measured deviation if plane YOZ and surface level are not parallel, be calibration of axes so should select the axle perpendicular to the angle plane when measuring.By read calibration of axes to value can judge that whether measured value effective.
2, software is realized:
What as shown in Figure 4, the software end was mainly realized has: axially identification, calibration of axes are selected, software angle algorithm etc.
2.1, axially identification: because the G-Sensor device is integrated in interior of mobile phone, its slice direction user is difficult for knowing, and G-Sensor's is axially closely related with its slice direction, therefore needs the software end to have axial recognition capability.Axially recognition methods: by mobile phone just facing to operator and mobile phone perpendicular to surface level, then by mobile phone respectively with parallel water plane and operator, operation repetitive person and vertical water surface level, vertical operation person's axial rotation, can determine respectively Z, X, Y-axis (this is axially that agreement axially, shows that the actual chips regulation axially), software will be somebody's turn to do axially automatically to be bound with corresponding data channel.
2.2, calibration of axes is selected: the selected principle that should defer to the vertical testee angle of calibration of axes plane of calibration of axes.When the testee angle is larger, can select calibration of axes and adopt acquiescence axially.
2.3, software angle algorithm: selected calibration of axes is arranged: the calibration of axes value that will at every turn read and original calibrated axle value compare, and difference reads respectively two and measures the axle values in requiring error range, is designated as once and effectively reads.When valid data reach a fixed number, on average each is measured the valid data of axle and obtains the angle value, and the object of then two measurement axle gained angle values being done to average treatment takes measurement of an angle.
B, acquiescence calibration of axes: repeatedly read 3 axial data and calculate each Axial changes, change minimum and axially be used as calibration of axes in rational change range.Residue is calculated with selected calibration of axes is arranged.
Must in the function choosing-item menu, carry out measure setup before starting survey:
S1 carries out coordinate identification, and the meaning of coordinate identification is axially being associated with the data channel of G-Sensor of indicating;
The s2 calibration of axes is selected, and this axially must be perpendicular to plane, testee angle place.When the object angle is larger, can adopt acquiescence axially.
The s3 error is set, and this value is for judging the availability deciding of calibration of axes.
After above-mentioned setting completes, just can carry out the angle measurement:
A1 keeps vertical by the selected calibration of axes of mobile phone terminal with object angle measurement plane, makes by any measurement axle keeping parallelism of any arm of angle of angle and G-Sensor; Then click and start button, software starts timer automatically, the processing of complete calibration of axes in the section of fixing time, measuring the axle value.
After the a2 timer stops, prompting operation person completes original data processing, can carry out the next item down operation.
A3 rotates the another side to angle by mobile phone, makes the selected calibration of axes of mobile phone terminal keep vertical with object angle measurement plane simultaneously, and requires by any measurement axle keeping parallelism of any arm of angle of angle and G-Sensor.3 axial numerical value change that the software end detects data in the reasonable scope the time, restart timer, start to carry out the valid data collection.
After the a4 timer stops, judgement does not collect valid data or collects valid data while being less than stated number in timing, and prompting operation person re-executes operation 3.Otherwise it is calculated that angle and show.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, under the prerequisite that does not deviate from principle of the present invention and essence, can make various changes or modifications to these embodiments.Therefore, protection scope of the present invention is limited by appended claims.

Claims (2)

1. one kind is passed through the method for mobile phone for measuring angle, it is characterized in that, it comprises the following steps:
G-Sensor sensor sensing gravity, and be translated into level signal output; When measuring the object angle, should by make in arbitrary plane of arbitrary arm of angle in the G-Sensor sensor of testee and with arbitrary axially parallel of G-Sensor sensor, object one arm of angle is parallel with Y-axis, and, in plane X OY, now the X, Y, Z axis output valve of G-Sensor sensor is respectively V X1, V Y1, V Z1Then the G-Sensor sensor is turned to another arm of angle of object, keep this arm of angle and this arm of angle parallel with the Y` axle in plane X `O`Y`, now the X, Y, Z axis output valve of G-Sensor sensor is respectively V X2, V Y2, V Z2
The G-Sensor sensor gravitational acceleration component that Y-axis is born after rotating a angle is g*sin a, and arbitrary axis is V to bearing what export under the effect of 1g acceleration; Can draw thus:
V x2=g*cos?a*V/g+V x1
V Y2=g*sin?a*V/g+V Y1
V Z1=V Z2
Release a=arccos[(V X2-V X1)/V],
a=arcsin[(V Y2-V Y1)/V];
Can using this axle as calibration of axes when the actual measurement angle, and when the G-Snesor sensor, when rotating with angle, plane YOZ should be parallel with surface level all the time; To cause measured deviation if plane YOZ and surface level are not parallel, be calibration of axes so should select the axle perpendicular to the angle plane when measuring, by read calibration of axes to value can judge that whether measured value effective.
2. the method for mobile phone for measuring angle of passing through according to claim 1, is characterized in that, the described method by the mobile phone for measuring angle has the software end, and the process of software end is as follows:
Axially identification: because the G-Sensor sensor is integrated in interior of mobile phone, its slice direction user is difficult for knowing, and the G-Sensor sensor is axially closely related with its slice direction, therefore needs the software end to have axial recognition capability;
Axial identification step: by mobile phone just facing to operator and mobile phone perpendicular to surface level, then by mobile phone respectively with parallel water plane and operator, operation repetitive person and vertical water surface level, vertical operation person's axial rotation, software will be somebody's turn to do automatically axially to be bound with corresponding data channel;
Calibration of axes is selected: the selected principle that should defer to the vertical testee angle of calibration of axes plane of calibration of axes; When the testee angle is larger, can select calibration of axes and adopt acquiescence axially;
Software angle algorithm: selected calibration of axes is arranged: the calibration of axes value that will at every turn read and original calibrated axle value compare, and difference reads respectively two and measures the axle value in requiring error range, is designated as once and effectively reads; When valid data reach a fixed number, on average each is measured the valid data of axle and obtains the angle value, and the object of then two measurement axle gained angle values being done to average treatment takes measurement of an angle;
Acquiescence calibration of axes: repeatedly read three axial data and calculate each Axial changes, change minimum and axially be used as calibration of axes in rational change range; Residue is calculated with selected calibration of axes is arranged.
CN2012101533678A 2012-05-17 2012-05-17 Method for measuring angles through mobile phone Pending CN103424096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101533678A CN103424096A (en) 2012-05-17 2012-05-17 Method for measuring angles through mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101533678A CN103424096A (en) 2012-05-17 2012-05-17 Method for measuring angles through mobile phone

Publications (1)

Publication Number Publication Date
CN103424096A true CN103424096A (en) 2013-12-04

Family

ID=49649201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101533678A Pending CN103424096A (en) 2012-05-17 2012-05-17 Method for measuring angles through mobile phone

Country Status (1)

Country Link
CN (1) CN103424096A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103792382A (en) * 2014-01-23 2014-05-14 深圳市道通科技有限公司 Rotation speed measuring method and device
CN103822597A (en) * 2014-03-18 2014-05-28 重庆交通大学 Method for measuring area of road pit by virtue of mobile communication equipment
CN106125160A (en) * 2016-06-14 2016-11-16 重庆蓝岸通讯技术有限公司 Automatically the system and method in gravity sensor direction is calibrated
CN107741761A (en) * 2017-10-19 2018-02-27 广东欧珀移动通信有限公司 Method, apparatus, terminal and the storage medium of measurement angle
DE102017213555A1 (en) * 2017-08-04 2019-02-07 Siemens Aktiengesellschaft An apparatus and method for location-based location of a location on a surface of an object
CN111323046A (en) * 2018-12-14 2020-06-23 千寻位置网络有限公司 Testing method and testing device for determining axial direction of high-precision positioning original chip

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09329437A (en) * 1996-06-10 1997-12-22 Matsushita Electric Ind Co Ltd Inclination angle detecting device
KR20070025316A (en) * 2005-09-01 2007-03-08 삼성전자주식회사 Method for image processing, apparatus and information storage medium storing image information therefor
CN101960255A (en) * 2008-02-28 2011-01-26 京瓷株式会社 Compact electronic device with built-in inclination sensor and correction method
CN101998047A (en) * 2009-08-25 2011-03-30 鸿富锦精密工业(深圳)有限公司 Method and system for regulating horizontal position in camera
CN102200437A (en) * 2010-03-24 2011-09-28 英华达(南京)科技有限公司 Method for measuring plane inclination angle by using mobile communication apparatus
CN102353351A (en) * 2011-06-28 2012-02-15 惠州Tcl移动通信有限公司 Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09329437A (en) * 1996-06-10 1997-12-22 Matsushita Electric Ind Co Ltd Inclination angle detecting device
KR20070025316A (en) * 2005-09-01 2007-03-08 삼성전자주식회사 Method for image processing, apparatus and information storage medium storing image information therefor
CN101960255A (en) * 2008-02-28 2011-01-26 京瓷株式会社 Compact electronic device with built-in inclination sensor and correction method
CN101998047A (en) * 2009-08-25 2011-03-30 鸿富锦精密工业(深圳)有限公司 Method and system for regulating horizontal position in camera
CN102200437A (en) * 2010-03-24 2011-09-28 英华达(南京)科技有限公司 Method for measuring plane inclination angle by using mobile communication apparatus
CN102353351A (en) * 2011-06-28 2012-02-15 惠州Tcl移动通信有限公司 Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋瑞挺: "基于加速度传感器的倾角测量", 《电子制作》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103792382A (en) * 2014-01-23 2014-05-14 深圳市道通科技有限公司 Rotation speed measuring method and device
CN103822597A (en) * 2014-03-18 2014-05-28 重庆交通大学 Method for measuring area of road pit by virtue of mobile communication equipment
CN103822597B (en) * 2014-03-18 2016-05-04 重庆交通大学 A kind of method of utilizing mobile communication equipment to carry out road hole hole area measurement
CN106125160A (en) * 2016-06-14 2016-11-16 重庆蓝岸通讯技术有限公司 Automatically the system and method in gravity sensor direction is calibrated
DE102017213555A1 (en) * 2017-08-04 2019-02-07 Siemens Aktiengesellschaft An apparatus and method for location-based location of a location on a surface of an object
US11010918B2 (en) 2017-08-04 2021-05-18 Siemens Energy Global GmbH & Co. KG Apparatus and method for angle-based localization of a position on a surface of an object
CN107741761A (en) * 2017-10-19 2018-02-27 广东欧珀移动通信有限公司 Method, apparatus, terminal and the storage medium of measurement angle
CN107741761B (en) * 2017-10-19 2020-04-17 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for measuring angle
CN111323046A (en) * 2018-12-14 2020-06-23 千寻位置网络有限公司 Testing method and testing device for determining axial direction of high-precision positioning original chip
CN111323046B (en) * 2018-12-14 2022-04-26 千寻位置网络有限公司 Testing method and testing device for determining axial direction of high-precision positioning original chip

Similar Documents

Publication Publication Date Title
CN103424096A (en) Method for measuring angles through mobile phone
CN107462148B (en) A kind of door state detection method and device
CN104639732B (en) A kind of automatic electronic equipment and method for lighting screen
CN103674114B (en) A kind of green building comprehensive detection device based on Zigbee
CN104360734B (en) A kind of method of terminal operation
CN105596006B (en) A kind of height measurement method, device and the electronic equipment with acquisition device
CN104197934B (en) A kind of localization method based on earth magnetism, apparatus and system
CN102901473A (en) Correction system and method for measuring coordinate
CN106527764A (en) Judgment method and system for rotation fall of electronic terminal and electronic terminal
CN105243787B (en) A kind of Falls in Old People warning system, alarm method and alarm
KR20120107439A (en) Method and system for a self-calibrated multi-magnetometer platform
KR101920306B1 (en) Apparatus and method of measuring amount of exercise using mobile device
CN103546605B (en) A kind of have the mobile terminal and measuring method thereof of measuring length function
CN107153454A (en) The method and mobile device calibrated with sensor time
CN103246431B (en) A kind of regulation screen display direction method, Apparatus and system
CN106525330A (en) Calibration control method of pressure sensor
CN204064233U (en) A kind of rotation angle measurement instrument and electronic equipment
Hongman et al. Acceleration and orientation multisensor pedometer application design and implementation on the android platform
CN110119526A (en) A method of floor plan drafting is carried out using mobile phone
CN101201247B (en) Measuring tool
CN109085414A (en) Voltage detection method and device
CN104517278B (en) Portable device with foot shape identification and foot shape identification method
CN102377864A (en) Mobile phone motion detection method based on acceleration sensor
TWM538518U (en) Simplified road flatness inspection device
CN110068293A (en) Length-measuring appliance and method for measuring length

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204