CN104406542A - Method, device and equipment for detecting rotary angle - Google Patents

Method, device and equipment for detecting rotary angle Download PDF

Info

Publication number
CN104406542A
CN104406542A CN201410653307.1A CN201410653307A CN104406542A CN 104406542 A CN104406542 A CN 104406542A CN 201410653307 A CN201410653307 A CN 201410653307A CN 104406542 A CN104406542 A CN 104406542A
Authority
CN
China
Prior art keywords
infrared
intensity value
infrared intensity
rotation
anglec
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.)
Granted
Application number
CN201410653307.1A
Other languages
Chinese (zh)
Other versions
CN104406542B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410653307.1A priority Critical patent/CN104406542B/en
Publication of CN104406542A publication Critical patent/CN104406542A/en
Application granted granted Critical
Publication of CN104406542B publication Critical patent/CN104406542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention is suitable for the detecting technical field and provides a method, a device and equipment for detecting a rotary angle. The method comprises the following steps of: obtaining an infrared intensity value collected by an infrared receiving tube if an angle detecting order is received in a rotary process of the rotary device; obtaining the rotary angle corresponding to the collected infrared intensity value from a mapping relationship table of the pre-stored infrared intensity value and the rotary angle. The method is used for realizing the detecting of the rotary angle; moreover, the method is used for judging the rotary angle by judging the received infrared ray intensity, not affected by the external environment, so that the accuracy of the rotary angle detecting is improved.

Description

Rotation angle detecting method, device and equipment
Technical field
The invention belongs to detection technique field, particularly relate to a kind of rotation angle detecting method, device and equipment.
Background technology
Existing whirligig is generally all provided with magnet, and in the process that whirligig rotates, will drive magnet rotors, magnet rotors will cause magnetic field intensity to change.Whether the magnetic field intensity that prior art detects magnet by Hall element changes, thus can determine whether described whirligig rotates.
But, because Hall element is easily subject to the interference of external magnetic field, the accuracy rate that impact detects; And Hall element can only detect two states of whirligig, namely rotate and non rotating, and the concrete angle of whirligig rotation cannot be detected.
Summary of the invention
Given this, the embodiment of the present invention provides a kind of rotation angle detecting method, device and equipment, to detect the anglec of rotation of whirligig and to improve the accuracy rate of anglec of rotation detection.
First aspect, provides a kind of rotation angle detecting method, and described method comprises:
In the process that whirligig rotates, if receive angle to detect instruction, obtain the infrared intensity value that infrared receiving tube collects;
The anglec of rotation corresponding with the infrared intensity value collected is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored.
Further, the infrared intensity value that described acquisition infrared receiving tube collects specifically comprises:
By infrared transmitting tube by infrared emitting on the reflecting plate of described whirligig, with in the rotary course of described whirligig, by described reflecting plate by described infrared reflection give described infrared receiving tube;
The ultrared infrared intensity value received is obtained from described infrared receiving tube.
Further, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle; Or
Described whirligig is cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
Further, the described infrared intensity value from prestoring with obtain the anglec of rotation corresponding with the infrared intensity value collected the mapping relations table of the anglec of rotation and be specially:
Judge whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table;
If so, the anglec of rotation corresponding with described infrared intensity value is obtained;
Otherwise, obtain two infrared intensity values adjacent with collected infrared intensity value in mapping relations table, calculate the mean value of adjacent infrared intensity value;
Judge that the infrared intensity value collected is the mean value equaling described adjacent infrared intensity value;
If the infrared intensity value collected equals the mean value of described adjacent infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value;
If the infrared intensity value collected is not equal to the mean value of described adjacent infrared intensity value, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding; When collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
Second aspect, provides a kind of rotation angle detection apparatus, and described device comprises:
First acquisition module, in the process that rotates at whirligig, if receive angle to detect instruction, obtains the infrared intensity value that infrared receiving tube collects;
Second acquisition module, for obtaining the anglec of rotation corresponding with the infrared intensity value collected from the infrared intensity value prestored with the mapping relations table of the anglec of rotation.
Further, described first acquisition module specifically for;
By infrared transmitting tube by infrared emitting on the reflecting plate of described whirligig, with in the rotary course of described whirligig, by described reflecting plate by described infrared reflection give described infrared receiving tube;
The ultrared infrared intensity value received is obtained from described infrared receiving tube.
Further, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle; Or
Described whirligig is cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
Further, described second acquisition module specifically comprises:
Judging unit, for judging whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table;
Acquiring unit, for when the judged result of judge module is for being, obtains the anglec of rotation corresponding with described infrared intensity value;
Described acquiring unit also for, when the judged result of judge module is no, obtains two infrared intensity values adjacent with collected infrared intensity value in mapping relations tables, calculate the mean value of adjacent infrared intensity value;
Described judging unit also for, judge that the infrared intensity value that collects is the mean value equaling described adjacent infrared intensity value;
Described acquiring unit also for, the mean value of described adjacent infrared intensity value is equaled in collected infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value;
The mean value of described adjacent infrared intensity value is not equal in collected infrared intensity value, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding; When collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
The third aspect, provide a kind of anglec of rotation monitoring equipment, described equipment comprises:
Processor, driver, infrared emission tube, infrared receiver tube and whirligig;
Described processor is connected with described driver;
Described driver is connected with infrared receiving tube with described infrared transmitting tube respectively;
Described whirligig is arranged on mobile terminals, can rotate relative to described mobile terminal around own torque; Described whirligig is provided with reflecting plate; Described infrared transmitting tube and infrared receiving tube are disposed in parallel in described mobile terminal main body, and just to the reflecting surface of described reflecting plate;
Described processor is used for, and sends instruction to start infrared emission tube and infrared receiver tube to driver;
Described reflecting plate is used for, and in the process that whirligig rotates, the infrared reflection launched by infrared transmitting tube is to infrared receiving tube;
Described infrared receiving tube is used for, and receives the infrared ray of described baffle reflection, and the ultrared intensity level of reflection is sent to processor by driver.
Further, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle;
Or described whirligig is cylindrical, described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
Compared with prior art, infrared transmitting tube and infrared receiving tube are applied to the detection anglec of rotation by the embodiment of the present invention; In the process that whirligig rotates, if receive angle to detect instruction, then obtain the infrared intensity value that infrared receiving tube collects; The anglec of rotation corresponding with the infrared intensity value obtained is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored; Thus the detection achieved the anglec of rotation; Because the embodiment of the present invention is by judging that the infra-red intensity received judges the anglec of rotation, not being vulnerable to the interference of external environment, improve the accuracy that the anglec of rotation detects.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the composition structural drawing of the anglec of rotation checkout equipment that the embodiment of the present invention one provides;
Fig. 2 is the first schematic diagram of the expelling plate that the embodiment of the present invention one provides;
Fig. 3 is that on four diverse locations providing of the embodiment of the present invention one, reflecting plate can the area of reflects infrared light;
Fig. 4 is the second schematic diagram of the expelling plate that the embodiment of the present invention one provides;
Fig. 5 is the first realization flow figure of the rotation angle detecting method that the embodiment of the present invention two provides;
Fig. 6 is the specific implementation flow process of step S502 in the anglec of rotation monitoring method that provides of the embodiment of the present invention two;
Fig. 7 is the response curve between the reflecting plate displacement that records of experiment that the embodiment of the present invention two provides and infrared intensity value and the reflecting plate displacement after equivalence and the response curve between infrared intensity value;
Fig. 8 is the composition structural drawing of the rotation angle detection apparatus that the embodiment of the present invention three provides.
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.
Infrared transmitting tube and infrared receiving tube are applied to the detection anglec of rotation by the embodiment of the present invention; In the process that whirligig rotates, if receive angle to detect instruction, then obtain the infrared intensity value that infrared receiving tube collects; The anglec of rotation corresponding with the infrared intensity value obtained is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored; Thus the detection achieved the anglec of rotation; Because the embodiment of the present invention is by judging that the infra-red intensity received judges the anglec of rotation, not being vulnerable to the interference of external environment, improve the accuracy that the anglec of rotation detects.The embodiment of the present invention additionally provides corresponding rotation angle detection apparatus and equipment, is described in detail respectively below.
embodiment one
Fig. 1 illustrates the composition structure of the anglec of rotation checkout equipment that the embodiment of the present invention one provides, and for convenience of explanation, illustrate only part related to the present invention.
In embodiments of the present invention, described anglec of rotation checkout equipment comprises:
Processor 11, driver 12, infrared emission tube 13, infrared receiver tube 14 and whirligig 15.
Described processor 11 is connected with described driver 12;
Described driver 12 is connected with infrared receiving tube 14 with described infrared transmitting tube 13 respectively;
Described whirligig 15 is arranged on fixed mechanism, can rotate relative to described fixed mechanism around own torque; Described whirligig 15 is provided with reflecting plate 16; Described infrared transmitting tube 13 and infrared receiving tube 14 are disposed in parallel in described fixed mechanism main body, and just to the reflecting surface of described reflecting plate 16.
Exemplarily, described fixed mechanism is mobile terminal.Then described whirligig 15 arranges on mobile terminals, can rotate relative to described mobile terminal around own torque; Described whirligig 15 is provided with reflecting plate 16, and described infrared transmitting tube 13 and infrared receiving tube 14 are arranged in mobile terminal main body, and just to the surface of emission of described reflecting plate 16.
Described processor 11 for, to driver send instruction to start infrared emission tube and infrared receiver tube.
Described reflecting plate 16 for, whirligig rotate process in, by infrared transmitting tube launch infrared reflection to infrared receiving tube.
Described infrared receiver tube 14 for, receive the infrared ray of described baffle reflection, and by reflection ultrared intensity level send to processor by driver.
In embodiments of the present invention, described whirligig is preferably cylindrical, and it can arrange camera, to realize the detection to rotation angle of camera, and the such as mobile terminal camera anglec of rotation.
In order to the infra-red intensity value realizing returning by detecting infrared receiving tube detects the angle of rotation, when whirligig rotates to different angles on reflecting plate can the area of reflects infrared light not identical, therefore, in the embodiment of the present invention, described reflecting plate has the shape and specific setting position determined.
Exemplarily, described reflecting plate can be arranged on the side surface of whirligig, and its plane outspread drawing is triangle, as shown in Figure 2.And described infrared transmitting tube 13 and infrared receiving tube 14 are set up in parallel, and just to the reflecting surface of described reflecting plate 16.Wherein, the outboard profile that (a) in Fig. 2 is whirligig, (b) is for whirligig is perpendicular to the sectional view of rotating shaft.As can be seen from Figure 2, plane outspread drawing due to reflecting plate is triangle, therefore when whirligig rotates along rotating shaft, rotate on each different position, reflecting plate can the area of reflects infrared light be not identical, the amount of the infrared light that infrared receiving tube is received also is not identical, thus the angle that can rotate according to the intensity level determination whirligig of infrared light.Fig. 3 shows reflecting plate on four different positions can the area of reflects infrared light.Wherein, triangle is reflecting plate, the large circular infrared light for infrared transmitting tube transmitting, and large part that is circular and triangle intersections is the infrared light area that reflecting plate can reflect.
Preferably, described reflecting plate can be arranged on (namely with on the bottom surface of cross-section parallel) on the whirligig side vertical with rotating shaft, and its shape is crescent, as shown in Figure 4.And described infrared transmitting tube 13 and infrared receiving tube 14 are set up in parallel, and just to the reflecting surface of described reflecting plate 16.Wherein, the outboard profile that (a) in Fig. 4 is whirligig, (b) is for whirligig is perpendicular to the sectional view of rotating shaft.As can be seen from Figure 4, plane outspread drawing due to reflecting plate is crescent, therefore when whirligig rotates along rotating shaft, rotate on each different position, reflecting plate can the area of reflects infrared light be not identical, the amount of the infrared light that infrared receiving tube is received also is not identical, thus the angle that can rotate according to the intensity level determination whirligig of infrared light.
embodiment two
Fig. 5 shows the realization flow of the rotation angle detecting method that the embodiment of the present invention two provides, and for convenience of explanation, illustrate only part related to the present invention.
In the present embodiment, described method is applied to the anglec of rotation checkout equipment described in Fig. 1 embodiment.
As shown in Figure 5, described method comprises:
In step S501, in the process that whirligig rotates, if receive angle to detect instruction, obtain the infrared intensity value that infrared receiving tube collects.
In the present embodiment, refer to when described angle detects instruction and detect the deviation angle of whirligig current location relative to 0 ° of position.It is the instruction (instruction that the function key such as having detection anglec of rotation function by click on mobile terminal display screen sends) that user inputs or the instruction triggered according to the time interval of presetting that described angle detects instruction.
If get angle to detect instruction, then detect instruction according to described angle and send driving instruction to driver, launch infrared light to start infrared transmitting tube and start infrared receiving tube reception infrared light.
Described infrared transmitting tube launches infrared light to whirligig, and infrared light reflection projected thereon goes back by the reflecting plate on whirligig, and infrared receiving tube receives this infrared light reflected.Described whirligig is preferably cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is meniscate; Or described reflecting plate is arranged on the side surface of whirligig, its plane outspread drawing is triangle, thus when whirligig is rotated along rotating shaft, rotate on each different position, reflecting plate can the area of reflects infrared light be not identical, and the amount of the infrared light that infrared receiving tube is received also is not identical.
In step S502, obtain the anglec of rotation corresponding with the infrared intensity value collected from the infrared intensity value prestored with the mapping relations table of the anglec of rotation.
In embodiments of the present invention, in advance each whirligig and angle sensing device are measured, to obtain the corresponding relation between angle that infra-red intensity value received by infrared receiving tube and whirligig rotate, the mapping relations table of obtained infrared intensity value and the anglec of rotation.Exemplarily, the anglec of rotation of whirligig corresponding when the infra-red intensity value that embodiment of the present invention definition infrared receiving tube receives is 0 is 0 °.Then the angle of whirligig often increases the default number of degrees (such as often increase by 5 °), then detect the infra-red intensity value that infrared receiving tube receives, and carry out record in table form; Until the angle of whirligig is 360 °, thus obtain the mapping relations table of infrared intensity value and the anglec of rotation, and store the mapping relations table of described infrared intensity value and the anglec of rotation.
After getting the infrared intensity value that infrared receiving tube receives, each the infrared intensity value in the mapping relations table of gathered infrared intensity value and the infrared intensity value prestored and the anglec of rotation is compared.When the infrared intensity value that described infrared intensity value is identical with the infrared intensity value existed in the mapping relations table of the anglec of rotation Yu collect, obtain the anglec of rotation corresponding with described infrared intensity value, the anglec of rotation corresponding to described and described infrared intensity value is the anglec of rotation corresponding to collected infrared intensity value, thus can obtain the deviation angle of the current present position of whirligig relative to 0 °.Otherwise, in described infrared intensity value with when there is not the infrared intensity value identical with collected infrared intensity value in the mapping relations table of the anglec of rotation, then calculate the anglec of rotation corresponding to collected infrared intensity value according to the mode preset.Described default mode will be described in detail in subsequent embodiment, specifically refer to subsequent embodiment.
Preferably, after obtaining the anglec of rotation corresponding with collected infrared intensity value, described method also comprises:
Show the described anglec of rotation.
The anglec of rotation corresponding for described and collected infrared intensity value is presented on the display screen of mobile terminal, thus makes user can know the anglec of rotation that whirligig is current in real time.
In embodiments of the present invention, infrared transmitting tube and infrared receiving tube are applied to the detection anglec of rotation; If in the process that whirligig rotates, if receive angle to detect instruction, then obtain the infrared intensity value that infrared receiving tube collects; The anglec of rotation corresponding with the infrared intensity value collected is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored; Thus the detection achieved the anglec of rotation; Because the embodiment of the present invention is by judging that the infra-red intensity received judges the anglec of rotation, not being vulnerable to the impact of external environment, improve the accuracy that the anglec of rotation detects.
Fig. 6 shows the specific implementation flow process of step S302 in the rotation angle detecting method that the embodiment of the present invention two provides.
As shown in Figure 6, step S502 comprises:
In step S601, judge whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table.
In the present embodiment, each the infrared intensity value in the mapping relations table of gathered infrared intensity value and the infrared intensity value that prestores and the anglec of rotation is compared.If when there is the infrared intensity value identical with gathered infrared intensity value in mapping relations table, perform step S602; Otherwise, perform step S603.
In step S602, obtain the anglec of rotation corresponding with described infrared intensity value.
In step S603, obtain two infrared intensity values adjacent with collected infrared intensity value in mapping relations table, calculate the mean value of adjacent infrared intensity value.
In step s 604, the infrared intensity value that judgement collects is the mean value equaling described adjacent infrared intensity value.
In the present embodiment, by getting the mean value of adjacent infrared intensity value, thus can by the precision refinement again of the infrared intensity value in mapping relations table.Again judge whether the infrared intensity value collected equals the mean value of adjacent infrared intensity value.When judged result is for being, then perform step S605; Otherwise, perform step S606
In step s 605, obtain the anglec of rotation corresponding to two adjacent infrared intensity values respectively, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value.
Fig. 7 shows and tests the response curve between the reflecting plate displacement that records and infrared intensity value and the reflecting plate displacement after equivalence and response curve, reflecting plate displacement and anglec of rotation one_to_one corresponding between infrared intensity value.Response curve between the reflecting plate displacement obtained for experiment test from (a) Fig. 7 and infrared intensity value, (b) in Fig. 7 is the response curve between the reflecting plate displacement after equivalence and infrared intensity value, horizontal ordinate represents reflecting plate displacement, and ordinate represents infrared intensity value.According to the isoeffect curve of (b) in Fig. 7, can be divided into three sections of functions between reflecting plate displacement and infrared intensity value, when reflecting plate displacement is 0 to 5 millimeters, infrared intensity value is 0; When reflecting plate displacement is 5 millimeters to 1.8 millimeters, infrared intensity value and reflecting plate displacement present linear relationship; When reflecting plate displacement is greater than 1.8 millimeters, infrared intensity value is with fixed value.Therefore, also present between the anglec of rotation to infrared intensity value and above-mentioned similar linear relationship.Certainly, response curve shown in Fig. 7 is only the response curve of the concrete anglec of rotation checkout equipment of of the embodiment of the present invention, other anglec of rotation checkout equipments have the response curve similar to Fig. 7 variation tendency, and Fig. 7 is only for illustration of the linear relationship between the anglec of rotation and infrared intensity value with linear segmented.In view of the response curve shown in Fig. 7, the embodiment of the present invention is when collected infrared intensity value equals the mean value of described infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is collected infrared intensity value corresponding rotation angle.
In step S606, judge whether the infrared intensity value collected is greater than the mean value of described adjacent infrared intensity value.
When judged result is for being, then perform step S607; Otherwise, perform step S608.
In step S607, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding.
In step S608, when collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
With crossing above-mentioned steps, when the infrared intensity value that infrared intensity value is identical with the infrared intensity value existed in mapping relations table Yu collect, then directly obtain the anglec of rotation identical with described infrared intensity value; Otherwise, by getting the infrared intensity value adjacent with collected infrared intensity value, and then average, can the precision of refinement infrared intensity value further; And determine the anglec of rotation corresponding with gathered infrared intensity value according to gathered infrared intensity value with the magnitude relationship between described mean value, further increase the accuracy of the obtained anglec of rotation, it also avoid founding mathematical models simultaneously.When in the mapping relations table of infrared intensity value and the anglec of rotation, the precision of infrared intensity value and the anglec of rotation is all very little, the anglec of rotation obtained by said method is more accurate.
embodiment three
Fig. 8 shows the composition structure of the rotation angle detection apparatus that the embodiment of the present invention three provides, and for convenience of explanation, illustrate only part related to the present invention.
In embodiments of the present invention, described device is for realizing rotation angle detecting method as shown in Figure 4 and Figure 6.It can be the unit being built in the software unit of mobile terminal, hardware cell or software and hardware combining.Described mobile terminal includes but not limited to mobile phone, panel computer, notebook computer etc.
As shown in Figure 8, described device comprises:
First acquisition module 81, in the process that rotates at whirligig, if receive angle to detect instruction, obtains the infrared intensity value that infrared receiving tube collects;
Second acquisition module 82, for obtaining the anglec of rotation corresponding with the infrared intensity value collected from the infrared intensity value prestored with the mapping relations table of the anglec of rotation.
Further, described first acquisition module 81 specifically for;
By infrared transmitting tube by infrared emitting on the reflecting plate of described whirligig, with in the rotary course of described whirligig, by described reflecting plate by described infrared reflection give described infrared receiving tube;
The ultrared infrared intensity value received is obtained from described infrared receiving tube.
Exemplarily, device described in the present embodiment comprises an anglec of rotation checkout equipment device, and described equipment comprises processor, driver, infrared emission tube, infrared receiver tube and whirligig.
Described whirligig is arranged on mobile terminals, can rotate relative to described mobile terminal around own torque.Described whirligig is provided with reflecting plate; Described infrared transmitting tube and infrared receiving tube are disposed in parallel in described mobile terminal main body, and just to the reflecting surface of described reflecting plate.
In embodiments of the present invention, described reflecting plate is used in the process rotated at whirligig, and the infrared reflection launched by infrared transmitting tube is to infrared receiving tube.
Described infrared transmitting tube launches infrared light to whirligig, and infrared light reflection projected thereon goes back by the reflecting plate on whirligig, the infrared light reflected described in infrared receiving tube receives.Described whirligig is preferably cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent; Or described reflecting plate is arranged on the side surface of whirligig, its plane outspread drawing is triangle; Thus when whirligig is rotated along rotating shaft, rotating on each different position, reflecting plate can the area of reflects infrared light be not identical, and the amount of the infrared light that infrared receiving tube is received also is not identical.The embodiment of the present invention is tested in advance and is obtained the infrared intensity value that the anglec of rotation of whirligig and the infrared receiving tube corresponding with it receive, with the mode record of form this infrared intensity value and anglec of rotation, thus obtain the mapping relations table of infrared intensity value and the anglec of rotation.Be stored in the mapping relations table of described infrared intensity value and the anglec of rotation, thus directly can therefrom obtain the anglec of rotation corresponding with obtained infrared intensity value during the anglec of rotation of subsequent detection whirligig, improve the detection efficiency of the anglec of rotation.
Further, described second acquisition module 82 specifically comprises:
Judging unit 821, for judging whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table;
Acquiring unit 822, for when the judged result of judge module is for being, obtains the anglec of rotation corresponding with described infrared intensity value;
Described acquiring unit 821 also for, when the judged result of judge module is no, obtains two infrared intensity values adjacent with collected infrared intensity value in mapping relations tables, calculate the mean value of adjacent infrared intensity value;
Described judging unit 822 also for, judge that the infrared intensity value that collects is the mean value equaling described adjacent infrared intensity value;
Described acquiring unit 821 also for, the mean value of described adjacent infrared intensity value is equaled in collected infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value;
The mean value of described adjacent infrared intensity value is not equal in collected infrared intensity value, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding; When collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
Preferably, after obtaining the anglec of rotation corresponding with obtained infrared intensity value, described device also comprises display module, for showing the described anglec of rotation.
The anglec of rotation corresponding for described and collected infrared intensity value is presented on the display screen of mobile terminal, thus makes user can know the anglec of rotation that whirligig is current in real time.
In embodiments of the present invention, infrared transmitting tube and infrared receiving tube are applied to the detection anglec of rotation; If in the process that whirligig rotates, if receive angle to detect instruction, then obtain the infrared intensity value that infrared receiving tube collects; The anglec of rotation corresponding with the infrared intensity value collected is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored; Thus the detection achieved the anglec of rotation; Because the embodiment of the present invention is by judging that the infra-red intensity received judges the anglec of rotation, not being vulnerable to the impact of external environment, improve the accuracy that the anglec of rotation detects.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention.Such as, modules is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional module, also just for the ease of mutual differentiation, is not limited to protection scope of 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.

Claims (10)

1. a rotation angle detecting method, is characterized in that, described method comprises:
In the process that whirligig rotates, if receive angle to detect instruction, obtain the infrared intensity value that infrared receiving tube collects;
The anglec of rotation corresponding with the infrared intensity value collected is obtained with the mapping relations table of the anglec of rotation from the infrared intensity value prestored.
2. rotation angle detecting method as claimed in claim 1, it is characterized in that, the infrared intensity value that described acquisition infrared receiving tube collects specifically comprises:
By infrared transmitting tube by infrared emitting on the reflecting plate of described whirligig, with in the rotary course of described whirligig, by described reflecting plate by described infrared reflection give described infrared receiving tube;
The ultrared infrared intensity value received is obtained from described infrared receiving tube.
3. the detection method of the anglec of rotation as claimed in claim 2, it is characterized in that, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle; Or
Described whirligig is cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
4. rotation angle detecting method as claimed in claim 1, is characterized in that, the described infrared intensity value from prestoring with obtain the anglec of rotation corresponding with the infrared intensity value collected the mapping relations table of the anglec of rotation and be specially:
Judge whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table;
If so, the anglec of rotation corresponding with described infrared intensity value is obtained;
Otherwise, obtain two infrared intensity values adjacent with collected infrared intensity value in mapping relations table, calculate the mean value of adjacent infrared intensity value;
Judge that the infrared intensity value collected is the mean value equaling described adjacent infrared intensity value;
If the infrared intensity value collected equals the mean value of described adjacent infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value;
If the infrared intensity value collected is not equal to the mean value of described adjacent infrared intensity value, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding; When collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
5. a rotation angle detection apparatus, is characterized in that, described device comprises:
First acquisition module, in the process that rotates at whirligig, if receive angle to detect instruction, obtains the infrared intensity value that infrared receiving tube collects;
Second acquisition module, for obtaining the anglec of rotation corresponding with the infrared intensity value collected from the infrared intensity value prestored with the mapping relations table of the anglec of rotation.
6. rotation angle detection apparatus as claimed in claim 5, is characterized in that, described first acquisition module specifically for;
By infrared transmitting tube by infrared emitting on the reflecting plate of described whirligig, with in the rotary course of described whirligig, by described reflecting plate by described infrared reflection give described infrared receiving tube;
The ultrared infrared intensity value received is obtained from described infrared receiving tube.
7. the pick-up unit of the anglec of rotation as claimed in claim 6, it is characterized in that, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle; Or
Described whirligig is cylindrical, and described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
8. rotation angle detection apparatus as claimed in claim 5, it is characterized in that, described second acquisition module specifically comprises:
Judging unit, for judging whether there is the infrared intensity value identical with collected infrared intensity value in described mapping relations table;
Acquiring unit, for when the judged result of judge module is for being, obtains the anglec of rotation corresponding with described infrared intensity value;
Described acquiring unit also for, when the judged result of judge module is no, obtains two infrared intensity values adjacent with collected infrared intensity value in mapping relations tables, calculate the mean value of adjacent infrared intensity value;
Described judging unit also for, judge that the infrared intensity value that collects is the mean value equaling described adjacent infrared intensity value;
Described acquiring unit also for, the mean value of described adjacent infrared intensity value is equaled in collected infrared intensity value, the anglec of rotation that the infrared intensity value that acquisition two is adjacent is respectively corresponding, calculate the mean value of the described anglec of rotation, the mean value of the described anglec of rotation is the anglec of rotation corresponding to collected infrared intensity value;
The mean value of described adjacent infrared intensity value is not equal in collected infrared intensity value, when collected infrared intensity value is greater than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that higher value in two adjacent infrared intensity values is corresponding; When collected infrared intensity value is less than the mean value of described adjacent infrared intensity value, obtain the anglec of rotation that smaller value in two adjacent infrared intensity values is corresponding.
9. an anglec of rotation checkout equipment, is characterized in that, described equipment comprises:
Processor, driver, infrared emission tube, infrared receiver tube and whirligig;
Described processor is connected with described driver;
Described driver is connected with infrared receiving tube with described infrared transmitting tube respectively;
Described whirligig is arranged on mobile terminals, can rotate relative to described mobile terminal around own torque; Described whirligig is provided with reflecting plate; Described infrared transmitting tube and infrared receiving tube are disposed in parallel in described mobile terminal main body, and just to the reflecting surface of described reflecting plate;
Described processor is used for, and sends instruction to start infrared emission tube and infrared receiver tube to driver;
Described reflecting plate is used for, and in the process that whirligig rotates, the infrared reflection launched by infrared transmitting tube is to infrared receiving tube;
Described infrared receiving tube is used for, and receives the infrared ray of described baffle reflection, and the ultrared intensity level of reflection is sent to processor by driver.
10. anglec of rotation checkout equipment as claimed in claim 9, it is characterized in that, described whirligig is cylindrical, and described reflecting plate is arranged on the side surface of whirligig, and its plane outspread drawing is triangle;
Or described whirligig is cylindrical, described reflecting plate is arranged on the whirligig side vertical with rotating shaft, and its shape is crescent.
CN201410653307.1A 2014-11-14 2014-11-14 Rotation angle detecting method, device and equipment Active CN104406542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410653307.1A CN104406542B (en) 2014-11-14 2014-11-14 Rotation angle detecting method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410653307.1A CN104406542B (en) 2014-11-14 2014-11-14 Rotation angle detecting method, device and equipment

Publications (2)

Publication Number Publication Date
CN104406542A true CN104406542A (en) 2015-03-11
CN104406542B CN104406542B (en) 2017-07-14

Family

ID=52644190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410653307.1A Active CN104406542B (en) 2014-11-14 2014-11-14 Rotation angle detecting method, device and equipment

Country Status (1)

Country Link
CN (1) CN104406542B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853181A (en) * 2015-05-13 2015-08-19 广东欧珀移动通信有限公司 Detection method and system of relative position of rotary camera
CN106016716A (en) * 2016-05-31 2016-10-12 芜湖鸣人热能设备有限公司 Rotary boiler
CN109682327A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Angle measurement unit and electronic equipment
CN109724936A (en) * 2019-02-21 2019-05-07 福州普贝斯智能科技有限公司 A kind of water quality spectroanalysis instrument
CN111121666A (en) * 2019-12-25 2020-05-08 联想(北京)有限公司 Angle determination method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000065565A (en) * 1998-08-21 2000-03-03 Komatsu Ltd Device for measuring rotary angle of rotary missile and its measuring method
CN1311431A (en) * 2000-03-02 2001-09-05 张力 Sensor signal derivative device on rotary body
CN1576783A (en) * 2003-07-23 2005-02-09 Lg电子株式会社 Method and apparatus for detecting position of mobile robot
CN2720408Y (en) * 2004-08-20 2005-08-24 西南交通大学 Bicycle riding track detection device
CN200996836Y (en) * 2006-05-17 2007-12-26 江苏技术师范学院 Signal generater for measuring rotary angle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000065565A (en) * 1998-08-21 2000-03-03 Komatsu Ltd Device for measuring rotary angle of rotary missile and its measuring method
CN1311431A (en) * 2000-03-02 2001-09-05 张力 Sensor signal derivative device on rotary body
CN1576783A (en) * 2003-07-23 2005-02-09 Lg电子株式会社 Method and apparatus for detecting position of mobile robot
CN2720408Y (en) * 2004-08-20 2005-08-24 西南交通大学 Bicycle riding track detection device
CN200996836Y (en) * 2006-05-17 2007-12-26 江苏技术师范学院 Signal generater for measuring rotary angle

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853181A (en) * 2015-05-13 2015-08-19 广东欧珀移动通信有限公司 Detection method and system of relative position of rotary camera
CN104853181B (en) * 2015-05-13 2017-06-23 广东欧珀移动通信有限公司 Rotating camera relative position detection method and system
CN106016716A (en) * 2016-05-31 2016-10-12 芜湖鸣人热能设备有限公司 Rotary boiler
CN109682327A (en) * 2019-01-25 2019-04-26 Oppo广东移动通信有限公司 Angle measurement unit and electronic equipment
WO2020151568A1 (en) * 2019-01-25 2020-07-30 Oppo广东移动通信有限公司 Angle measurement apparatus, electronic device, and angle measurement method
CN109724936A (en) * 2019-02-21 2019-05-07 福州普贝斯智能科技有限公司 A kind of water quality spectroanalysis instrument
CN111121666A (en) * 2019-12-25 2020-05-08 联想(北京)有限公司 Angle determination method and electronic equipment

Also Published As

Publication number Publication date
CN104406542B (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN104406542A (en) Method, device and equipment for detecting rotary angle
US9442177B2 (en) Indoor robot and method for indoor robot positioning
US20110178762A1 (en) Portable Articulated Arm Coordinate Measuring Machine with Multiple Communication Channels
JP6974164B2 (en) Methods, devices, and systems for initializing meter reading devices
US8887587B2 (en) Measurement device
JP2008078210A5 (en)
US10060719B2 (en) System and method for measuring the relative positions of rotary components
CN105627995A (en) Camera device, transmission device, distance measuring device, distance measuring system and distance measuring method
CN104204993B (en) Orientation sensing computing device
CN101526346A (en) Portable electronic device and method for measuring length of object by same
CN107462674B (en) Air detection device and method
CN104459534B (en) A kind of detection method and device of the galvanometer motor linearity
TW201335762A (en) Electronic device capable of automatically switching modes of a memory module and related method
CN107401823A (en) Ducting assembly, air conditioner and air outlet anglec of rotation control method
CN107065035B (en) A kind of geomagnetic sensor calibrating installation, method and mobile terminal
EP3129748B1 (en) Method for automated pipe measurement and alignment
CN111988604A (en) Flare automatic checking system
KR20220039623A (en) Radar elevation angle measurement
CN104655161A (en) Distance measuring device and method of distance measuring device to find distance measuring initial point
CN203811190U (en) Distance-measuring device
CN108038871A (en) The pivot of rotating platform determines method, apparatus, server and storage medium
US9575396B2 (en) Electronic device and control method thereof
CN211121105U (en) Automobile shell flatness measurement and detection device
WO2021120044A1 (en) Coaxiality measurement method and device, system, and rotation structure
CN117321442A (en) Pose deviation acquisition method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP03 Change of name, title or address