1 Introduction
With the demand for railway transportation in social and economic life and the continuous development of science and technology, the capacity of railway transportation is increasing, and the requirements for railway transportation safety are also higher. However, with the implementation of the five-speed increase of the whole railway, the safety hazards of crossings have become more and more prominent, and have become the bottleneck of railway transportation safety and railway transportation capacity. Crossing monitoring and alarm devices have a very positive significance in reducing the accident rate of crossings and protecting the safety of crossings. However, from the current research results and practical applications, most of them adopt track circuit type and mechanical type, and a small part adopts Doppler radar type and acoustic receiving type. Each has its own advantages and disadvantages in performance, and the cost and volume are also different.
This paper uses magnetoresistive sensors and designs a railway track alarm information collection device based on the magnetic field effect, and gives the design method of its software and hardware.
2 System working principle
The phenomenon that the resistance value of a current-carrying conductor changes in a magnetic field is called magnetoresistance effect. For iron, cobalt, nickel and their alloys, if these metals are made into thin film strip conductors, when current passes through, their resistance changes. The magnitude of the change varies depending on the relative relationship between the combined magnetization direction of the internal and external magnetic fields and the direction of the current flow. If they tend to be in the same direction, the resistance increases; otherwise, it decreases [1]. As shown in Figure 1, four permalloys form a wheatstone bridge, and the change in resistance converts the external magnetic induction intensity into a differential voltage output [2].
Large ferromagnetic objects, such as trains, can be seen as a model composed of multiple north and south pole magnets. When a train passes by, it will cause disturbances in the geomagnetic field, and its combined effect is to cause distortion and distortion of the geomagnetic field lines. When the sensor is in this changing magnetic field, it can be seen from the magnetoresistance effect that a changing voltage will be generated at the differential output end of the sensor, and this is the theoretical basis for this system to detect trains.
Figure 1 Schematic diagram of magnetoresistive sensor
3 System Hardware Design
The hardware part of the railway track alarm information collection system is mainly composed of a data acquisition module and a data processing module. The data acquisition module is responsible for the collection of magnetic field signals, and its main core is the magnetoresistive sensor. When the train approaches the magnetoresistive sensor, the sensor will collect the magnetic field change signal, and after signal amplification and A/D conversion, it will be converted into a discrete digital signal and transmitted to the microcontroller (single-chip microcomputer). The main component of the data processing module is the single-chip microcomputer. The single-chip microcomputer is responsible for the timing control of each chip. At the same time, in order to improve the anti-interference ability of the system, the collected data must be filtered before it can be sent to the serial port and read by the communication device. The hardware design block diagram of this system is shown in Figure 2.
Figure 2 System hardware design block diagram
3.1 Data acquisition module
In this system, the magnetoresistive sensor used is the HMC1051Z single-axis magnetoresistive sensor produced by Honeywell. HMC1051Z has a wide angle range, a resolution of <0.07° within ±45°, a sensitivity of 1.0mV/V/Gauss, and a full-scale output of 120mV when powered by a 5V power supply. There are no moving parts inside, the inherent impedance is small, the anti-electromagnetic noise and interference ability is strong, and the built-in set/reset belt can reduce the temperature drift, nonlinear error and the impact on the output signal in a high magnetic field environment. The on-chip bias circuit can eliminate the influence of magnetic field distortion [3].
The LM358 op amp, with two 4.99kω, two 1.00mω resistors and a 150pF capacitor, can form an amplifier circuit with a low-pass filter. Its gain is 200 and the bandwidth is about 1kHz, which can achieve the amplification and hardware filtering of the sensor output signal.
The A/D converter uses an ADC0804 analog-to-digital converter with an 8-bit resolution to perform analog-to-digital conversion on the amplified signal.
3.2 Data processing module
Atmel's AT89C51 microcontroller is compatible with the instruction system and pins of MCS-51, and comes with a 4KB E2ROM. However, in order to meet the needs of future upgrades and functional expansion, the memory of AT89C51 is expanded here. The program memory AT28C64 and the data memory HM6264LP-70 are both 8KB in capacity, and P0.0~P0.7 and P2.0~P2.4 are used to provide 13-bit addresses, and 74LS373 latches its lower 8-bit address. P2.5 and P2.6 are used to line select the two memories.
Since the signal needs to be sent to the DB-9 serial port connector, MAX232 is used here to convert between TTL and RS-232 levels. Connect the T1in pin of MAX232 to the serial transmission pin TXD of AT89C51, and R1out to the serial reception pin RXD of AT89C51; the corresponding R1in and T1out are connected to the corresponding RXD (pin 2) and TXD (pin 3) of the 9-pin serial port connector (DB-9).
4 System software design
The software design part of this system is mainly the design of the A/D conversion subroutine and the data processing subroutine, and is developed using the Keil μVision2 development tool.
4.1 A/D conversion subroutine
The flow chart of the A/D conversion subroutine is shown in Figure 3. First, set (the design end has been grounded) to a low level, start ADC0804, query interrupt 0, and the analog-to-digital conversion is completed 100μs after the rising edge, and the result is stored in the data latch. When it is low, the data signal is sent to the P1 port.
Figure 3 A/D conversion subroutine flow chart
4.2 Data processing subroutine
The data processing subroutine of this system is to perform anti-interference processing on the collected data to improve the stability and reliability of the system. The flow chart is shown in Figure 4.
Figure 4 Data processing subroutine flow chart
The data processing subroutine uses a constant threshold combined with a dynamic base value algorithm to achieve the system's anti-interference ability, that is, the most recent collected data is subtracted from the base value, and the subtracted value is judged. If it is greater than the threshold, it is recorded. When a certain number of records are recorded, it can be determined that the train has arrived; the base value can be updated in real time according to the changes in the surrounding magnetic field. The program written according to this algorithm can achieve the purpose of system self-adaptation on the one hand, and on the other hand, it can freely set the anti-interference processing level (threshold size and base value sampling times) to facilitate different types of needs.
Using a magnet and a radio as the target objects, respectively, under the operating conditions of moving away from and approaching the system, observe and record the voltage effective value of the differential output terminal of the magnetoresistive sensor and the voltage value after the LM358 operational amplifier amplifies it 200 times. The two groups of experiments were conducted ten times respectively, and each time the target object cuts in at different angles and positions when moving away from and approaching the system. The experimental results are shown in Tables 1 and 2.
According to the experimental results, the magnetic field strength of the object and the position of the object relative to the sensor will cause a large change in the measured value, and the change is more obvious for objects with a large magnetic field strength. This characteristic can be used to judge the arrival of a train.
5 Conclusion
This paper describes the development process of a railway track alarm information collection system based on the magnetoresistance effect from the perspective of engineering application. The system has the advantages of low power consumption, low cost and stable performance. The system can be connected to wireless devices such as GPRS to form a remote alarm system, so it has certain practical value.
Previous article:Research on Anti-reflection Films for Crystalline Silicon Solar Cells
Next article:Analysis of the Integrated Automation System of Substation
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- Use of Zero-knowledge development board and infrared human body sensing module
- [Beetle ESP32-C3 Review] Part 1: vscode+idf to build ESP32-C3 development environment
- Synthesizable Verilog Syntax (Cambridge University, photocopy)
- Several states of microcontroller IO port output
- [AD21] When exporting BOM from AD, the values are different. Why are they not separated?
- msp430f5529 capture plus serial port source code
- #idlemarket#Multiple board replacements (stm32, 51, NRF51822)
- Use the C language library setjmp/longjmp function for exception recovery
- Optimized spacer electric field analysis port 1 to 2 after learning
- More than 5 million new mobile phones have been infected with Trojan viruses, most of which are "old people's phones"!