Summary of the invention
The invention provides that a kind of measurement range is big, simple in structure, easy for installation, cost is low, measuring accuracy and resolution height, the curve displacement sensing system that need not return to zero.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of curve displacement sensing system, it is characterized in that: comprise the mobile dynamic sensor of object that moves with curve, other has had the movable signal of pair dynamic sensor to do to levy the displacement size with reference to the quiet sensor device that acts on by the high-frequency impulse numerical table of dynamic sensor and/or quiet sensor.
Described curve displacement sensing system, the mobile dynamic sensor of testee that moves with curve is arranged, other has a left side, the right side is synchronous motor at the uniform velocity, a left side, the sense of rotation of right at the uniform velocity synchronous motor is identical, a left side, connect respectively on the output shaft of right at the uniform velocity synchronous motor and have the infrared light reflection action, and the reflective rod that rotates with motor output shaft, the Plane of rotation of reflective rod is vertical with motor output shaft, the motor output shaft axle center is the reflective excellent Plane of rotation center of circle, the Plane of rotation of two reflective rods has overlapped zone, this overlapping region is effective detection zone of movement of objects, and promptly the moving range of testee is in above-mentioned overlapping region; There have a quiet sensor to be fixed on to be left and right at the uniform velocity between the synchronous motor; Described dynamic sensor, quiet sensor are reflective single beam infrared photoelectric sensor.Dynamic sensor, quiet sensor are connected with comparer respectively, comparer is connected with single-chip microcomputer, single-chip microcomputer is given the counter module of FPGA by I/O mouth output control signal, realize the switching of technology and latch function by the conversion of single-chip microcomputer mouth line high-low level, latch returns single-chip microcomputer to data, and single-chip microcomputer is exported demonstration to the result through calculating.When under the operating mode that has high light to disturb, using, can adopt the position transducer of other kinds such as Hall element, eddy current sensor to replace reflective photoelectric sensor.Hall element, eddy current coil sensitive elements such as (eddy current probes) are installed on the curve track (track), and the same reflective photoelectric sensor in installation site replaces with field generator for magnetic or swirl plate with reflective rod, with the output of sensitive element as position signalling.
Described curve displacement sensing system, the mobile trailing type dynamic sensor of testee that moves with curve is arranged, other has a left side, the right side is synchronous motor at the uniform velocity, a left side, install first respectively on the output shaft of right at the uniform velocity synchronous motor, second dynamic sensor, first, second dynamic sensor is a photoemitter, a left side, install first respectively on the shell of right at the uniform velocity synchronous motor, the second quiet sensor, first, the second quiet sensor is a photoelectric receiving device, the trailing type dynamic sensor is installed several light receiving elements in a circle 360 degree scopes, guarantee that testee all can receive first under any position, the light signal that second dynamic sensor sends; The installation site of first, second quiet sensor is for receiving the position of the light signal that second, first dynamic sensor sends respectively.
Described curve displacement sensing system, the mobile dynamic sensor of testee that moves with curve is arranged, dynamic sensor is fixed on synchronous uniform speed electric motor's axle, following motor synchronous at the uniform velocity rotates, synchronous motor is fixed on the testee, follow object and be synchronized with the movement, other has first, second quiet sensor to be fixed on testee curve displacement track both sides; Described dynamic sensor is the photoemission sensor, and first, second quiet sensor is a photoelectric receiving transducer, and the plane that the beam axis rotation that dynamic sensor sends forms is vertical with electrical axis.
Dynamic sensor, quiet sensor are connected with comparer respectively, comparer is connected with single-chip microcomputer, single-chip microcomputer is given the counter module of FPGA by I/O mouth output control signal, realize the switching of technology and latch function by the conversion of single-chip microcomputer mouth line high-low level, latch returns single-chip microcomputer to data, and single-chip microcomputer is exported demonstration to the result through calculating.
A kind of purposes of curve displacement sensing system, it is characterized in that: be used for the detection curve displacement or detect amount of curvature, when detecting amount of curvature, by three points in the reflective excellent rotation sweep dynamic sensor moving process, adopt two sections little fitting a straight line circular arcs, adopt the high-frequency impulse filling and obtain radius-of-curvature and amount of curvature in conjunction with trigonometric function operation.
A kind of purposes of curve displacement sensor, it is characterized in that: by linear displacement transducer is installed on testee, with any one plane vertical with electrical axis is reference, detect testee and this interplanar change in displacement, the track of testee in three dimensions can be determined by solid geometry calculating, the three-dimensional space curve displacement detecting can be realized.
The beneficial effect of high-precision digital curve displacement sensor of the present invention mainly shows:
1. simple in structure, easy to process, realize the digitizing non-contact detection.Cost is low, is beneficial to batch process.
2. measurement range is big.
3. except the high precision curve displacement detects, can realize that high precision curvature detects.Sensor simply transformed to realize the three-dimensional curve displacement detecting.
4. precision and resolution height keeping adopting the high-frequency impulse completion method under the stable prerequisite of motor speed, can obtain very high precision.
5. need not return to zero before measuring, make things convenient for testing process.
Embodiment
Below in conjunction with accompanying drawing the present invention is further described.
Embodiment 1 (being embodiment 1):
The mobile dynamic sensor 1 of testee that moves with curve is arranged, other has a left side, the right side is synchronous motor 3 at the uniform velocity, 4 (is motor A, B), a left side, the sense of rotation of right at the uniform velocity synchronous motor is identical, a left side, connect respectively on the output shaft of right at the uniform velocity synchronous motor and have the infrared light reflection action, and the reflective rod (being called aluminium bar or metal bar) 5 that rotates with motor output shaft, 6 (is aluminium bar A, B), the Plane of rotation of reflective rod is vertical with motor output shaft, the motor output shaft axle center is the reflective excellent Plane of rotation center of circle, the Plane of rotation of two reflective rods has overlapped zone, this overlapping region is effective detection zone of movement of objects, and promptly the moving range of testee is in above-mentioned overlapping region; There is a quiet sensor 2 to be fixed between the left and right at the uniform velocity synchronous motor 3,4; Described dynamic sensor 1, quiet sensor 2 are reflective single beam infrared photoelectric sensor.
When metal bar process reflective photoelectric sensor, the light that the interface circuit infrared transmitting tube of sensor sends is through reflection, and sensor receiving tube signal is through an exportable high level pulse.When metal bar during without reflective photoelectric sensor, the receiving end output low level.As shown in Figure 1, testee is gone up at orbit (track) and is moved, and dynamic sensor (reflective photoelectric sensor) is followed the testee motion, and quiet sensor (reflective photoelectric sensor) is fixed on the two synchronous motor axle center lines.Add man-hour in order to make motor when rotation steady, aluminium bar adopts symmetric mode to be fixed on the motor shaft.
(1) when the testee moving direction when the quiet sensor
As shown in Figure 2, promptly testee moves to M3 until this process of axial connecting line by M0.This sensor is applicable to the occasion that testee slowly moves, and is specially adapted to the object stepping and moves occasion.If mobile object is stepping, initial position starts synchronous motor earlier and drives aluminium bar at M0 before measurement, and aluminium bar has two pulse signal outputs through dynamic sensor and quiet sensor.Owing to two motors are arranged with the moving two aluminium bars rotation of speed belt, and make two aluminium bars have the time difference, then can note two groups of signals, as shown in Figure 3 through quiet sensor.
Before object did not move, A, B two motors 3,4 drove aluminium bars and rotate, and when aluminium bar process dynamic sensor and quiet sensor, produce pulse signal, are designated as the T0 pulse signal in the moment.If the dynamic sensor and the starting phase angle between the quiet sensor that are reference with two rotating shaft hearts can be designated as α 0, β 0 (see figure 2) respectively.Start the high-frequency impulse counting when crossing dynamic sensor, stop counting during quiet sensor.Fill high-frequency impulse N in the one-period if A, B motor rotate, the N value is two high-frequency impulse numbers that continuous quiet sensor is interpulse.Then note high-frequency impulse number NA0 and NB0 constantly by T0 and in the cycle ratio of overall pulse number N can determine between object initial position and the quiet sensor phase angle [alpha] 0, β 0 with respect to two electrical axis A, B.In like manner according to record data NA1, NB1, NA2, NB2 ... moment dynamic sensors such as T1, T2 be can obtain and phase angle [alpha] 1, β 1, α 2, β 2 between reference and the quiet sensor are for two axle center ...
Because A, B two motor positions determine that its two motors distance is made as L (known), can try to achieve M0 and quiet sensor angle α 0, the β 0 with respect to A, B again, has so just determined the initial position M0 of object.
When testee is subjected to displacement, dynamic sensor also is synchronized with the movement, and moves to the M1 position as M0, and quiet sensor output this moment impulse phase still and do not become, and dynamic sensor output impulse phase has changed, and α 0, β 0 have also become α 1, β 1.
So just can obtain dynamic sensor and move distance A M0, the AM1 of front and back two positions to A.
Because AM0, AM1 and their angle (α 0-α 1) are as can be known, so the displacement M0M1 before and after the object can try to achieve:
Adopt said method can obtain the linear movement measuring general formula:
By above method the straight-line segment addition that obtains can be obtained curve displacement.When movement of objects speed was very slow, straight-line segment is section very, but because there is the time difference in the scanned sensor of two motors, so there is certain error in curve displacement calculating.The testee translational speed is slow more, and the motor rotational speed is fast more, and then error is more little.When testee is stepping when moving, measurement can obtain very high resolution and precision.
More than calculating draws under hypothesis A, the even and of the same size situation of B two motor speeds, and in the practical operation, A, B two motor speeds can not be identical, and asking α this moment
nAnd β
nThe time, two motors are counted N at the pairing high-frequency impulse that rotates a circle can be according to the actual conditions adjustment.Concrete when calculating N, can calculate that the high-frequency impulse number draws between two adjacent quiet sensors by interface circuit.
(2) when testee moving direction during away from quiet sensor
As shown in Figure 4, both be object from crossing two rotating shaft lines, move to Mn until this process of farther place through Mn-1. Formula 8,9 will be no longer suitable this moment.When dynamic sensor during through two electrical axis lines, the situation that must exist aluminium bar not pass through dynamic sensor through twice quiet sensor continuously, therefore can judge by interface circuit, when the dynamic sensor pulse not occurring when continuous two the quiet sensor pulses of appearance of interface circuit discovery, can do suitably to revise to formula 8,9 by the simple geometry analysis, but 12 right being suitable for of formula.
Embodiment 2 (being embodiment 2):
The mobile trailing type dynamic sensor 7 (being dynamic sensor M) of testee that moves with curve is arranged, other has a left side, the right side is synchronous motor 8 at the uniform velocity, 9 (is motor A, B), a left side, install first respectively on the output shaft of right at the uniform velocity synchronous motor, second dynamic sensor 10,11 (is dynamic sensor A, B), first, second dynamic sensor is a photoemitter, a left side, install first respectively on the shell of right at the uniform velocity synchronous motor, the second quiet sensor 12,13 (is quiet sensors A, B), first, the second quiet sensor is a photoelectric receiving device, the trailing type dynamic sensor is installed several light receiving elements in a circle 360 degree scopes, guarantee that testee all can receive first under any position, the light signal that second dynamic sensor sends; The installation site of first, second quiet sensor is for receiving the position of the light signal that second, first dynamic sensor sends respectively.
As shown in Figure 5, dynamic sensor M is a photelectric receiver, the fixing and same moved further with testee.Dynamic sensor A, B are photoemitter, fixedly connected with motor A, B axle respectively, synchronously rotation.Quiet sensors A, B are photoelectric receiving device, fixedly connected transfixion with motor housing.When dynamic sensor M installs, several light receiving elements are installed (after multiple collector spare signal handles through modulate circuits such as comparers in a circle 360 degree scopes, by or door connect), guarantee that testee all can receive the light signal that dynamic sensor A and B send under any pose.Quiet sensors A, B should be able to guarantee to receive respectively the light signal that dynamic sensor B, A send when installing.
Two dynamic sensor rotations of driven by motor, dynamic sensor A transmits, and M and B successively receive this signal.In like manner B transmits, and M, A also successively receive signal.
(1) when testee during near A, B electrical axis line
As shown in Figure 6.When testee is not mobile, start two synchronous motors earlier, but measurement range can expand the common factor of two photoelectric sensor induction regions to.The signal that quiet sensors A receives is that dynamic sensor B sends, and what quiet sensor B accepted is that dynamic sensor A sends, and M accepts the signal of dynamic sensor A, two emissions of B.When M moved, the phase place of M acknowledge(ment) signal and quiet sensors A, B acknowledge(ment) signal can change, and phase differential has embodied the variation of M displacement.Sequential chart as shown in Figure 7.If AB two electrical axis lines distances is L, the motor B high-frequency impulse quantity that rotates a circle is N
B, the motor A high-frequency impulse number that rotates a circle is N
ACan get:
By above method the straight-line segment addition that obtains can be obtained curve displacement.When movement of objects speed was very slow, straight-line segment is section very, but because there is the time difference in the scanned sensor of two motors, so there is certain error in curve displacement calculating.The testee translational speed is slow more, and the motor rotational speed is fast more, and then error is more little.When testee is stepping when moving, measurement can obtain very high resolution and precision.
(2) when testee during away from A, B electrical axis line
The measuring principle sketch as shown in Figure 8, sequential chart is as shown in Figure 9. Formula 16,17 will be no longer suitable this moment.As dynamic sensor M during through two electrical axis lines, must exist quiet sensors A continuously two pulses to occur and the situation of pulse does not appear in dynamic sensor M, perhaps quiet sensor B continuously two pulses occur and the situation of pulse does not appear in dynamic sensor M, therefore can judge by interface circuit, when the pulse of dynamic sensor M not occurring when continuous two the quiet sensor pulses of appearance of interface circuit discovery, can be by the simple geometry analysis to α
nAnd β
nDo suitably to revise, but 22 right being suitable for of formula.
Embodiment 3 (being embodiment 3):
The mobile dynamic sensor 14 (being dynamic sensor M) of testee that moves with curve is arranged, dynamic sensor 14 is fixed on 15 of the synchronous uniform speed electric motors, following motor synchronous at the uniform velocity rotates, synchronous motor is fixed on the testee 16, follow object and be synchronized with the movement, other has first, second quiet sensor 17,18 (being quiet sensors A, B) to be fixed on testee curve displacement track both sides; Described dynamic sensor is the photoemission sensor, and first, second quiet sensor is a photoelectric receiving transducer, and the plane that the beam axis rotation that dynamic sensor sends forms is vertical with electrical axis.
Dynamic sensor M is fixed on the synchronous motor shaft among the figure, follows motor synchronous and at the uniform velocity rotates.Synchronous motor is fixed on the testee, follows object and is synchronized with the movement.Quiet sensors A and B are fixed on curve displacement track (track) both sides.Used motor is a small synchronous motor, and also available rotating speed other motor uniformly replaces.Light source (photelectric receiver) also can adopt the Laser emission receiving trap.
Measuring principle as shown in figure 11.The measuring principle sequential chart as shown in figure 12.Continuous when mobile at testee, variation continuously will take place to the scan period of 2 of A, B in the sensor of rotation continuously on testee.Can obtain:
Wherein N is the high-frequency impulse number of filling in the dynamic sensor M revolution week age.At triangle AM
0Among the B, ∠ BM
0A can ask, and when therefore using this scheme, must guarantee AM0, BM0, AB, ∠ M
0BA, ∠ M
0Any two values among the AB are known, then triangle AM
0All angles and Bian Douke obtain among the B.And because ∠ BM
1A=∠ BM
0A+ α
0+ β
0, and ∠ BM
1A can be tried to achieve automatically by interface circuit, therefore in actual measurement, only needs to calculate α
0And β
0In an amount get final product.Suppose α
0Calculate, then at triangle AM
0M
1In, AM0 and α
0Known, AM1 can be at triangle AM
1Try to achieve among the B (because at triangle AM
1Among the B, AB is known, ∠ M
1AB=∠ M
0AB-α
0, ∠ M
1BA=∠ M
0BA-β
0, then AM1 can get), M then
0M
1Can in the hope of.By the simple geometric analysis M that can be moved at every turn
nM
N+1, addition promptly gets curve displacement.
4, curvature measurement embodiment
Curvature is the amount of expression curved degree.The curvature of plane curve is exactly at the tangent directional angle of certain point on the curve rotation rate to arc length, defines by differential, shows the degree of curve off-straight.Curvature is big more, and the degree of crook of expression curve is big more.K=lim| Δ α/Δ s|, when Δ s trended towards 0, definition K was exactly a curvature.
Three kinds of schemes that more than provide all can be used for realizing curvature measurement.Be that example explanation curvature detects principle with scheme 1 below.Detection is overlooked schematic diagram as shown in figure 13.With M0, M1, M2 is example, supposes at these 3 o'clock on a circular arc, because each the detection apart from very little, can be approximated to be two segment straight lines, the focus of two straight line perpendicular bisectors is the center of circle of this circular arc then, and M1O1 is exactly a radius of curvature R, so just can be in the hope of the curvature of M1 position.Figure 14 is ideal model figure.
Utilize formula in the scheme one,
Make A (0,0), M
0Coordinate is (AM
0* cos α
0, AM
0* sin α
0), in like manner obtain M
1, M
2On the position coordinate.
M1(AM
1*cosα
1,AM
1*sinα
1) (28)
M2(AM
2*cosα
2,AM
2*sinα
2) (29)
If (X0, Y0), (X1, Y1), (X2, Y2), (X, Y), radius-of-curvature is R to O1 to M2 to M1 to M0.Computing formula is as follows:
Can get through calculating: O
1Coordinate
That is:
5, novel curve displacement sensor interface circuitry design
The curve displacement sensor of three kinds of schemes has similarity in interface circuit design.Be the example explanation with scheme 1 below.
(1) hardware circuit design
Select for use ST188 one reflection infrared sensor as dynamic sensor and quiet sensor, its interface circuit as shown in figure 15, VCC selects for use+5V, GND ground connection, R1 selects (500~1000) Ω, and R2 selects 20K Ω, OUT is a signal output part, exports pulse behind the OUT termination comparer LM339.
The interface circuit block diagram makes full use of singlechip technology and EDA technology advantage separately as shown in figure 16, and hardware circuit adopts the form of FPGA (EP1K30TC144-3) assistant SCM (AT89C51).Sensors A, B signal are after LM339 handles, input singlechip interruption mouth, single-chip microcomputer P1.0, P1.1 mouth output control signal is given the counter module of FPGA, when P1.0 or P1.1 mouth output high level hour counter A or B begin numeration, stops counting during low level and latchs.Latch returns single-chip microcomputer to data, and single-chip microcomputer is exported demonstration to the result through calculating.
Sensor and interface microcontroller circuit as shown in figure 17, single-chip microcomputer and FPGA interface circuit are chosen con3 (P43,44 of FPGA as shown in figure 18,46,47,48,49,51,59,60,62,63,64), DATA (P109,110,111,112,113,114,116,120,121,122) send remember the high-frequency impulse number.P64, P65 and P109, P110 comes connection control signal.
(2) software design
Single-chip microcomputer detects dynamic sensor earlier and interrupts, and will finish following action then: control counter A counting detects quiet sensor then and interrupts, stop counter A counting, FPGA latchs this and counts A simultaneously, send single-chip microcomputer, after clear 0, detect dynamic sensor again and interrupt, beginning counter B counting detected quiet sensor more afterwards and interrupted, stop counter B counting, FPGA latchs this and counts B simultaneously, send single-chip microcomputer, clear 0 back circulation.
Used a lot of calculating in the whole procedure, comprised exponential function, factorial function, sin function, cos function, open radical sign function etc.Employing single-chip microcomputer c Programming with Pascal Language is more convenient in the specific implementation, also will consider the hybrid programming of single-chip microcomputer simultaneously.Be writing of several word programs necessary in the calculation procedure below:
Double mypow (double, int); // self-defined exponential function calls in sin, cos Taylor expansion
Int mult (int); // self-defined factorial function calls in sin, cos Taylor expansion
Double mysin (double); // self-defined sin function adopts Taylor expansion to approach and finds the solution (precision decision item number)
Double mycos (double); // self-defined cos function adopts Taylor expansion to approach and finds the solution
Double mysqrt (double); // self-defined evolution function adopts process of iteration to open radical sign
Value after calculate finishing is sent into the display buffer, and what system adopted is the segment encode delivery outlets of 8 74LS164 as 8 LED, so result data is divided into 8 segment datas, through calculations of offset, tables look-up and calls side-play amount and be presented on 8 sections LED.The curve displacement size can be shown, and the dynamic change of curve displacement can be shown in real time.
In the FPGA design, use the 74163 and 74373 Puzzle lock deposit systems of forming.Two 74163 cascade circuit figure and simulation result are shown in Figure 18 and 19.For improving accuracy of detection, need to improve the high-frequency impulse frequency, can realize the high-frequency impulse counting this moment by continuous expansion counter and latch.
6, the three-dimensional space curve displacement detects
Three kinds of schemes that the present invention proposes are only applicable to the plane curve displacement detecting, can determine the changes in coordinates of object in two dimensional surface.But the scheme that the present invention proposes can be extended to three-dimensional curve displacement detecting field easily.Only need on testee, to install linear displacement transducer (as laser sensor, ultrasonic sensor etc.), with any one plane vertical with electrical axis is reference, detect testee and this interplanar change in displacement, can determine that object is in three-dimensional changes in coordinates, calculate by solid geometry, can realize the three-dimensional space curve displacement detecting.
7, sensor precision and accuracy analysis
For linear movement pick-up, precision of measurement, accuracy and resolution are most important technical indicators.Precision of measurement is meant under the same terms, to measured repeatedly repeated measurement, the unanimity between the measured value (meeting) degree of carrying out.From the angle of measuring error, what precision reflected is the stochastic error of measured value.In native system, precision of measurement depends primarily on the degree of uniformity of synchronous rotational speed.
The rotating speed of the synchronous motor that is adopted in the experiment is 110r/min (1.83r/s), and the high-frequency impulse frequency that adopts active crystal oscillator to provide is 20MHz.Then motor revolution high-frequency impulse that each week is remembered is counted N=(60/110)/[1/ (20*10
6)]=10909090.9.Recognizable in theory minimum angles is 0.000033 °.Suppose that testee is nearer from two motor shafts.If AM=0.1m, then the displacement that may distinguish in theory is tan0.000033 ° * 0.1=0.000000057m=5.7 * 10
-8M this shows, the resolution of this sensor is very high.
Accuracy of measurement is meant the degree of closeness between measured value and the true value.The method of digital interpolative that adopts this curve displacement sensor realizes that curve displacement measures, and accuracy of measurement depends on difference frequency, object of which movement speed slowly, measure under higher, the uniform prerequisite of motor speed of filler pulse frequency and have higher accuracy.
8, sensor strengths and weaknesses analysis and improvement
Advantage: (1) measurement range is big; (2) simple in structure, easy for installation, cost is low; (3) measuring accuracy and resolution height; (4) need not return to zero before the measurement; (5) do not need to add in addition direction judgment circuit, by software directly declare to; (6) development potentiality is big, can expand.
Shortcoming:
(1) degree of uniformity of motor speed is one of principal element of decision sensor accuracy.The motor of selecting for use is a synchronous motor, mainly is because rotating speed can substantially constant during load variations, need not carry out speed governing under the situation of material such as sensor displacement, reflection rod or structural change; But synchronous motor has bigger electromagnetism pulsation to cause speed ripple, and is influential to precision; Can further select rotating speed small and special electric machine more uniformly for use.
(2) to be mainly used in measurand with scheme 2 be the occasion that stepping is moved for scheme 1.In scheme one, measurand could move next step after whenever making a move and need stopping to wait for all scanned quiet, the dynamic sensor of two aluminium bars.In scheme two, measurand could move next step after whenever making a move and need stopping to wait for scanned quiet, the dynamic sensor of two dynamic sensors (infrared transmitting tube).Though the resolution of sensor is very high, can detect no matter how little the step distance of testee is in theory.But the use field that requires measurand obviously to limit sensor with the step-by-step system operation, in actual applications, scheme 1 and 2 sensors that propose can directly apply to the object that slowly moves, and do not require that the object stepping moves, the error of bringing thus is inevitable, but movement of objects speed is slow more, and error is more little.
(3) computing work connects bigger in the system interface circuit.As adopt single-chip microcomputer will finish relatively more complicated calculating such as comparison trigonometric function, can bring bigger electrical error to detection.In improving from now on, can finish complex calculation to improve system accuracy by selecting high-grade controllers such as DSP for use.