123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Technology,-Gadget-and-Science >> View Article

Basics Of Encoder And Orthogonal Coding

Profile Picture
By Author: Jane Yu
Total Articles: 29
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

1. Basics of Encoder
Encoder is a kind of electromechanical equipment, which can be used to measure the movement of machinery or the target position of machinery. Most encoders use optical sensors to provide electrical signals in the form of pulse sequences, which can be converted into motion, direction or position information in turn.

1.1 Rotary Encoder vs. Linear Encoder
Rotary encoder can convert the rotation position or rotation amount into analog (such as analog quadrature signal) or digital (such as USB, 32-bit parallel signal or digital quadrature signal) electronic signal, which is generally installed on the rotating object, such as motor shaft.

Rotary encoder is a device that converts the shaft, or the angular position or movement of the shaft into analog code or digital code.

The rotary encoder can be used to measure the rotational motion of the shaft. The figure below shows the basic components of the rotary encoder, including a light emitting diode (LED), a code disk and a light sensor on the back of the code disk.

The code disk is arranged on the rotating shaft, and the sector ...
... areas of opaque and transparent are arranged on the code disk according to a certain coding form. When the code disk rotates, the opaque sector can block light, while the transparent sector allows light to pass through. In this way, a square wave pulse is generated, which can be compiled into the corresponding position or motion information.

A linear encoder is a sensor, transducer or reading-head linked to a scale that encodes position. The sensor reads the scale and converts position into an analog or digital signal that is transformed into a digital readout. Movement is determined from changes in position with time.

The encoder is usually divided into 100 to 6000 sectors per revolution. This shows that the 100 sector encoder can provide 3.6 degrees of accuracy, while the 6000 sector encoder can provide 0.06 degrees of accuracy.


2. Orthogonal Coding

2.1 Quadrature Output of Incremental Transmitter
Orthogonal coding is an incremental signal.

Here we can talk a little about what the incremental signal is.

Two kinds of square wave outputs A and B can be produced after the incremental encoder is rotated. These signals constitute the quadrature output of the incremental encoder.

For most encoders, these square waves A and B are out of phase by 90 degrees. By observing the changing state of a and B output, the direction of encoder can be determined. There are two channels: channel A and channel B.

When the reader of channel a passes through the bright area on the encoder disk, it will generate square wave pulse on channel a. If the area on the encoder wheel or reader is slightly offset, the reader in channel B will detect pattern 90 °。

By reading the number of pulses and which channel is ahead of the other (called "preamble"), the encoder interface can determine how far the encoder has rotated and in which direction. Some encoders also have a third channel called index channel, which sends a pulse every time it completes a rotation.

This allows the encoder to know its actual position rather than its relative position without too much extra cost. You can check the data table of the encoder to see if it has an index channel. As shown in Figure 3, it is a typical encoder square wave output.


2.2 Resolution of Encoder
However, more information is needed to determine the travel distance or rotation speed of the encoder. To calculate this information, it is necessary to know the resolution of the encoder. You can imagine the resolution as the encoder granularity, or simply, how many blocks the encoder "pie" can be divided into per revolution.

Pulses Per Revolution (PPR)
The term PPR denotes the resolution of the encoder. PPR describes the number of high pulses appearing on the square wave output a or B of the encoder per revolution.

Once the resolution is known, it can be used to calculate the geometric angle of each pulse and period.


2.3 Coding Type
There are three basic coding types: X1, X2 and X4.

X1 Coding
it shows the number of addition and subtraction of count value under an orthogonal period and its corresponding X1 encoding type. When channel a guides channel B, the increment occurs on the rising edge of channel A. When channel B guides channel A, decrement occurs on the falling edge of channel A.

X2 Coding
X2 encoding is similar to the above process, except that whether the counter counts at each edge of channel a increase or decrease depends on which channel guides which channel. The value of the counter will increase or decrease by 2 in each cycle

X4 Coding
By X4 encoding, the counter also increases or decreases on each edge of channels A and B. Whether the number of counters increases or decreases depends on which channel guides which channel. The number of counters increases or decreases by 4 in each cycle

2.5 Count Per Revolution (CPR)

CPR most often represents counts per revolution and refers to the number of quadrature decoded states that exist between the outputs A and B. When A and B outputs are switched between high level and low level, two bits of information will appear, indicating four different states. The term orthogonal decoding describes A method of counting each state change using outputs A and B simultaneously. Using both A and B counts results in four times the number of counts per pulse or cycle. Therefore, the CPR of the encoder is the PPR of the encoder multiplied by 4.

Also note that some encoder manufacturers use the abbreviation CPR to denote cycles per revolution (cycles per revolution). The number of cycles per revolution represents the complete electrical cycle or time of any encoder output, and this value is equal to the number of pulses per revolution. Since the same abbreviation CPR is used for count per revolution and cycles per revolution, it is necessary to understand the definition of resolution carefully.


Formula

The relationship between encoder CPR frequency and motor speed (RPM) is given by the following formula:
F = (cycle / revolution) * (revolution / second) / 1000 = kHz
Speed = revolutions per minute
CPR = cycles per revolution

Distance conversion:
(PPR) / (2 * pi * axis radius) = pulses per inch
(pulses per inch ^ - 1 = inches per pulse)

More About the Author

OKmarts.com Online Store | We provide leading brands of refrigeration compressors, servo motors, Air cylinder and more all over the world. More product's information please visit https://okmarts.com/

Total Views: 250Word Count: 1034See All articles From Author

Add Comment

Technology, Gadget and Science Articles

1. Web Scraping Food Data For Supermarkets: Inventory Management
Author: Devil Brown

2. Privacy Professionals In India Face Mounting Stress Amid Complex Compliance Challenges: Isaca Survey
Author: Madhulina

3. Unlock The Power Of Amazon Web Services
Author: Technothinksup Solutions

4. Aws Vs Azure: Choosing The Right Cloud Platform For You
Author: Anshul Goyal

5. Firebird To Cassandra Migration
Author: Vhelical

6. Netsuite Consulting Services | Netsuite Partners In Canada - Yantra
Author: Yantra Inc

7. Pluswallet: The Best Trustwallet Alternative For A Secure And Seamless Web3 Experience
Author: Plus Wallet

8. Enterprise Mdm Vs. Application Management Software: What’s The Difference?
Author: James Parker

9. How Is Data Recovered In Professional Data Recovery Lab?
Author: Stellar India

10. Automated Crypto Arbitrage: The Magic Of Triangular Trading Bots
Author: aanaethan

11. Stay Competitive By Web Scraping Ecommerce Price Strategies 2025
Author: Devil Brown

12. The Ultimate Guide To Choosing The Right Solar Panels For Your Home
Author: Mount Solar Power

13. Unlock The Full Potential Of Salesforce Crm: Custom Solutions For Every Business
Author: Lean IT

14. The Impact Of Ai Agents On The Travel Industry
Author: Digiprima Technologies

15. Explore Bca Course In Uttarakhand
Author: PGI

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: