Question about rotary encoder

Discussions related to MegaDrum Hardware

Question about rotary encoder

Postby dainy » Sat Aug 22, 2009 4:33 pm

Hello,

I built the all in one v3.1 kit. The kit works correct except the rotary encoders.
I use two rotary encoder (ALPS STEC16B04) for left/right and up/down.
They have three pins and I connect left/right to pin A and B and ground to pin C.
And the problem is if I turn the encoder one step the menu from the megadrum jumps two steps.

Does anybody know what's to do that this work correct?

Thanks
dainy
dainy
 
Posts: 5
Joined: Sun Jun 14, 2009 12:24 pm

Re: Question about rotary encoder

Postby dmitri » Sat Aug 22, 2009 4:37 pm

You wired it incorrectly. Where do you see in https://www.megadrum.info/~megadrum/sit ... _kicad.png that A and B should be connected to left/right?
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Question about rotary encoder

Postby dainy » Sun Aug 23, 2009 9:39 am

Hello

The rotary encoder has no letters or numbers at the pins, but I found a data sheet where the pins labeled with A, B and C. The two switches inside the encoder should be connected to pin A and B and the other side of the switches together to pin C. That's what I found to connect them.
I can't open the link you sent.

Thanks
dainy
dainy
 
Posts: 5
Joined: Sun Jun 14, 2009 12:24 pm

Re: Question about rotary encoder

Postby dmitri » Sun Aug 23, 2009 9:51 am

dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Question about rotary encoder

Postby dainy » Sun Aug 23, 2009 12:08 pm

I connect it exactly like on the schematic. Maybe the rotary encoders do not work good enough for this function.
dainy
 
Posts: 5
Joined: Sun Jun 14, 2009 12:24 pm

Re: Question about rotary encoder

Postby dmitri » Sun Aug 23, 2009 1:58 pm

dainy wrote:I connect it exactly like on the schematic.

Please draw a sketch of how you connected your encoders to the board to confirm that it is exactly like in the schematic.

Maybe the rotary encoders do not work good enough for this function.

For what function?
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Question about rotary encoder

Postby dainy » Thu Aug 27, 2009 6:30 pm

Hello,

I solved the problem with the rotary encoder. The rotary encoder was connected correct. But the problem was the encoder self.
First I used the rotary encoder from ALPS type STEC16B04 with 24 pulses and 24 detents. The problem with this was the switch signal from A and B. It is different to other rotary encoders.
Now I use the rotary encoder from ALPS type STEC11B04 with 15 pulses and 30 detents. And this works correct.
dainy
 
Posts: 5
Joined: Sun Jun 14, 2009 12:24 pm


Return to MegaDrum Hardware

Who is online

Users browsing this forum: Bing [Bot] and 99 guests