Rotary Encoder 60 Pulse / Rev

Hi, is the dio fast enough to decode 60 pulse / rev rotary encoder? Is there any built in method for decoding quadrature rotary encoder?

Albert Tobing
Albert Tobing
12
| 0 0 0
Asked on 10/20/16, 8:54 AM
0
vote
598 Views

Hi Albert, please have a look at our documentation on interrupts: https://github.com/Industruino/libraries#interrupts

Tom
on 10/22/16, 1:57 AM

Hello, it depends on the speed of the rotating wheel.

You will also need to use interrupts to catch the incoming signal.

One reading using interrupts takes by my experience around 200 us, which is 5 kHz.

Speed is measured in RPM, so by coincidence in your case RPM is equal to your frequency because you have 60 pulse per turn and 60 seconds per minute.

So if you run slower that 5.000 RPM you shoud be fine, but it also depends on other factors.

.Quadrature is a quite simple matter, I don't know much about libraries, but sure you will find plenty of tutorials.

One thing to consider is that the interrupt line is common to all digital I/O, so you will anyhow need to check inputs when receiving an interrupt.

Just by saving last state and comparing to new state you get your quadrature allright.

Stefano Giuseppe Bonvini
Stefano Giuseppe Bonvini
567
| 0 0 0
Answered on 10/20/16, 9:13 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

30 follower(s)

Stats

Asked: 10/20/16, 8:54 AM
Seen: 598 times
Last updated: 10/22/16, 1:57 AM