Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ENCODER INCREMENTAL, HOW CAN I SEE VALUES ON PC

Hi everyone (sorry for my poor English).
I have an incremental rotary hohner encoder, from it comes out a serial port (male)
which if I'm not mistaken emits signals of the ttl type (square wave, 8 channels or A, A ', B, B', 0,0 ', +, -);
I would like to know how to somehow connect the encoder to the pc in order to obtain information on the pc (bit)
regarding the rotation of the encoder. Thanks and sorry for the ignorance
0 Kudos
Message 1 of 3
(1,151 Views)

Please read this, also the Related Links at the bottom, and let us know if you need further help.

0 Kudos
Message 2 of 3
(1,102 Views)

Essentially, you will need some type of digital input device or card.  It will need to meet the requirements of both the encoder and the rate at which it will revolve.  For example,

  • Encoder has 1000 pulses / revolution
  • Each pulse (A & B) consists of 4 states : [A'B', AB', AB, A'B] Depending on how it it progresses forward or backwards in the states will determine the rotation of the shaft/encoder
  • Encoder will have 10 rotations per second max
  • Sample rate of card or device will need to be at least:
    • 1000 * 4 * 10 = 40K samples / sec (40KHz) in order to capture every transition state. 

Your software will need to increment travel and account for jerk when the encoder may briefly change direction due to load ringing (similar to an elevator as it settles at the  selected floor).

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 3 of 3
(1,087 Views)