introduction
There are many traditional methods for measuring the diameter of round steel in the steel industry, such as sampling detection using sizing tools and electromagnetic contact measurement. Measuring with sizing tools is not accurate enough and the speed is very slow; electromagnetic measurement is a contact measurement, which is more troublesome and the accuracy and speed are difficult to guarantee. CCD charge-coupled devices are widely used in photoelectric detection and photoelectric imaging fields such as image scanning, non-contact sizing detection, displacement measurement, barcode reading, etc., and have the advantages of self-scanning, high accuracy, high sensitivity, and wide spectral response [1]. The CCD micron-level non-contact round steel photoelectric diameter gauge is a non-contact photoelectric diameter measuring device for round steel based on CCD photoelectric detection technology. It has the advantages of non-contact, high speed, high accuracy, miniaturization, and simple structure. It can dynamically and non-destructively monitor the slight changes in the diameter of round steel at any time on the production line under harsh conditions such as low light, high temperature, and high speed, and has high practical value.
1 Overall system design
1.1 Measuring principle of CCD micron-level non-contact round steel photoelectric diameter gauge
The optical path measurement principle of the CCD micron-level non-contact round steel photoelectric diameter gauge is shown in Figure 1.
Figure 1 Optical path measurement principle of CCD round steel photoelectric diameter gauge
The parallel light source emits a parallel light beam from the mirror L1. This light beam irradiates the round steel workpiece in the optical path and is imaged on the photosensitive surface of the CCD through the optical lens L2. The CCD device converts the light signal on the photosensitive surface into a charge proportional to the light intensity, which is reflected in the output signal U0 waveform of the CCD under the drive of a clock pulse of a certain frequency. Signal processing is performed on U0, and the actual size of the workpiece is calculated and calibrated based on the width of the workpiece image in the CCD output waveform.
1.2 Main signal processing process
The relationship between the CCD line synchronization pulse FC and the standard pulse SP and the output signal U0 is shown in Figure 2(a). After the workpiece is placed, the U0 waveform portion in the middle of the line synchronization pulse FC becomes a low level, and the width of the low level changes linearly with the diameter of the workpiece, as shown in Figure 2(b).
Figure 2 CCD output signal
The signal U0 is processed in each row pulse FC cycle, and the process is shown in Figure 3. The U0 signal is passed through a low-pass filter circuit to filter out high-frequency interference; U0 is subjected to a primary differential boundary separation, and then the signal is uniformly processed through an absolute value circuit to facilitate secondary differential processing; then secondary differential processing is performed to improve the resolution, and then the measurement center is found through a zero-crossing detection circuit, and finally binarization processing is performed to prepare for subsequent pulse counting.
Figure 3 The process of signal processing U0 during the FC period of the line pulse
1.3 System construction plan
The system construction plan is shown in Figure 4.
Figure 4 Overall system construction plan[page]
The light source box is composed of a high-brightness LED and a lens with a suitable focal length, and its characteristics are used to generate good parallel light, which illuminates the object and then forms an image on the CCD through the optical lens. The output signal of the CCD is transmitted to the integration time adjustment and signal processing circuit module through the 9-pin serial port, and then this module transmits the processed signal to the counting and communication circuit module for counting measurement conversion, and communicates with the display module to send the measured value to the ARM processor. Finally, the intelligent display terminal displays the measured value and realizes functions such as calibration query.
2 System Implementation
2.1 Integration time adjustment and signal processing circuit
2.1.1 Hardware Design
The structural block diagram of the integration time adjustment and signal processing circuit is shown in Figure 5.
Figure 5: Block diagram of the integration time adjustment and signal processing circuit
Since the output signal U0 of CCD is affected by the light intensity, the stronger the light intensity, the larger the amplitude of U0 waveform, so it is necessary to adjust the integration time of CCD in a closed loop to ensure that the maximum amplitude of signal U0 is within the range of 3-4 V. The waveform of U0 is compared with 3 V and 4 V voltages through the dual comparator LM393, and the comparison result is input into the single-chip microcomputer AT89C2051. The single-chip microcomputer sets the integration time setting position M0-M3 of the CCD driver through four data lines according to the result (where 0000 is the shortest integration time and 1111 is the longest integration time) to ensure that there is a suitable integration time so that the maximum amplitude of U0 is within the required range, which is convenient for accurate measurement. After the integration time is adjusted, the line synchronization pulse FC is output through the AND gate control. U0 is processed by filtering, first differentiation, filtering, absolute value, amplification, second differentiation, filtering, and level adjustment built by four dual op amps LM353, and then compared with 0 V by LM393 comparator for zero crossing detection. The signal is input into the microcontroller AT89C2051 for software binarization, and then the signal is output.
2.1.2 Software Design
The program flow of integration time adjustment and signal processing is shown in Figure 6.
Figure 6 Integration time adjustment and signal processing program flow
When there is external light interference in the system, the integration time needs to be adjusted in real time. The program uses the line synchronization pulse FC as the interrupt source. In the line synchronization pulse FC, it is constantly judged whether the amplitude of U0 is within the range of 3 to 4 V. If not, the values of M0 to M3 are adjusted immediately until the amplitude of U0 is appropriate. At this time, the line synchronization pulse FC is output through the AND gate control, and the zero-crossing detection signal is binary-valued and output.
2.2 Counting and Communication Module
2.2.1 Hardware Design
The structural block diagram of the counting and communication module is shown in Figure 7.
Figure 7 Counting and communication module structure diagram
The single-chip microcomputer AT89C2051 receives the signal from the integration time adjustment and signal processing module. By counting the standard pulses within the line synchronization pulse FC period, the number of standard pulses within the two boundaries of the U0 waveform workpiece imaging can be obtained. The relationship between the standard pulses and the measured standard size of the workpiece is found out for calibration, and the actual size of the workpiece can be obtained. The measured value can be temporarily stored in the off-chip RAM expanded by 74LS373 and DS1225, and then sent to the display module through the RS232 serial port.
2.2.2 Software Design
The block diagram of counting and communication program in MCU is shown in Figure 8.
Figure 8 Counting and communication program flow in MCU
There are serial port interrupt and external interrupt 0 in the program. Set the serial port interrupt as a high priority interrupt. The serial port receiving interrupt receives the control instructions from the ARM microprocessor in the display module to determine whether to start measurement, storage or query; the serial port sending interrupt sends the measured value to the ARM microprocessor for display. The falling edge of the line synchronization pulse FC is used as the external interrupt 0 trigger signal. After the falling edge of FC arrives and generates an interrupt, the standard pulse counting begins. When the binary signal Q changes from high level to low level, the number of standard pulses N1 is recorded at this time. When the binary signal Q changes from high level to low level, the counting stops and the number of standard pulses N2 is recorded at this time; N=N2-N1. The measured value is calculated according to the coefficient obtained by calibration and converted into ASCII code and temporarily stored in the external RAM for direct display or query. [page]
2.3 Display Module
The ARM microprocessor receives the touch key operation information and analyzes what operation to perform, then sends instructions to the counting communication module through the serial port, and receives the measurement information from the counting communication module through the serial port. The measurement information is displayed through the LCD touch screen, and the measurement information and operation interface can also be stored through Flash/RAM.
The display module software design process is shown in Figure 9.
Figure 9 Display module program flow
The program continuously scans the touch keyboard and waits for the serial port interrupt. If a key is pressed, the corresponding instruction is sent to the serial port to control the counting module to measure; if there is a serial port interrupt to determine the corresponding word head, the LCD display is controlled or the system settings are updated.
3 System implementation effect
The system implementation effect is shown in Figure 10.
Figure 10 System implementation effect
The overall effect of the system is good, the volume is small and it is non-contact measurement. The measurement accuracy and speed basically meet the requirements of micron-level measurement, and the error is between ±0.005 mm, which is higher than the national production measurement accuracy standard; the human-machine interface is friendly and can well meet the requirements of static or dynamic measurement of round steel in the production process.
Conclusion
This paper proposes a design scheme for a linear array CCD micron-level non-contact round steel photoelectric diameter measuring instrument. With ARM microprocessor and single-chip microcomputer as the core, it solves the limitation of contact measurement in the traditional round steel diameter measuring method. It has the characteristics of simple structure, miniaturization, non-contact and high precision. The experimental results show that the system realizes CCD non-contact round steel photoelectric diameter measurement, with accurate measurement results, high precision and good stability, and can directly and conveniently display the measurement results. The system has been applied to high-standard detection of round steel production in steel plants and has high practical application value.
Previous article:Visual Analyzer 8.0 for Windows
Next article:Mobile phone wireless communication test technology uses spectrum analyzer
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- 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
- Keil compilation and bit-band operation issues
- EVK-NINA-B400 Evaluation Kit] + Start EKV-NINA-B400 Programming
- Four physical models of IoT systems
- ATA-3000 series power amplifier, 810W high power to match your test solution needs!
- ST MEMS Creative Competition Post 3 - Learning and Application of Six-axis Sensor LSM6DSOX
- Watch TE Sensors videos in the TE Webinar Learning Center
- Output Capacitor
- DIY diamond ring with nuts
- The problem of Bluetooth main module sending data to CC2541
- [Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] 4. Download BootLoader and establish Bluetooth connection...