<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Need help understanding Rotary encoder.</title>
        <description> Hi!

I&#039;m adding a Poorman&#039;s Smart LCD controller. Basically wired a 2004 LCD, SD card reader and Rotary encoder to a RAMPS 1.4 (About $8).  I do have the pinouts from the RAMPS 1.4 (Marlin). I hooked up the SD, am waiting for my LCD to arrive. I have this Encoder:



  

    
      
    

    

    

    
        
    

    

    

    
      MFG_EN12-HS.jpg
    

  

 



mod_embed_images_loadimage(&#039;d341b43c9c9b66dd653052633f904210&#039;, &#039;/forum/thumbcache/8dc/859/9e5/0d5/5eb/0a5/3b9/783/fc1/263/db_800x400.png&#039;, &#039;http://media.digikey.com/Photos/TT%20Electronics-Optek%20Photos/MFG_EN12-HS.jpg&#039;, &#039;https://reprap.org/forum/addon.php?13,module=embed_images,check_scaling=1,url=http%3A%2F%2Fmedia.digikey.com%2FPhotos%2FTT%2520Electronics-Optek%2520Photos%2FMFG_EN12-HS.jpg&#039;, &#039;&#039;, 245955, 800, 400, &#039;Loading image ...&#039;, false);



I&#039;m not sure about the Encoder.

I found this diagram:



  

    
      
    

    

    

    
        
    

    

    

    
      rotarynodebounce.jpg
    

  

 



mod_embed_images_loadimage(&#039;ffbda189f0791b17a2cf21857f932f0a&#039;, &#039;/forum/thumbcache/cba/059/f45/c13/ce1/6a6/275/812/1e0/da6/fb_800x400.png&#039;, &#039;http://hifiduino.files.wordpress.com/2010/10/rotarynodebounce.jpg&#039;, &#039;https://reprap.org/forum/addon.php?13,module=embed_images,check_scaling=1,url=http%3A%2F%2Fhifiduino.files.wordpress.com%2F2010%2F10%2Frotarynodebounce.jpg&#039;, &#039;&#039;, 245955, 800, 400, &#039;Loading image ...&#039;, false);



Do I understand correctly, the side with the 3 pins, is the encoder, the two pins on the opposite side are the switch.

1) I need to wire to the RAMPS:

BTN_EN1 pin 31
BTN_EN2 pin 33
BTN_ENC pin 35

Am I correct, the two outer pins on the 3 pin side, are EN1 and EN2? How do I know which is which? The center goes to ground?

2) On the switch side, one pin goes to BTN_ENC pin 35, the other to ground. Again does it matter which pin goes to ground of the two?

Finally, to save wiring, can the two &quot;ground&quot; pins on the encoder be wired together and only one jumper to RAMPS ground?

Thanks.

Getting closer!

Maxi</description>
        <link>https://reprap.org/forum/read.php?13,245955,245955#msg-245955</link>
        <lastBuildDate>Wed, 15 Jul 2026 16:04:05 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?13,245955,245955#msg-245955</guid>
            <title>Need help understanding Rotary encoder.</title>
            <link>https://reprap.org/forum/read.php?13,245955,245955#msg-245955</link>
            <description><![CDATA[ Hi!<br />
<br />
I'm adding a Poorman's Smart LCD controller. Basically wired a 2004 LCD, SD card reader and Rotary encoder to a RAMPS 1.4 (About $8).  I do have the pinouts from the RAMPS 1.4 (Marlin). I hooked up the SD, am waiting for my LCD to arrive. I have this Encoder:<br />
<br />
<div id="div_d341b43c9c9b66dd653052633f904210"
     class="mod_embed_images_extended"
     style="width:400px">

  

    
      
    

    <div id="imagediv_d341b43c9c9b66dd653052633f904210" class="mod_embed_images_image"
         style="width:400px; height:400px">

    

    <a href="http://media.digikey.com/Photos/TT%20Electronics-Optek%20Photos/MFG_EN12-HS.jpg">
        <img src="/forum/thumbcache/8dc/859/9e5/0d5/5eb/0a5/3b9/783/fc1/263/db_800x400.png"
             width="400"
             height="400"
             id="image_d341b43c9c9b66dd653052633f904210"
             alt="MFG_EN12-HS.jpg"
             title="MFG_EN12-HS.jpg"/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_d341b43c9c9b66dd653052633f904210"
      style="display:block">
      <a id="link_d341b43c9c9b66dd653052633f904210" href="http://media.digikey.com/Photos/TT%20Electronics-Optek%20Photos/MFG_EN12-HS.jpg">MFG_EN12-HS.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('d341b43c9c9b66dd653052633f904210', '/forum/thumbcache/8dc/859/9e5/0d5/5eb/0a5/3b9/783/fc1/263/db_800x400.png', 'http://media.digikey.com/Photos/TT%20Electronics-Optek%20Photos/MFG_EN12-HS.jpg', 'https://reprap.org/forum/addon.php?13,module=embed_images,check_scaling=1,url=http%3A%2F%2Fmedia.digikey.com%2FPhotos%2FTT%2520Electronics-Optek%2520Photos%2FMFG_EN12-HS.jpg', '', 245955, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
I'm not sure about the Encoder.<br />
<br />
I found this diagram:<br />
<br />
<div id="div_ffbda189f0791b17a2cf21857f932f0a"
     class="mod_embed_images_extended"
     style="width:515px">

  

    
      
    

    <div id="imagediv_ffbda189f0791b17a2cf21857f932f0a" class="mod_embed_images_image"
         style="width:515px; height:400px">

    

    <a href="http://hifiduino.files.wordpress.com/2010/10/rotarynodebounce.jpg">
        <img src="/forum/thumbcache/cba/059/f45/c13/ce1/6a6/275/812/1e0/da6/fb_800x400.png"
             width="515"
             height="400"
             id="image_ffbda189f0791b17a2cf21857f932f0a"
             alt="rotarynodebounce.jpg"
             title="rotarynodebounce.jpg"/>
    </a>

    

    </div>

    <div class="mod_embed_images_info " id="info_ffbda189f0791b17a2cf21857f932f0a"
      style="display:block">
      <a id="link_ffbda189f0791b17a2cf21857f932f0a" href="http://hifiduino.files.wordpress.com/2010/10/rotarynodebounce.jpg">rotarynodebounce.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('ffbda189f0791b17a2cf21857f932f0a', '/forum/thumbcache/cba/059/f45/c13/ce1/6a6/275/812/1e0/da6/fb_800x400.png', 'http://hifiduino.files.wordpress.com/2010/10/rotarynodebounce.jpg', 'https://reprap.org/forum/addon.php?13,module=embed_images,check_scaling=1,url=http%3A%2F%2Fhifiduino.files.wordpress.com%2F2010%2F10%2Frotarynodebounce.jpg', '', 245955, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
Do I understand correctly, the side with the 3 pins, is the encoder, the two pins on the opposite side are the switch.<br />
<br />
1) I need to wire to the RAMPS:<br />
<br />
BTN_EN1 pin 31<br />
BTN_EN2 pin 33<br />
BTN_ENC pin 35<br />
<br />
Am I correct, the two outer pins on the 3 pin side, are EN1 and EN2? How do I know which is which? The center goes to ground?<br />
<br />
2) On the switch side, one pin goes to BTN_ENC pin 35, the other to ground. Again does it matter which pin goes to ground of the two?<br />
<br />
Finally, to save wiring, can the two "ground" pins on the encoder be wired together and only one jumper to RAMPS ground?<br />
<br />
Thanks.<br />
<br />
Getting closer!<br />
<br />
Maxi<br/>]]></description>
            <dc:creator>disneytoy</dc:creator>
            <category>Controllers</category>
            <pubDate>Tue, 17 Sep 2013 01:21:32 -0400</pubDate>
        </item>
    </channel>
</rss>
