The encoder is a digital sensor that integrates optical, mechanical and electrical technologies. It mainly uses the principle of grating diffraction to achieve displacement and digital conversion, and converts the mechanical geometric displacement on the output shaft into pulses or digital quantities through photoelectric conversion.
Encoders are widely used in positioning, speed measurement, and length determination due to their simple structure, high precision, and long life.
Encoders can be divided into incremental encoders and absolute encoders according to their working principles.
1. Incremental encoder
Incremental encoders provide a method for sensing the discretization, incrementation and displacement change (speed) of continuous displacement. The characteristic of incremental encoders is that each incremental displacement corresponds to an output pulse signal. Incremental encoders measure the relative position increment relative to a certain reference point, and cannot directly detect the absolute position information.
The incremental encoder is mainly composed of a light source, a code disk, a detection grating, a photoelectric detection device and a conversion circuit. The code disk is engraved with radial light-transmitting slits with equal pitches, and the interval between two adjacent light-transmitting slits represents an incremental cycle. The detection grating is engraved with two groups of light-transmitting slits A and B corresponding to the code disk, which are used to pass or block the light between the light source and the photoelectric detection device. Their pitch is equal to the pitch on the code disk, and the two groups of light-transmitting slits are staggered by 1/4 pitch, so that the signal output by the photoelectric detection device differs by 90° in phase. When the code disk rotates with the measured shaft, the detection grating does not move, and the light passes through the slits on the code disk and the detection grating to irradiate the photoelectric detection device. The photoelectric detection device outputs two groups of electrical signals that are approximately sinusoidal waves with a phase difference of 90°. After the sine wave is processed by the conversion circuit, a rectangular wave will be obtained, and then the rotation angle or speed information of the measured shaft can be obtained.
Incremental encoder components and principles
Generally speaking, the incremental photoelectric encoder outputs a pulse signal with a phase difference of 90° between the A and B phases (the so-called two-phase orthogonal output signal). The rotation direction of the encoder can be easily determined based on the position relationship between the A and B phases. In addition, the code disk generally provides a Z-phase mark pulse signal used as a reference zero position. Each time the code disk rotates one circle, a zero position mark signal will be issued.
Incremental encoder output signal
2. Absolute encoder
The principle and components of the absolute encoder are basically the same as those of the incremental encoder. The difference from the incremental encoder is that the absolute encoder uses different digital codes to represent each different incremental position. It is a sensor that directly outputs digital quantities.
There are several concentric code tracks along the radial direction on the circular code disk of the absolute encoder. Each code track is composed of light-transmitting and light-impermeable sectors alternately. The number of sectors of adjacent code tracks is doubled. The number of code tracks on the code disk is the number of bits of its binary digits. On one side of the code disk is the light source, and on the other side there is a photosensitive element corresponding to each code track. When the code disk is in different positions, each photosensitive element converts the corresponding level signal according to whether it is illuminated or not, forming a binary number. Obviously, the more code tracks, the higher the resolution. For an encoder with n-bit binary resolution, its code disk must have n code tracks.
Absolute encoder schematic diagram
According to the different encoding methods, the code disk of the absolute encoder is divided into two forms, namely binary code disk and Gray code disk.
Absolute encoder disc
The characteristic of absolute encoder is that it does not need a counter, and a fixed digital code corresponding to the position can be read at any position of the rotating shaft, that is, the absolute value of the angle coordinate can be read directly. In addition, compared with incremental encoder, absolute encoder does not have cumulative error, and the position information will not be lost when the power is cut off.
3. Encoder output signal type
The encoder's signal output has multiple signal output forms such as open collector output, voltage output, line drive output and push-pull output.
(1) Open collector output type
The collector open output type uses the emitter of the transistor in the output circuit as the common terminal, and the collector is left floating. Depending on the type of transistor used, it can be divided into two types: NPN collector open output type and PNP collector open output type.
NPN open collector output type
PNP open collector output
(2) Voltage output type
The voltage output type is based on the collector open circuit output circuit, and a pull-up resistor is connected between the power supply and the collector, so that there is a stable voltage state between the collector and the power supply. This type of output circuit is generally used when the encoder power supply voltage is consistent with the voltage of the signal receiving device.
Voltage output type
(3) Push-pull
The push-pull output mode consists of two transistors, one of PNP type and the other of NPN type. When one of the transistors is turned on, the other is turned off, and the two output transistors operate alternately.
Push-pull output
This output form has high input impedance and low output impedance, so it can also provide a wide range of power under low impedance conditions. Since the input and output signals are in the same phase and have a wide frequency range, it is also suitable for long-distance transmission.
The push-pull output circuit can be directly connected to the circuit with NPN and PNP open collector input, that is, it can be connected to the module with source or sink input.
(4) Line drive output type
The line driver output interface uses a dedicated IC chip. The output signal complies with the RS-422 standard and is output in a differential form. Therefore, the line driver output signal has a stronger anti-interference ability and can be used in high-speed, long-distance data transmission occasions. It also has the characteristics of fast response speed and strong anti-noise performance.
Line drive output
It should be noted that in addition to the above-listed encoder output interface types, many manufacturers now produce encoders with intelligent communication interfaces, such as PROFIBUS bus interface. This type of encoder can be directly connected to the corresponding bus network and read out the actual count value or measurement value through communication, which will not be explained here.
4. Wiring between encoder and S7-200 SMART PLC
(1) Wiring between PNP output encoder and S7-200 SMART PLC
When connecting a PNP output encoder to an S7-200 SMART PLC, follow the connection method of a sink input.
Wiring of PNP output encoder and S7-200 SMART PLC
(2) Wiring between NPN output encoder and S7-200 SMART PLC
When connecting an NPN output encoder to an S7-200 SMART PLC, follow the source input connection method.
Wiring of NPN output encoder and S7-200 SMART PLC
5. Selection of incremental encoder
When selecting an incremental encoder, the following parameters can be considered comprehensively.
(1) Power supply voltage
The power supply voltage refers to the voltage of the encoder's external power supply, which is generally DC 5~24V.
(2) Resolution
Resolution refers to the number of pulses output by the encoder when it rotates one circle. In engineering, it is generally called the number of output lines. When producing encoders, encoder manufacturers usually divide the same model of products into different resolutions. The resolution is generally between 10 and 10,000 lines. Of course, there are also products with higher resolutions.
(3) Maximum response frequency
The maximum response frequency refers to the maximum frequency of the encoder output pulse. Common maximum response frequencies are 50kHz and 100kHz.
(4) Maximum response speed
The maximum response speed refers to the maximum speed at which the encoder runs, which depends on the resolution and maximum response frequency of the encoder. The calculation formula for the maximum response speed is as follows:
(5) Output signal type
The output signal has various signal output forms such as open collector output, voltage output, line drive output and push-pull, see "3. Encoder output signal type" for details.
(6) Output signal mode
There are three types of encoder output signals: single pulse output, A/B/Z three-phase pulse output, and differential linear drive pulse output. Among them, A/B phase pulse output is the most commonly used.
1) Single pulse output type. Single pulse output refers to the output of a pulse waveform with a duty cycle of 50%. Single pulse output has a low resolution and is often used in occasions such as speed measurement and pulse counting.
Single pulse output type
2) A/B/Z three-phase pulse output type. A/B/Z three-phase pulse output is the most commonly used output signal mode for incremental encoders. The lead and lag relationship of the A/B phase pulse phase can be used to determine whether the incremental encoder is forward or reverse. If viewed from the shaft side of the incremental encoder, the encoder rotates clockwise, that is, forward, and the waveform is that the A phase pulse leads the B phase pulse by 90° in phase, as shown in Figure a below; if viewed from the shaft side of the incremental encoder, the encoder rotates counterclockwise, that is, reverse, and the waveform is that the A phase pulse lags the B phase pulse by 90° in phase, as shown in Figure b below; the Z phase pulse is the zero mark pulse, and the encoder sends one pulse for every revolution.
Previous article:A brief discussion on star connection and triangle connection in three-phase motor circuits
Next article:Comparison between DDC and PLC in air-conditioning automatic control system
Recommended ReadingLatest update time:2024-11-16 10:28
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- Configuration example of ModbusTCP to Profinet gateway connecting to tightening shaft drive
- What books should Linux newbies read?
- C6000 embedded assembly C and assembly comparison and function description
- MicroPython 1.17 released
- EEWORLD University Hall----Live Replay: ADI's Vital Signs Monitoring Solutions in Wearable Products
- FPGA implementation of SPI42 interface.pdf
- Human-machine ring material——Good to see——【Quality knowledge】
- Three gifts for registering for the conference | Live broadcast of Siemens' full-stack automotive semiconductor solutions - helping automakers form a closed R&D loop!
- MSP430Ware use notes to initialize XT1
- Arrow Electronics' award-winning live broadcast starts at 10:00 this morning: Intel FPGA Deep Learning Acceleration Technology