A kind of roughness instrument based on virtual instrument
Technical field
The utility model relates to roughness instrument, concrete is a kind of roughness instrument based on virtual instrument.
Background technology
Roughness is that the measurement body surface is bright and clean, a physical quantity of degree of roughness, its numerical values recited directly has influence on the technical feature of equipment, and therefore, the detection of roughness is applied in machine-building widely with definite, boats and ships processing is among the industry-by-industries such as aerospace field.
Present normally used roughness instrument device is a kind of measuring appliance that the physical quantity of surface of the work degree of roughness is converted to analog quantity, and this detecting instrument exists certain shortcoming.Because it is comparatively complicated to measure a body surface roughness, it relates to more physical parameter, usually general roughness instrument device can only detect one of them or several, such as determining roughness Ra, also need artificial going to table look-up, calculate as for some parameters of Re, Rz or the like, the error of obtaining a result like this is self-evident, and measuring accuracy is lower, and measurement range is again for a short time to be the big problem of the roughness instrument existence of use at present.Accurate any certain effect of roughness instrument wants obviously a lot, but its structure is rather complicated again, only be that layout such as button, switch, instrument on the display panel just makes us dazzled, it is more difficult that the common laborer operates, and is unfavorable for people's observation, operation and record.
Along with the raising of industrial expansion and technical merit, China is more and more paid attention to by people the research and the practical application of surfaceness, and people wish to have a kind of high precision that has, and the roughness measuring instrument that can determine whole parameters is to adapt to the needs of real work.
Summary of the invention
Shortcomings such as the purpose of this utility model is few at the existing measurement parameter of common roughness of present use, and precision is low, and measurement range is little and a kind of roughness instrument based on virtual instrument is provided.
The technical scheme that adopts is:
A kind of roughness instrument based on virtual instrument comprises hardware components and software section, and hardware components comprises worktable, controller, PC, and described worktable comprises survey sensor, jig, base; Survey sensor is installed on the driver, and driver is arranged in the stand, and stand is arranged on the side of base, is provided with jig above the base; Its design feature is:
Described controller comprises the circuit control panel of installing in casing and the casing, and circuit control panel comprises oscillator stage, electric bridge amplifier stage, multiplying level, A/D conversion loop, single-chip microcomputer;
Described oscillator stage is the RC resistance-capacitance oscillator, as shown in Figure 2, ground connection behind the RC oscillation circuit that the positive input 1 foot meridian capacitor C3 of chip U6 and resistance R 27 are formed, output terminal 3 pin of chip U6 are earlier after positive input 1 pin of capacitor C 4, resistance R 26 connection chip U6, negative input 2 pin of chip U6 successively connect resistance R 29, potentiometer W8 ground connection; Negative input 2 pin of chip U6 connect output terminal 3 pin of chip U6 through resistance R 28 simultaneously;
Chip U6 output terminal 3 pin connect capacitor C 5 ground connection through resistance R 30.Resistance R 30 and capacitor C 5 tie point d are connected positive input 1 pin of chip U7 through resistance R 31, negative input 2 pin of chip U7 are through resistance R 32 ground connection, negative input 2 pin of chip U7 connect output terminal 3 pin of chip U7 through resistance R 33,4 pin of chip U7 and 5 pin are connected two fixed resistance value terminals of potentiometer W9 respectively, the movable contact terminals of potentiometer W9 are connected to power supply 12v, output terminal 3 pin of chip U7 are connected with detection signal input end p, q, and output terminal 3 pin of chip U7 connect the multiplying level by resistance R 11 simultaneously;
Described electric bridge amplifier stage as shown in Figure 3, the two ends after potentiometer W1 and the W2 parallel connection are connected on respectively on 2 of circuit b, the c, the c point connects an end of resistance R 2, the other end ground connection of resistance R 2; The b point is connected with detection signal input end p, q, and the b point connects an end of resistance R 1, and the other end of resistance R 1 is connected positive input 1 pin of amplifier chip U1 by a point, and an end of resistance R 3 is connected on a point, other end ground connection; The c point connects positive input 1 pin of amplifier chip U2 simultaneously, and output terminal 3 pin of chip U1 are through negative input 2 pin of resistance R 5 connection chip U1, and output terminal 3 pin of chip U1 connect negative input 2 pin of chip U3 through resistance R 7 simultaneously; Output terminal 3 pin of chip U2 are through negative input 2 pin of resistance R 6 connection chip U2, and 2 pin of negative input separately of chip U1 and chip U2 are connected by resistance R 4; Output terminal 3 pin of chip U2 are through positive input 1 pin of resistance R 8 connection amplifier chip U3, and the positive input of chip U3 is by resistance R 10 ground connection; Output terminal 3 pin of chip U3 are through negative input 2 pin of resistance R 9 connection chip U3, and output terminal 3 pin of chip U3 connect the movable contact terminals of potentiometer W3 simultaneously, and two fixed resistance value terminals of potentiometer W3 are connected respectively to 4 pin and 5 pin of chip U3; Output terminal 3 pin of chip U3 insert the multiplying level through resistance R 12;
Described multiplying level connects input end 1 pin and 2 pin of chip U4 respectively by resistance R 11, R12 as shown in Figure 4, and 1 pin of chip U4 and 2 pin are respectively through resistance R 13, R14 ground connection; 3 pin of chip U4 are earlier after resistance R 17 and potentiometer W4 ground connection; 4 pin of chip U4 are through resistance R 18 ground connection; 5 pin of chip U4 are connected with the intermediate active contact terminals of potentiometer W5, and the fixed resistance value terminals x of potentiometer W5 connects an end of resistance R 19 and the negative pole of stabilivolt D1 simultaneously, the plus earth of stabilivolt D1, and the other end of resistance R 19 connects 5v; Another terminals of the fixed resistance value of potentiometer W5 y connects an end of resistance R 20 and the positive pole of stabilivolt D2, the minus earth of stabilivolt D2, the other end connection-5v of resistance R 20 simultaneously; 6 pin of chip U4 are connected with the intermediate active contact terminals of potentiometer W6, and two fixed resistance value terminals of potentiometer W6 and two fixed resistance value terminals of potentiometer W5 are in parallel;
7 pin of chip U4 directly amplify negative input 2 pin of chip U5, negative input 2 pin of chip U5 connect output terminal 3 pin of chip U5 again respectively through resistance R 25, with connect+12v through resistance R 23,8 pin of chip U4 connect positive input 1 pin of chip U5, positive input 1 pin of chip U5 successively connects R24 and potentiometer W7 ground connection, and positive input 1 pin of chip U5 connects+12v the 5 foot meridian capacitor C1 ground connection of chip U5 through resistance R 22 simultaneously, capacitor C 2 one terminations+12v, other end ground connection; 9 pin of chip U4 connect+12v through resistance R 21; 11 pin of chip U4 connect 12 pin of chip U4 through resistance R 16; 13 pin of chip U4 connect 14 pin of chip U4 through resistance R 15, output terminal 3 pin of chip U5 successively connect resistance R 37, R38 is connected with positive input 1 pin of chip U8, the tie point of resistance R 37 and R38 is by capacitor C 10 ground connection, the negative input 2 pin ground connection of chip U8;
Described A/D conversion loop comprises chip U9; Described single-chip microcomputer comprises chip U10; As shown in Figure 5,1 pin of chip U9 meets 5V, 2 pin, 3 pin short circuit and ground connection, 4 pin of chip U9,5 pin connect 22 pin and 21 pin of chip U10 respectively, 6 pin of chip U9 connect-5V, 7 pin connect-12V, 8 pin of chip U9 connect 10 pin and 12 pin through variable resistor R34 and R35 respectively, the 9 pin ground connection of chip U9,11 pin of chip U9 connect+12V, 13 pin of chip U9 are connected with output terminal 3 pin of chip U8, in the time of the 14 pin connection-5V of chip U9 through capacitor C 6 ground connection, the 15 pin ground connection of chip U9,16 pin of chip U9,17 pin, 18 pin, 19 pin connect 36 pin of chip U10 respectively, 37 pin, 38 pin, 39 pin.
Corresponding respectively 32 pin, 33 pin, 34 pin, 35 pin, 36 pin, 37 pin, 38 pin, 39 pin that connect chip U10 of 20 pin of chip U9,21 pin, 22 pin, 23 pin, 24 pin, 25 pin, 26 pin, 27 pin;
28 pin of chip U9 connect 23 pin of chip U10; The 9 foot meridian capacitor C6 of chip U10 meet 5V, and 9 pin of chip U10 are simultaneously through resistance R 36 ground connection; The connection RS232 interface of 10 pin of chip U10; 11 pin of chip U10 and 19 pin short circuits, 19 pin of chip U10 and 18 pin also meet a crystal oscillator JZ, and crystal oscillator JZ also meets two series capacitance C8, C9, the interface ground connection of capacitor C 8, C9; The 11 pin output of chip U10 connects RS232 interface, the 20 pin ground connection of chip U10.
Single-chip microcomputer connects PC by the RS232 interface.
Described software section comprises that survey sensor moves and controlling of sampling program, data operation and data processor, and software LabVIEW is installed in respectively in single-chip microcomputer and the PC.
Principle of work
The RC oscillation circuit that resistance R 27 and capacitor C 3 formed constitutes oscillator by chip U6 and amplifies back and survey sensor from p through chip U7 again, the detection signal that q sends here at two ends adds to the chip U1 of bridge circuit amplifier stage in the lump, the U2 positive input, by chip U1, U2 is input to multiplier circuit through the power amplification of chip U3 again with the differential amplification of end input, the roughness signal of measuring is surplus with corresponding coefficient at chip U4, output signal is through resistance R 21, R22, R23, R24, potentiometer W5, W6, W7 and stabilivolt D1, D2, chip U5, capacitor C 1, the low-pass network that C2 forms, the low-frequency disturbance waveform is filtered, after amplifying, chip U8 delivers to the A/D analog to digital conversion circuit from chip U5 output, U9 converts analog quantity to digital quantity through chip, digital quantity signal is from 10 pin of chip U10,11 pin, deliver to PC through the R232 interface, the analog signals of roughness is through the imbalance output of electric bridge, amplify, convert digital quantity after the low-pass filtering to and carry out software processes by single-chip microcomputer and PC, again by the RS232 interface, single-chip microcomputer, the A/D conversion becomes analog quantity and shows.
Of the present utility model reasonable in design, quite creative, compact overall structure, make full use of the advantage of software and hardware, performance PC unique function, embodied the advantage based on the roughness instrument of virtual instrument, accuracy of detection height, wide ranges can detect totally 21 of the surface roughness parameter relevant with the nao-and micro relief altitude response, the surface roughness parameter relevant with the nao-and micro relief spaced features and the surface roughness parameters relevant with the nao-and micro relief style characteristic.Cost of manufacture of the present utility model is lower, has extremely strong practicality, the suitable mechanical manufacturing, and boats and ships processing, industry-by-industries such as aerospace field, department use.
Description of drawings
Fig. 1 is the utility model structural representation.
Fig. 2 is the oscillator stage circuit diagram in the utility model controller.
Fig. 3 is the electric bridge amplification grade circuit figure in the utility model controller.
Fig. 4 is the multiplying level circuit diagram in the utility model controller.
Fig. 5 is the A/D conversion loop circuit figure in the utility model controller.
Fig. 6 is a circuit control panel electrical schematic diagram in the utility model controller.
Embodiment
Embodiment
A kind of roughness instrument based on virtual instrument comprises hardware components and software section, and hardware components comprises worktable, controller, PC 7, and worktable comprises survey sensor 1, jig 2, base 3; Survey sensor 1 is installed on the commercially available finished parts driver 4, and driver 4 is arranged in the stand 5, and stand 5 is arranged on the side of base 3, is placed with jig above the base 3; Driver 4 carry survey sensor 1 can be on base 3 omnibearing scanning.
Controller comprises the circuit control panel of installing in casing 6 and the casing 6, and circuit control panel comprises oscillator stage, electric bridge amplifier stage, multiplying level, A/D conversion loop, single-chip microcomputer; Circuit control panel has adopted ten chips, and its model is respectively: amplifier chip U1, U2, U3, U5, U6, U7, U8 model are CA3140;
Multiplying chip U4 model is MC1595L or MC1496;
A/D modulus conversion chip U9 model is A/D574;
Singlechip chip U10 model is AT89C52.
Described oscillator stage is the RC resistance-capacitance oscillator, as shown in Figure 2, ground connection behind the RC oscillation circuit that the positive input 1 foot meridian capacitor C3 of chip U6 and resistance R 27 are formed, output terminal 3 pin of chip U6 are earlier after positive input 1 pin of capacitor C 4, resistance R 26 connection chip U6, negative input 2 pin of chip U6 successively connect resistance R 29, potentiometer W8 ground connection; Negative input 2 pin of chip U6 connect output terminal 3 pin of chip U6 through resistance R 28 simultaneously;
Chip U6 output terminal 3 pin connect capacitor C 5 ground connection through resistance R 30.Resistance R 30 and capacitor C 5 tie point d are connected positive input 1 pin of chip U7 through resistance R 31, negative input 2 pin of chip U7 are through resistance R 32 ground connection, negative input 2 pin of chip U7 connect output terminal 3 pin of chip U7 through resistance R 33,4 pin of chip U7 and 5 pin are connected two fixed resistance value terminals of potentiometer W9 respectively, the movable contact terminals of potentiometer W9 are connected to power supply 12v, output terminal 3 pin of chip U7 are connected with detection signal input end p, q, as shown in Figure 6, output terminal 3 pin of chip U7 connect the multiplying level by resistance R 11 simultaneously;
The electric bridge amplifier stage as shown in Figure 3, the two ends after potentiometer W1 and the W2 parallel connection are connected on respectively on 2 of circuit b, the c, the c point connects an end of resistance R 2, the other end ground connection of resistance R 2; The b point is connected with detection signal input end p, q, and the b point connects an end of resistance R 1, and the other end of resistance R 1 is connected positive input 1 pin of amplifier chip U1 by a point, and an end of resistance R 3 is connected on a point, other end ground connection; The c point connects positive input 1 pin of amplifier chip U2 simultaneously, and output terminal 3 pin of chip U1 are through negative input 2 pin of resistance R 5 connection chip U1, and output terminal 3 pin of chip U1 connect negative input 2 pin of chip U3 through resistance R 7 simultaneously; Output terminal 3 pin of chip U2 are through negative input 2 pin of resistance R 6 connection chip U2, and 2 pin of negative input separately of chip U1 and chip U2 are connected by resistance R 4; Output terminal 3 pin of chip U2 are through positive input 1 pin of resistance R 8 connection amplifier chip U3, and the positive input of chip U3 is by resistance R 10 ground connection; Output terminal 3 pin of chip U3 are through negative input 2 pin of resistance R 9 connection chip U3, and output terminal 3 pin of chip U3 connect the movable contact terminals of potentiometer W3 simultaneously, and two fixed resistance value terminals of potentiometer W3 are connected respectively to 4 pin and 5 pin of chip U3; Output terminal 3 pin of chip U3 insert the multiplying level through resistance R 12;
The multiplying level connects input end 1 pin and 2 pin of chip U4 respectively by resistance R 11, R12 as shown in Figure 4, and 1 pin of chip U4 and 2 pin are respectively through resistance R 13, R14 ground connection; 3 pin of chip U4 are earlier after resistance R 17 and potentiometer W4 ground connection; 4 pin of chip U4 are through resistance R 18 ground connection; 5 pin of chip U4 are connected with the intermediate active contact terminals of potentiometer W5, and the fixed resistance value terminals x of potentiometer W5 connects an end of resistance R 19 and the negative pole of stabilivolt D1 simultaneously, the plus earth of stabilivolt D1, and the other end of resistance R 19 connects 5v; Another terminals of the fixed resistance value of potentiometer W5 y connects an end of resistance R 20 and the positive pole of stabilivolt D2, the minus earth of stabilivolt D2, the other end connection-5v of resistance R 20 simultaneously; 6 pin of chip U4 are connected with the intermediate active contact terminals of potentiometer W6, and two fixed resistance value terminals of potentiometer W6 and two fixed resistance value terminals of potentiometer W5 are in parallel;
7 pin of chip U4 directly amplify negative input 2 pin of chip U5, negative input 2 pin of chip U5 connect output terminal 3 pin of chip U5 again respectively through resistance R 25, with connect+12v through resistance R 23,8 pin of chip U4 connect positive input 1 pin of chip U5, positive input 1 pin of chip U5 successively connects R24 and potentiometer W7 ground connection, and positive input 1 pin of chip U5 connects+12v the 5 foot meridian capacitor C1 ground connection of chip U5 through resistance R 22 simultaneously, capacitor C 2 one terminations+12v, other end ground connection; 9 pin of chip U4 connect+12v through resistance R 21; 11 pin of chip U4 connect 12 pin of chip U4 through resistance R 16; 13 pin of chip U4 connect 14 pin of chip U4 through resistance R 15, output terminal 3 pin of chip U5 successively connect resistance R 37, R38 is connected with positive input 1 pin of chip U8, the tie point of resistance R 37 and R38 is by capacitor C 10 ground connection, the negative input 2 pin ground connection of chip U8;
A/D conversion loop comprises chip U9; Described single-chip microcomputer comprises chip U10; As shown in Figure 5,1 pin of chip U9 meets 5V, 2 pin, 3 pin short circuit and ground connection, 4 pin of chip U9,5 pin connect 22 pin and 21 pin of chip U10 respectively, 6 pin of chip U9 connect-5V, 7 pin connect-12V, 8 pin of chip U9 connect 10 pin and 12 pin through variable resistor R34 and R35 respectively, the 9 pin ground connection of chip U9,11 pin of chip U9 connect+12V, 13 pin of chip U9 are connected with output terminal 3 pin of chip U8, in the time of the 14 pin connection-5V of chip U9 through capacitor C 6 ground connection, the 15 pin ground connection of chip U9,16 pin of chip U9,17 pin, 18 pin, 19 pin connect 36 pin of chip U10 respectively, 37 pin, 38 pin, 39 pin.
Corresponding respectively 32 pin, 33 pin, 34 pin, 35 pin, 36 pin, 37 pin, 38 pin, 39 pin that connect chip U10 of 20 pin of chip U9,21 pin, 22 pin, 23 pin, 24 pin, 25 pin, 26 pin, 27 pin;
28 pin of chip U9 connect 23 pin of chip U10; The 9 foot meridian capacitor C6 of chip U10 meet 5V, and 9 pin of chip U10 are simultaneously through resistance R 36 ground connection; The connection RS232 interface of 10 pin of chip U10; 11 pin of chip U10 and 19 pin short circuits, 19 pin of chip U10 and 18 pin also meet a crystal oscillator JZ, and crystal oscillator JZ also meets two series capacitance C8, C9, the interface ground connection of capacitor C 8, C9; The 11 pin output of chip U10 connects RS232 interface, the 20 pin ground connection of chip U10.
Single-chip microcomputer connects PC 7 by the RS232 interface.
Software section comprises that survey sensor moves and controlling of sampling program, data operation and data processor, and software LabVIEW is installed in respectively in single-chip microcomputer and the PC 7.