Rotary encoder pins/wiring

Discussions related to MegaDrum Hardware

Rotary encoder pins/wiring

Postby Russ15 » Wed Aug 24, 2011 7:14 am

I've seen all the other posts about adding rotary encoders to megadrum, and just need some final clarification on some things. I'm going for 2 pushbutton encoders and 2 buttons

Based on the attached picture do I have the pins labeled correctly (A-E)? I have seen a few data sheets but some are different from others. (These are encoders with pushbutton function as well)

Since I am using encoders on Synthex 2.5 pcb it looks like I have to wire up encoders this way. Pin 5 and 4 as well as Pin 25 and 24 on the Atmega viewtopic.php?p=3959#p3959

What I am confused about is why there are numbers (1-4) on the schematic? http://www.megadrum.info/sites/default/ ... _kicad.png

From what I understand A, B, C pins are for the encoder function and D and E are for the pushbutton function... is that right?

This diagram from Firelord seems to be how you wire the D and E pins viewtopic.php?p=10268#p10268
You do not have the required permissions to view the files attached to this post.
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm

Re: Rotary encoder pins/wiring

Postby dmitri » Wed Aug 24, 2011 9:16 am

Russ15 wrote:What I am confused about is why there are numbers (1-4) on the schematic? http://www.megadrum.info/sites/default/ ... _kicad.png

Just disregard these numbers.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Rotary encoder pins/wiring

Postby Russ15 » Wed Aug 24, 2011 9:18 am

Thanks for your response dmitri... would you happen to know if the pin letters are correct? I think that is the only thing I need to know at this point. Thanks
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm

Re: Rotary encoder pins/wiring

Postby dmitri » Wed Aug 24, 2011 10:10 am

Russ15 wrote:Thanks for your response dmitri... would you happen to know if the pin letters are correct? I think that is the only thing I need to know at this point. Thanks

Pin letters where? In the schematic? Yes, of course.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Rotary encoder pins/wiring

Postby Russ15 » Wed Aug 24, 2011 10:23 am

Forgive me if I was confusing I meant the actual pins (legs) on the encoder itself which I labeled in the picture of the encoder above A,B,C,D,E. Also Atmega pins 4,5,24,and 25 are labeled correctly in the picture I posted right? Thanks
You do not have the required permissions to view the files attached to this post.
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm

Re: Rotary encoder pins/wiring

Postby dmitri » Wed Aug 24, 2011 10:31 am

Russ15 wrote:Forgive me if I was confusing I meant the actual pins (legs) on the encoder itself which I labeled in the picture of the encoder above A,B,C,D,E.

They seem to be correct. The encoders' datasheet will tell you for sure.

Also Atmega pins 4,5,24,and 25 are labeled correctly in the picture I posted right? Thanks

If these are the same pins as in Latest MegaDrum schematics than they are correct.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Rotary encoder pins/wiring

Postby Russ15 » Wed Aug 24, 2011 8:42 pm

The pin layout was correct on the encoders (i'm using these by the way http://www.allelectronics.com/make-a-st ... DER/1.html) when I checked the datasheet and it appears those pin numbers on synthex 2.5 board (5,4, and 25,24) link up directly to what your latest schematic has for the encoders. Thanks again for all your help.
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm

Re: Rotary encoder pins/wiring

Postby Russ15 » Fri Sep 02, 2011 8:10 pm

Why must pin D be connected to ground? viewtopic.php?p=10268#p10268 (I understand connection with keyboard wire/pin 4 just not why in addition it must be grounded). I also understand from the original schematic viewtopic.php?p=3959#p3959 that pin C on both encoders is connected to ground , that is clear.

I plan on connecting these ground connections ( from pins C and possibly D) to pin 5 on the keyboard headers. Is this ok or will this somehow throw off something?
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm

Re: Rotary encoder pins/wiring

Postby dmitri » Fri Sep 02, 2011 8:41 pm

Russ15 wrote:Why must pin D be connected to ground?

Because otherwise buttons won't work.

I plan on connecting these ground connections ( from pins C and possibly D) to pin 5 on the keyboard headers. Is this ok or will this somehow throw off something?

Yes, ok if the pin 5 of the header is the ground.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Rotary encoder pins/wiring

Postby Russ15 » Fri Sep 02, 2011 8:43 pm

Thank you Dmitri 8-)
Russ15
 
Posts: 82
Joined: Sat Jul 09, 2011 8:22 pm


Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 66 guests