Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: meyer980 on December 06, 2018, 09:35:08 pm

Title: Using Rotary Encoder with minipac
Post by: meyer980 on December 06, 2018, 09:35:08 pm
I'm new to spinners and starting work on a small (as in size) project so don't want to use a large spinner.

Does anyone know if you can hook up a generic rotary encoder (such as these https://www.amazon.com/gp/product/B06XQTHDRR?pf_rd_p=c2945051-950f-485c-b4df-15aac5223b10&pf_rd_r=FHFFCT2ZZ7GE9B8A67PA (https://www.amazon.com/gp/product/B06XQTHDRR?pf_rd_p=c2945051-950f-485c-b4df-15aac5223b10&pf_rd_r=FHFFCT2ZZ7GE9B8A67PA)) to the minipac's spinner pins?

I'm definitely a novice with electronics but I'm seeing the minipac requiring GND, 5V, and two X lines - 4 pins total. The encoders seem to have pins that MIGHT match up but I really don't know how it all works.

Help?
Title: Re: Using Rotary Encoder with minipac
Post by: PL1 on December 06, 2018, 11:05:55 pm
Does anyone know if you can hook up a generic rotary encoder (such as these https://www.amazon.com/gp/product/B06XQTHDRR?pf_rd_p=c2945051-950f-485c-b4df-15aac5223b10&pf_rd_r=FHFFCT2ZZ7GE9B8A67PA (https://www.amazon.com/gp/product/B06XQTHDRR?pf_rd_p=c2945051-950f-485c-b4df-15aac5223b10&pf_rd_r=FHFFCT2ZZ7GE9B8A67PA)) to the minipac's spinner pins?

I'm definitely a novice with electronics but I'm seeing the minipac requiring GND, 5V, and two X lines - 4 pins total. The encoders seem to have pins that MIGHT match up but I really don't know how it all works.
Based on the info here (https://blog.squix.org/2016/05/esp8266-peripherals-ky-040-rotary-encoder.html) it will work with the MiniPac.

There's some decent theory of operation at that link.

   GND to GND
   + to 5V
   SW to switch input (optional)
   DT to one data line
   CLK to the other data line

If the axis moves in the opposite direction expected, swap the data lines.


Scott
Title: Re: Using Rotary Encoder with minipac
Post by: meyer980 on December 07, 2018, 06:51:00 pm
Thanks Scott, I guessed that's how it worked but wasn't confident enough to go ahead without asking. I'm gonna give it a try!