Difference between revisions of "Rotary Encoder"

From Hackerspace ACKspace
Jump to: navigation, search
(added category)
m (fixed dead link, added pinout)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
It's electrical rating is 5V 0.5mA ('''very low''', not even a LED driver!)
 
It's electrical rating is 5V 0.5mA ('''very low''', not even a LED driver!)
  
Here is the [http://www.vandijkenelektronica.nl/preview.php?index=1496&table=files datasheet]
+
Here is the [https://www.pollin.de/productdownloads/D240383D.PDF]
 +
The pinout is, viewing the encoder from the top, 2 pins up, 3 pins down: A C B. The 2 terminals on the up size are push-to-make.
  
 
Terminal A-C leads, i.e., when rotating clock-wise, A-C will go 'on' first, then B-C will go on, A-C goes off, then B-C goes off.
 
Terminal A-C leads, i.e., when rotating clock-wise, A-C will go 'on' first, then B-C will go on, A-C goes off, then B-C goes off.
Line 36: Line 37:
 
In short:
 
In short:
 
on '''falling edge''' interrupt '''A-C''' (which is the dented position, in a 15±3° step), '''B-C''' high means a '''clockwise''' step; 24 steps make a circle.
 
on '''falling edge''' interrupt '''A-C''' (which is the dented position, in a 15±3° step), '''B-C''' high means a '''clockwise''' step; 24 steps make a circle.
 +
 +
Location: [[Location::Somewhere]] (probably somewhere in the racks on top of the soldering table)
 
[[Category:Parts]]
 
[[Category:Parts]]

Latest revision as of 17:31, 11 November 2017

A rotary encoder, also called a shaft encoder, is an electro-mechanical device that converts the angular position or motion of a shaft or axle to an analog or digital code. (from wikipedia)

RE0124 PVB

There are a few of these rotary encoders available in the space for use with your project. It's electrical rating is 5V 0.5mA (very low, not even a LED driver!)

Here is the [1] The pinout is, viewing the encoder from the top, 2 pins up, 3 pins down: A C B. The 2 terminals on the up size are push-to-make.

Terminal A-C leads, i.e., when rotating clock-wise, A-C will go 'on' first, then B-C will go on, A-C goes off, then B-C goes off. Counter clockwise means: A-C goes on, followed by B-C which goes off.

encoding
rest (0°) ~3.75° ~7.5° ~11.25° rest (15°CW)
terminals A-C 0 1 1 0 0
terminals B-C 0 0 1 1 0

In short: on falling edge interrupt A-C (which is the dented position, in a 15±3° step), B-C high means a clockwise step; 24 steps make a circle.

Location: Somewhere (probably somewhere in the racks on top of the soldering table)