A practical solution for high-precision measurement of displacement devices using microcontrollers and FPGAs

Publisher:SerendipitySoulLatest update time:2014-01-17 Source: 电源网Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Displacement sensors are widely used in industrial and control fields, such as process detection, physical measurement and automatic control. Due to its low measurement accuracy, it often cannot meet social needs and also limits the application of sensors. Therefore, a displacement measurement device based on microcontroller and FPGA is designed here , which can also achieve high linearity, replace manual work in various harsh environments, achieve high-precision measurement, and has certain practical value.

1 Overall design scheme and implementation block diagram

The overall block diagram of the system is shown in Figure 1, which consists of a signal generation part, a differential amplifier part, a transformer coupling part, a signal processing part, a data sampling part, and a processing and display part. The signal generated by DDS technology is sent to the differential transformer after differential amplification by THS4503. The signal output by the differential transformer is sent to MAXl97 for sampling after amplification, rectification and filtering. The sampled data is processed by the processing unit and the measured displacement is displayed on the LCD .

2 Analysis of data processing methods

The differential transformer is an open magnetic circuit. The mutual inductance between the primary and secondary sides changes accordingly with the movement of the magnetic core, causing the voltage of the two secondary coils to change accordingly. The change in displacement is converted into a change in the output voltage. After rectification, data is collected and processed to obtain the d value. Figure 2 shows the table lookup method used for differential transformer data processing: First, a vernier caliper is used to measure several groups of displacement values. The number of groups measured is determined according to the measurement range and the measurement results, and the corresponding d value is recorded and drawn into a table. In actual measurement, the displacement range is determined by table lookup based on the measured d value, and the segmented broken line method is used within this range to obtain the accurate displacement value. The table lookup method can accurately locate the displacement range, and the data obtained has a small error and high accuracy.

3 Differential amplifier circuit

THS4503 is selected as the differential amplifier circuit. Since the frequency of the excitation signal is fixed at 100 kHz, a capacitor is added to the feedback resistor of the differential amplifier to achieve the effect of filtering and avoiding self-excitation. The signal output from the low-pass filter needs to be amplified by the differential amplifier and then output a pair of differential signals to provide voltage for the primary coil of the transformer. The power supply adopts ±5V dual power supply, and the two output terminals of THS4 503 are connected to the two ends of the primary coil of the transformer through two isolation resistors with a resistance of 12Ω. The specific circuit diagram is shown in Figure 3.

4 Test content and results

During the circuit debugging process, each module was debugged separately, and the debugging results were good. The debugging data table is omitted. When debugging the whole machine, the signal waveforms at points A, B, and C were measured. The signal waveform at point C is good and undistorted. The DC signal output at points A and B has no ripple jitter and the value is accurate. For displacement measurement, the experimental data are shown in Tables 1 and 2. By analyzing the displacement measurement results, it can be seen that the displacement measurement has a high accuracy, the maximum error is 0.5 mm, and the measurement range is -20 to 20 mm. In general, the completion of the entire system is good.

5 Conclusion

The system's displacement measurement range is extended to -20 to 20 mm, and the actual measured approximate linear range of the homemade differential transformer is about -24 to 24 mm. It can achieve higher-precision measurements and a good dynamic range, but the linearity is not very good. This is mainly due to the limitations of factors such as the non-ideal uniformity and symmetry of the coil winding and the non-ideal core specifications. However, software correction can greatly improve the accuracy of displacement measurement, and the stability of the linearity will also be improved.

Keywords:MCU Reference address:A practical solution for high-precision measurement of displacement devices using microcontrollers and FPGAs

Previous article:Quickly master the skills of debugging newly designed PCB circuit boards
Next article:Design of Thyristor Trigger Circuit for AT89C2051 Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-16 16:47

Problems in measuring time with MC9S08DZ60 microcontroller
1. Problem Description When using the DZ60 timer to measure the cycle, it was found that after the TPM (timer) was initialized, it took more than 500 ms to barely measure. The waveform generated by TPM is shown in the figure below. The rising edge of the blue waveform is the time point when the initialization inst
[Microcontroller]
Problems in measuring time with MC9S08DZ60 microcontroller
Lesson 19: MCU timer and interrupt test
When we were learning microcontrollers, our first routine was to make the light flash. We did it with a delay program. Now, looking back, this is not very appropriate. Why? Our main program made the light flash, so we can't do other things. Is this the only way the microcontroller can work? Of course not. We can use a
[Microcontroller]
Writing 8051 MCU music player program in C
#define uchar unsigned char //define for easy use #define uint unsigned int #define ulong unsigned long #include //include a header file of a 52 standard kernel char code dx516 _at_ 0x003b; //This is for simulation setting sbit BEEP=P1^7; //speaker output pin sbit P10=P1^0; sbit K1= P3^2;     sbit K2= P3^5
[Microcontroller]
Five Questions and Answers about Microcontroller Crystal Oscillators
  1. What will happen if the 89c52 microcontroller is not connected to a crystal oscillator?   Answer: The microcontroller will not work and the program cannot be burned in... etc.   2. If the 89c52 microcontroller uses an external crystal oscillator, how should it be set?   Answer: Connect a 20~30pf capacitor to ea
[Microcontroller]
Design of Digital Image Signal Source Based on Camera Link Protocol and FPGA
1 Introduction At present, various imaging devices have been widely used in aerospace, military, medical and other fields. As part of the ground image acquisition device test system, the transmission mode and signal accuracy of the image signal source are important factors affecting the system performance. Due
[Test Measurement]
Design of Digital Image Signal Source Based on Camera Link Protocol and FPGA
51 MCU and 74HC164 static display interface
In the single-chip microcomputer application system, there are two common display methods: static display and dynamic scanning display. The so-called static display means that each display must occupy a separate I/O interface with a latching function for the stroke segment glyph code. In this way, the single-chip micro
[Microcontroller]
Microcontroller-controlled current loop AFE protection
Summary: Current shunting in an isolated 0-20mA current loop with a precision resistor analog front end can quickly protect a fuse or automatic current-limiting switch. The circuit shown, unlike the switch, offers an option to record fault events under microprocessor control. The circuit includes a comparator (MAX99
[Industrial Control]
Microcontroller-controlled current loop AFE protection
Application of MAX194 in ARM microcontroller system
Introduction In order to realize the automatic measurement and control of computers, A/D conversion technology is adopted in more and more fields. With the development of large-scale integrated circuit chip technology, integrated circuit chips with faster speed, higher precision and more convenient use are eme
[Microcontroller]
Application of MAX194 in ARM microcontroller system
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号