The application of fiber Bragg grating sensors is a burgeoning field with a very broad development prospect. At present, the main obstacle that limits the large-scale practical application of fiber Bragg grating sensors is the demodulation of the sensing signal. There are many fiber Bragg grating sensor demodulation methods, but there are not many demodulation products that can be used in practice, and they are expensive. Therefore, researching and developing demodulation systems suitable for practical engineering applications and reducing the cost of demodulation systems are key issues to promote fiber Bragg grating sensors in practical engineering applications.
In view of this, in order to meet the needs of engineering applications, this paper proposes a fiber Bragg grating demodulation technology based on a single-chip microcomputer, that is, using the currently widely used and relatively cheap single-chip microcomputer as the MCU for signal acquisition and processing, to develop a demodulator that is high-precision, cheap, portable, can perform fast measurements, and can easily obtain the size of the measured parameter. In order to solve the problem of the slow speed of a single single-chip microcomputer, a dual CPU is used in the system, in which one single-chip microcomputer completes the signal demodulation algorithm, while the other single-chip microcomputer completes the logic control, human-machine interface and communication with the host computer, and realizes dual-machine data sharing through dual-port RAM.
1. Demodulation system structure and principle
The overall structure of the demodulation system is shown in Figure 1. It mainly consists of three parts: Bragg grating (measurement grating), fiber Bragg demodulator, and computer. The fiber Bragg demodulator can be divided into two parts, the analog circuit part and the digital circuit part. The function of the analog circuit part is to convert the strain or temperature change of the Bragg grating (measurement grating) into a corresponding electrical signal, and the digital part converts the electrical signal into a digital signal that can be directly used by the host computer, which can be a wavelength value or a temperature or strain value. The MCU used to realize this function is a single-chip microcomputer.
Figure 1 Overall structure of demodulation system
The demodulation principle of the demodulation system is based on the working principle of the tunable Fabry-Perot cavity (FP demodulation). The fiber FP cavity filter used for Bragg grating sensor signal demodulation is actually a voltage-controlled optical bandpass filter, and piezoelectric ceramics are usually used as the driving element for the change of the FP cavity length. When a scanning voltage is applied to the piezoelectric ceramic, the piezoelectric ceramic will expand and contract, thereby changing the cavity length of the FP cavity and changing the wavelength of the light passing through the FP cavity. The intensity of the transmitted light is detected by the detector. When the detector detects the maximum light intensity, the voltage applied to the piezoelectric ceramic corresponds to the reflection wavelength of the FBG. In this way, an optical signal is injected into the Bragg fiber grating sensor, and the light reflected from the FBG sensor is added to the input end of the fiber FP cavity filter. By adding a triangular scanning voltage to the voltage-controlled end of the fiber FP cavity filter, a time domain electrical signal corresponding to the input light spectrum can be obtained at the output end of the fiber FP cavity filter. These time domain signals are shaped by the amplification circuit and the comparison circuit to obtain a series of pulse signals. We add some standard pulse signals with fixed wavelengths and positions to these pulse signals, and the relative position of each pulse in these pulse signals to the standard pulse contains the spectrum information of the reflected light of the FBG sensor. Figure 2 shows this demodulation process. Finally, the obtained pulses are converted into wavelength values through the circuit composed of a single chip.
2. The composition and working method of the single-chip microcomputer demodulation system
The primary purpose of the microcontroller demodulation system is to process these pulse signals into corresponding wavelength values. Through the demodulation of the analog part, we get a pulse signal containing the relative position of the measurement grating and the standard grating in the scanning cycle. The standard grating corresponds to a fixed wavelength, and the position of its corresponding pulse signal in each scanning cycle is fixed (the standard grating uses a constant temperature circuit to keep the wavelength constant). If the relative position value of each pulse signal can be obtained, the wavelength value of the measurement grating can be obtained through the interpolation algorithm.
Figure 2 Fiber Bragg grating sensor signal demodulation process [page]
In this demodulation system, the fiber Bragg grating produced by Wuhan University of Technology Optical Technology Co., Ltd. is used as the measuring grating, and the wavelength selector based on the FP cavity principle is used as the demodulation cavity. The measurement range can reach 30nm, the period of the triangular wave scanning signal is 1s, and the measurement frequency is 1Hz. The rising edge of the triangular wave scanning signal is divided into a finite number of counting points that can achieve the design accuracy, so that the position value of the FBG1, FBG2, .....FBGn grating array and the standard grating pulse signal in the rising edge of the triangular wave can be read out by a single-chip microcomputer. The function of another single-chip microcomputer is to use these values to calculate the wavelength and communicate data with the computer. The circuit diagram is shown in the figure. The single-chip microcomputer here is 89C52, and 4060 is used to generate a stable counting pulse. When the triangular wave starts, the No. 1 single-chip microcomputer counts. When a pulse arrives, the counter value is recorded and stored in the on-chip RAM; when the triangular wave reaches the highest point, the counter is cleared, the position value is sent to the dual-port RAM, and then waits for the next count. When CPU1 starts counting, CPU2 takes data out of the dual-port RAM, calculates the wavelength value or temperature value corresponding to the pulse through interpolation or other algorithms, and communicates with the computer.
Circuit diagram
We can input more measurement pulses simultaneously through other I/O ports of the microcontroller. By improving the optical path and analog circuit, we can make 2-channel and 4-channel fiber Bragg grating demodulators to provide more measurement points, and the digital circuit does not need to be changed at all, only the software part needs to be adjusted.
3. System analysis and data processing
If the microcontroller needs to record each pulse completely and correctly, then its counting and transmission instructions must be completed within the pulse width of each pulse. If the pulse width is only 1 counting unit, that is, the counting and transmission instructions need to be completed within about 10 microseconds. The maximum operating frequency of AMTEL's 89C52 can reach 24MHz, and its clock cycle is 0.5 microseconds. Then, as long as the counting and transmission instruction cycle does not exceed 20 clock cycles, the requirement can be met. A reasonable read and write program can obviously meet this requirement. Usually, the width of the pulse is generally much larger than 1 counting unit, so the change of the pulse can be recorded in real time. At the same time, the No. 2 microcontroller has 1s to take the data out of the RAM, calculate the median of the pulse, and then perform interpolation calculations, and the time is sufficient. If the algorithm is too complicated, such as using the Lagrange algorithm, etc., the position value can also be transmitted to the computer for data processing.
In the process of transmitting data from the microcontroller to the computer, errors may occur in the data. Error correction processing must be added to the communication program. Parity check methods can be used, such as single-byte check or multiple-byte check, etc. At the same time, in order to prevent occasional mutations in the grating position value, it is necessary to smooth the position value. Through the above processing methods, the computer can obtain a set of correct and stable data. In order to reduce the drift of the FP cavity and the influence of the system nonlinearity on the position value, we use a standard grating to compare and calculate with the measured grating, and a linear algorithm can be used for calculation. However, in actual application, it is found that when the grating to be measured is closer to the standard grating, the measurement value is more accurate; the farther away, the error is relatively large. In order to further improve the accuracy, 2 standards, 5 standards or comb filters can be used for piecewise linear interpolation calculations, which can greatly improve the measurement accuracy. Of course, more complex methods such as Lagrangian algorithm or multi-term formula can also be used to calculate the wavelength. In our instrument, the Lagrangian algorithm of 5 standard gratings is used to calculate the wavelength, and the temperature measurement accuracy can reach ±1℃.
4. Conclusion
The relationship between the relative position value of the pulse and the wavelength cannot be derived from theoretical knowledge at present, but it can be found through experiments and mathematical statistics to find out the change law and the corresponding relationship between them. Using this corresponding relationship, the relevant data processing is carried out in the single-chip microcomputer to obtain the measured temperature or stress. At present, we use the Lagrange algorithm and some appropriate data processing and calibration methods. Judging from the current working conditions of the demodulator, the effect is still good. The measurement accuracy can reach ±5pm, and the maximum repeatability error is 8pm. In order to increase the working frequency of the demodulator and improve the applicability of the demodulator, a demodulation circuit based on DSP or DSP+ARM can also be used, but the cost is relatively high.
FBG gratings have broad application prospects and can play an important role in communications, construction, machinery, medical treatment, aerospace, navigation, and mining. Theoretical research on FBG gratings has made great achievements so far. By adopting appropriate demodulation technology and reducing the cost of fiber Bragg grating, fiber Bragg grating sensors can be widely used in practical engineering.
The author's innovation: The fiber Bragg grating demodulator based on single-chip microcomputer is a demodulation system suitable for practical engineering applications, which greatly reduces the cost of the fiber Bragg grating demodulation system, facilitates its use in industrial sites, and enables the fiber Bragg grating sensor to be rapidly promoted in practical engineering applications.
Previous article:Design of multifunctional blood glucose meter based on MSP430 series microcontroller
Next article:Low Dropout Regulator for MCU
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【NXP Rapid IoT Review】+ Trial Computer Programming & Mobile Phone Control
- TMS320C6747 Fixed-point/Floating-point Digital Signal Processor
- Chip Manufacturing 7-Chip Manufacturing
- FPGA water lamp design vhdl source program
- USB packet capture module protocol
- The PWM wave output of TL494 in the boost circuit is abnormal. Please help me
- About the problem of AGND and DGND of microcontroller
- "Summer Benefits to Celebrate Dragon Boat Festival" Selected Resources for the Grab-a-Hot Event
- Reshaping the engineer experience: Tektronix invites you to attend the global launch of the new 2-series MSO at 2 pm on June 8 (today)!
- How to draw multiple boards with the same functional schematics on one PCB