Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/28/01 13:37
Read: times


 
#14549 - RE: optical encoder problems
To restate everything clearly,

Methods of using an optical encoder with 8052, 2 pin method, 4 state, relative position, gray code.

Alfredo (clocked, or interrupt) method: use 1 pin for interrupt (or clock), the other for direction of counting.

Polled method: 8052 polls both pins at a rate exceeding the maximum rate of rotation (8052 never missing a state change.)

The alfredo method works "good enough" if you are not interested in exact position without errors.

A machine atached to the encoder will cause positional errors (1 in 16 times, according to erik).

A human turning the knob could easily put it into the position before the interrupt and after the interrupt, causing multiple interrupts without the direction changing.

For human input, there are devices with detents, which make the user go through all 4 states without stopping. Then the alfredo method is acceptable.

For precise movement, the alfredo method is not acceptable. The 8052 must see each of the 4 possible states (polling method), and must be able to sample faster than the states change.




List of 16 messages in thread
TopicAuthorDate
optical encoder            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder, Alfredo            01/01/70 00:00      
RE: optical encoder, Alfredo            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder, Bruce            01/01/70 00:00      
RE: optical encoder problems            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder, Roger            01/01/70 00:00      
RE: optical encoder, Andy            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      
RE: optical encoder, Fran            01/01/70 00:00      
RE: optical encoder            01/01/70 00:00      

Back to Subject List