User Tools

Site Tools


encoders

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
encoders [2009/10/07 02:46]
nebula Lotsa cleanup
encoders [2016/06/13 17:26] (current)
psykhaze [Rotary Encoders]
Line 1: Line 1:
 ====== Rotary Encoders ====== ====== Rotary Encoders ======
 +
 +//FIXME : Update this Page//
  
 This page is to inform you about MIOS' handling of incremental rotary encoders, or just '​encoders'​ or '​encs'​ for short. ​ This page is to inform you about MIOS' handling of incremental rotary encoders, or just '​encoders'​ or '​encs'​ for short. ​
 \\ \\
-These are the endless-turning knobs that you can use to set values on your device. These should not be confused with a potentiometer. See the [[questions_and_answers#​what_s_the_difference_between_pots_sliders_motorfaders_and_encoders|FAQ entry about encoders]] for more info regarding the distinction between the two, and the [[where_to_order_components#​rotary encoders|Where to order]] page for retailers.+These are the endless-turning knobs that you can use to set values on your device. These should not be confused with a potentiometer. See the [[frequently_asked_questions_faq#​what_s_the_difference_between_pots_sliders_motorfaders_and_encoders|FAQ entry about encoders]] for more info regarding the distinction between the two, and the [[where_to_order_components#​rotary encoders|Where to order]] page for retailers.
  
  
-====== Encoder Model Specifications ​====== +===== Encoder Model Specifications ===== 
- +==== Encoders ​from SmashTV ​(2010 and later), VOTI, and SoundWell ​(ALPS STEC16B ​and clones)====
-===== Bourns PEC11-series detented encoders (available ​from SmashTV) ​===== +
- +
-==== Encoder Mode: ==== +
-"​DETENTED2"​24 steps per turn +
- +
-==== Pinout ==== +
-[[http://​www.avishowtech.com/​mbhp/​images/​encspecs17.gif]] +
- +
-Note: the rightmost picture is "top down" (as seen from the top of the encoder looking down to the shaft) +
- +
-  * pin "​A"​ goes to D1 +
-    * (goes to the higher numbered DIN pin of the two pins assigned to that encoder +
-  * pin "​C"​ goes to Vs +
-    * (this pin is "​common"​) +
-  * pin "​B"​ goes to D0 +
-    * (goes to the lower numbered DIN pin of the two pins assigned to that encoder +
- +
-==== Detent ==== +
-the detent can be removed  +
- +
-==== Thanks to... ==== +
-mandingo: [[http://​www.midibox.org/​forum/​index.php?​topic=3843.msg25094#​msg25094]] \\ +
-jdutcher: [[http://​www.midibox.org/​forum/​index.php?​topic=3911.msg25766#​msg25766]] \\ +
-xcoulonx: [[http://​www.midibox.org/​forum/​index.php?​topic=3299.msg23699#​msg23699]] +
- +
-===== Encoders from VOTI (ALPS STEC16B) ​and SoundWell ​====+
- +
- +
-M-SW-ROT, detented rotary encoder from www.voti.nl +
-or [[http://​www.soundwell-cn.com/​ebusiness/​en/​product_detail.asp?​catalogid=4&​productid=65|SoundWell EC162102E1B-HA1-006]] +
- +
-Encoder mode: "​DETENTED2",​ 24 steps per turn +
- +
-pinout:  +
-[[http://​www.voti.nl/​docs/​rotary-encoder.jpg]] +
- +
-if you view the encoder from the top with the pins pointing towards you; +
- +
-left pin goes to D1 (highest numbered din pin) +
- +
-middle pin goes to D0 (lowest numbered din pin) +
- +
-right pin goes to Vs (ground) +
- +
-the detent can also be removed +
- +
-To remove the detents: +
- +
-- Bend the four clasps back\\ +
- +
-{{http://​img17.imageshack.us/​img17/​8805/​votistep1ya1.jpg?​284x320}} +
- +
-- Remove the bottom\\ +
- +
-{{http://​img19.imageshack.us/​img19/​9100/​votistep2wf2.jpg?​320x231}}+
  
 +**SmashTV:​** ​ #18 detented rotary encoder from www.midibox-shop.com\\ ​
 +STEC16B clone manufactured by Bourns\\ ​
 +24 pulse per rev, DETENTED2 mode\\
 +pinout:​\\ ​
 +{{:​home:​ec16_pinout.png|}}\\ ​
 +\\ 
 +**VOTI:** M-SW-ROT, detented rotary encoder from www.voti.nl
 +or [[http://​en.soundwell.cn|SoundWell EC162102E1B-HA1-006]]\\ ​
 +Encoder mode: "​DETENTED2",​ 24 steps per turn\\ ​
 +pinout: [[http://​www.voti.nl/​docs/​rotary-encoder.jpg]]\\ ​
 +\\ 
 +if you view the encoder from the top with the pins pointing towards you;​\\ ​
 +left pin goes to D1 (highest numbered din pin)\\ ​
 +middle pin goes to D0 (lowest numbered din pin)\\ ​
 +right pin goes to Vs (ground)\\ ​
 +\\ 
 +The detents can be removed, but this can cause erratic operation due to loss of contact tension.\\ ​
 +To remove the detents:​\\ ​
 +- Bend the four clasps back\\ ​
 +{{http://​img17.imageshack.us/​img17/​8805/​votistep1ya1.jpg?​284x320}}\\ ​
 +- Remove the bottom\\ ​
 +{{http://​img19.imageshack.us/​img19/​9100/​votistep2wf2.jpg?​320x231}}\\ ​
 - Bend down (or up, depending on your perspective) the half-circle thingie. ​ (You may choose to flatten the nub, or bend down the metal half-circle. Or you could even go so far as to separate the white plastic from the metal bottom and remove the detent disc completely with no fuss. It snaps right back together (pic coming). Either way will accomplish the job.  The point is to move the metal nub that falls into the valleys on the spinning disk.)\\ - Bend down (or up, depending on your perspective) the half-circle thingie. ​ (You may choose to flatten the nub, or bend down the metal half-circle. Or you could even go so far as to separate the white plastic from the metal bottom and remove the detent disc completely with no fuss. It snaps right back together (pic coming). Either way will accomplish the job.  The point is to move the metal nub that falls into the valleys on the spinning disk.)\\
 +{{http://​img401.imageshack.us/​img401/​4618/​votistep35pw6.jpg?​320x279}}\\ ​
 +- Re attach to the bottom\\ ​
 +{{http://​img22.imageshack.us/​img22/​7897/​votistep3gs7.jpg?​311x320}}\\ ​
 +- Bend the clasps back.\\
  
-{{http://​img401.imageshack.us/​img401/​4618/​votistep35pw6.jpg?​320x279}}+==== Bourns PEC11-series detented encoders (formerly available from SmashTV through 2008)====
  
-Re attach ​to the bottom\\ +24 steps per turn, Encoder Mode "​DETENTED2"​\\  
- +Pinout: [[http://​www.midibox-shop.com/​images/​encspecs17.gif]]\\  
-{{http://img22.imageshack.us/img22/7897/votistep3gs7.jpg?311x320}} +\\  
- +Note: the rightmost picture is "top down" (as seen from the top of the encoder looking down to the shaft)\\  
- +pin "​A"​ goes to D1 (connect to the higher numbered DIN pin of the two pins assigned to that encoder)\\ ​ 
-- Bend the clasps back.\\ +pin "​C"​ goes to Vs (this pin is "​common"​)\\  
-===== Encoders from Pollin ​=====+pin "​B"​ goes to D0 (connect to the lower numbered DIN pin of the two pins assigned to that encoder)\\  
 +\\  
 +Thanks to...\\  
 +mandingo: [[http://www.midibox.org/forum/index.php?​topic=3843.msg25094#​msg25094]]\\  
 +jdutcher: [[http://​www.midibox.org/​forum/index.php?topic=3911.msg25766#​msg25766]]\\  ​ 
 +xcoulonx: [[http://​www.midibox.org/​forum/​index.php?​topic=3299.msg23699#​msg23699]]\\  
 +\\  
 +==== Encoders from Pollin ====
  
 Pollin ([[http://​www.pollin.de]]) has [[http://​www.pollin.de/​shop/​shop.php?​cf=detail.php&​pg=NQ==&​a=Njg2OTU3OTk=|cheap encoders]] with button. Pollin ([[http://​www.pollin.de]]) has [[http://​www.pollin.de/​shop/​shop.php?​cf=detail.php&​pg=NQ==&​a=Njg2OTU3OTk=|cheap encoders]] with button.
Line 80: Line 60:
 In MIOS8 1.9g use the new encoder mode "​MIOS_ENC_MODE_DETENTED4"​ [[http://​www.midibox.org/​forum/​index.php/​topic,​14159.0.html|(details)]]. Previous versions should use encoder mode: "​DETENTED",​ 16 steps per turn. In MIOS8 1.9g use the new encoder mode "​MIOS_ENC_MODE_DETENTED4"​ [[http://​www.midibox.org/​forum/​index.php/​topic,​14159.0.html|(details)]]. Previous versions should use encoder mode: "​DETENTED",​ 16 steps per turn.
  
-==== Forum Links ====+=== Forum Links ===
 [[http://​www.midibox.org/​forum/​index.php?​topic=6693.0]] (German) [[http://​www.midibox.org/​forum/​index.php?​topic=6693.0]] (German)
  
 [[http://​www.midibox.org/​forum/​index.php?​topic=7140.0]] (English) [[http://​www.midibox.org/​forum/​index.php?​topic=7140.0]] (English)
  
- +[[http://​www.mikrocontroller.net/​attachment/​16120/​panasonic.lbr]] (Eagle lib) 
-==== Pinout ​====+=== Pinout ===
 (laying the encoder before you, cap pointing towards you, pins on top): (laying the encoder before you, cap pointing towards you, pins on top):
  
Line 100: Line 80:
  
  
-==== Removing Detents ​==== +=== Removing Detents === 
 (from [[http://​www.midibox.org/​forum/​index.php?​topic=6693.0]])\\ (from [[http://​www.midibox.org/​forum/​index.php?​topic=6693.0]])\\
 {{http://​farm1.static.flickr.com/​165/​425145882_186f497931_b.jpg}} {{http://​farm1.static.flickr.com/​165/​425145882_186f497931_b.jpg}}
  
 \\ \\
-====== Encoder Detent Types ======+===== Encoder Detent Types =====
  
 In applications (prior to MIOS8 1.9g), you have to choose one of the encoder types: In applications (prior to MIOS8 1.9g), you have to choose one of the encoder types:
  
-MIOS_ENC_MODE_NONDETENTED\\+MIOS_ENC_MODE_NON_DETENTED\\
 MIOS_ENC_MODE_DETENTED\\ MIOS_ENC_MODE_DETENTED\\
 MIOS_ENC_MODE_DETENTED2\\ MIOS_ENC_MODE_DETENTED2\\
Line 117: Line 97:
 \\ \\
 {{http://​www.ucapps.de/​mios/​mios_encoder_modes.gif}} {{http://​www.ucapps.de/​mios/​mios_encoder_modes.gif}}
 +
 +[[http://​midibox.org/​forums/​index.php?​app=core&​module=attach&​section=attach&​attach_rel_module=post&​attach_id=5566|custom Encoder Modes]]
  
 The encoders will behave with an '​acceleration'​ feature, similar to that of the PC mouse - when you turn the encoder faster, the values will increase at a faster rate. This mean that you can turn the knob slowly for more precise adjustment, or turn quickly for coarse adjustment of parameters. The encoders will behave with an '​acceleration'​ feature, similar to that of the PC mouse - when you turn the encoder faster, the values will increase at a faster rate. This mean that you can turn the knob slowly for more precise adjustment, or turn quickly for coarse adjustment of parameters.
  
-MIOS8 version 1.9g reworks all of the encoder types and adds new ones.  (Refer to [[http://www.midibox.org/​forum/index.php/topic,​14159.0.html|TK's announcement]])+MIOS8 version 1.9g reworks all of the encoder types and adds new ones.  (Refer to [[http://​midibox.org/​forums/topic/​13235-mios-v1-9g-update-for-pic-based-derivatives/|TK's announcement]])
  
-====== Encoder Resolution and Detents ​======+==== About Encoder Resolution and Detents ====
  
 Detented encoders mechanically limit their resolution, because one "​click"​ of an encoder may actually run through four events. Detented encoders mechanically limit their resolution, because one "​click"​ of an encoder may actually run through four events.
encoders.1254883571.txt.gz · Last modified: 2009/10/07 02:46 by nebula