Design of displacement sensor based on magnetic sensing technology

Publisher:行者无疆1978Latest update time:2010-09-12 Source: 微型机与应用Keywords:MLX90316 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Non-contact measurement of object displacement is one of the important development directions of displacement measurement technology. This is because non-contact measurement methods have the advantages of high speed and no contact with the object being measured. Traditional contact displacement sensors use potentiometer displacement sensors, which convert mechanical displacement into resistance or voltage output that is linear or has an arbitrary function relationship with it through potentiometer elements [1]. Potentiometers designed for the purpose of measuring displacement require a definite relationship between displacement change and resistance change. There are many types of non-contact displacement sensors, such as time-grid displacement sensors [2], linear displacement differential sensors [3], capacitive grid displacement sensors [4], inductive displacement sensors [5], etc. These sensors have high accuracy, but complex structures and high costs. They also impose restrictions on the movement speed of the object being measured, such as smooth operation, no sudden changes, and relatively low speed.

From the perspective of engineering application, this paper designs a displacement sensor based on magnetic sensitive technology, which has successfully improved the accuracy, shock resistance, durability and other aspects of the sensor.

1 Working principle of magnetic sensor

In the displacement sensor based on magnetic sensitive technology, MLX90316 is selected as the acquisition of magnetic sensitive angle.

The MLX90316 is a linear Hall chip that adds an integrated magnetic field concentrator (IMC) to a Hall effect sensor[6]. It can sense all three components of magnetic flux at a single point, so it can obtain a 360° rotational position value, output a highly accurate linear absolute position signal through multiple modes, and is low-cost and easy to install. Ordinary horizontal (or planar) Hall sensors can only sense magnetic flux perpendicular to the IC surface.

The front end of the MLX90316 chip is a sensor using Triaxis Hall technology. The two orthogonal analog signals obtained by the Hall sensor are amplified and processed, and then enter the chip microprocessor (DSP) through a 14-bit differential A/D converter. After being processed by the 16-bit DSP, the digital signal is divided into three outputs. The MLX90316 output has 12-bit angle resolution and 10-bit angle accuracy, and can avoid the influence of external temperature changes on output accuracy to a certain extent. The MLX90316 has three outputs: analog output converted from 12-bit D/A; PWM output with a frequency of 100 Hz to 1 000 Hz; and serial communication protocol output (SPI) in digital mode.

In this design, SPI interface output is selected.

2 Hardware interface circuit design

The displacement sensor based on magnetic sensitive technology is mainly composed of three parts: front-end angle signal acquisition, data processing unit, and data communication unit. The specific functional block diagram is shown in Figure 1.

The magnetic angle sensor uses MLX90316, which converts the angle of rotation of the magnetic field caused by the displacement into the magnetic angle.
The microprocessor unit communicates with MXL90316 through the SPI interface to complete the reception of the magnetic angle data. Since the received angle is the angle of magnetic field conversion, the magnetic angle is converted into the displacement of the wire by establishing a mathematical model and combining factors such as the hub diameter. All tasks of the sensor are ultimately run on the real-time operating system μC/OS-II. Therefore, not only the internal resources of the microcontroller should be considered, but also its portability and scalability. LPC2136 is a 32-bit ARM7TDMI-S microprocessor produced by Philips [7], embedded with 256 KB high-speed Flash memory. It adopts a three-level pipeline technology, and instruction fetching, decoding and execution are carried out simultaneously, which can process instructions in parallel and improve the CPU running speed. Due to its very small size and extremely low power consumption, it has strong anti-interference ability and is suitable for various industrial controls.

The data communication unit is designed with a RS485 communication interface, which is responsible for receiving commands from the application system and returning the collected displacement results to the application system.

2.1 SPI interface circuit design

MLX90316 has 1 SPI interface for angle signal data. Since the output signal of serial communication comes directly from the internal DSP output, the SPI output mode is more stable, with smaller errors and higher anti-interference ability. In this design, the SPI interface is selected. The specific hardware interface connection circuit is shown in Figure 2. In Figure 2, the SPI 3 lines of MLX90316 are connected to the SPI0 port of LPC2136. The SPI (Serial Protocol Interface) bus interface is a synchronous serial peripheral interface. This is a serial interface protocol with 4 signal lines, including master and slave modes. The 4 signal lines are: clock line (SCK), data input line (MISO), data output line (MOSI) and slave enable line (/SS).

In the SPI interface, LPC2136 is used as the master and MLX90316 is used as the slave. The SPI communication module mainly allows LPC2136 to read the magnetic sensitivity angle of MLX90316. The SPI communication process is as follows: the master first outputs a 0xAA and a 0xFF as the communication start signal, and then outputs 8 0xFFs, while the slave will simultaneously output 2 0xFFs, 4 B angle signals and 4 0xFFs, thus completing a data communication. The specific communication timing is shown in Figure 3.

2.2 RS485 communication interface circuit design

The RS485 bus has been widely used in industrial control systems due to its many advantages, such as simple structure, high communication rate, and long transmission distance. It uses balanced transmission and differential reception to achieve communication. The transmitter converts the TTL level signal of the serial port into two differential signal outputs, A and B. After cable transmission, the differential signal is restored to a TTL level signal at the receiver [8]. Since the transmission line usually uses twisted pair cables and differential transmission, it has a strong ability to resist common mode interference, and the bus transceiver has a high sensitivity.

An RS485 signal output is designed in the displacement sensor based on magnetic sensitive technology. The RS485 interface chip uses MAX3485 to exchange displacement data with the application system. As shown in Figure 4, in order to ensure the reliability of data communication, the communication interface uses the photoelectric isolation chip 6N137.


3 Implementation of displacement calculation algorithm

MLX90316 collects the rotation angle data, and ARM calculates the linear displacement data by establishing a mathematical model based on the acquired angle data. ARM communicates with the device of the application system through the RS485 communication interface, receives commands from the application system device, and feeds back the collected displacement signal to the application system.

The displacement calculation formula is:

where R is the linear displacement distance causing the angular transformation of MLX90316, the center radius of the angular transformation, φ is the angle of rotation of MLX90316 caused by the linear displacement, and L is the linear displacement.

4 Engineering Application and Conclusion

(1) Magnet selection

Any magnet with uniform horizontal magnetic flux can be used. The size and material of the magnet are not critical. The horizontal magnetic flux must be within the range of 20-70 mT (e.g., 45 mT ± 25 mT) within mechanical, magnetic field and thermal tolerances.

(2) Air gap distance

In terms of air gap, if the actual air gap from the IC surface is greater than 7.5 mm, a ring magnet is better than a disc magnet. The magnet can be placed at the end of the shaft, and when using a ring magnet, it can be wrapped around the shaft. Special magnet designs can also be used to obtain normal transmission characteristics of the rotary position sensor.

In the "Intelligent Detection System of Dam Displacement Based on FPGA Technology", this sensor is used to collect the displacement of the dam root stone. The 35 monitoring points are connected into a star network using the RSS485 bus. From the test results, it can be seen that this sensor overcomes the shortcomings of traditional wire-type displacement sensors such as easy wear, poor resolution, low resistance, and poor high-frequency characteristics, and improves the measurement accuracy.

Keywords:MLX90316 Reference address:Design of displacement sensor based on magnetic sensing technology

Previous article:Analysis of Lightning Protection Control in Petrochemical Instrumentation System
Next article:Overview and measurement principle of radio frequency admittance level meter

Latest Industrial Control 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号