Results 1 to 10 of 13
-
11-11-2008, 11:49 AM #1
Rotary Encoders parrallel wiring?
Hi guys
I know this sounds crazy probably, but Im wondering:
Would it be possible to wire 2 Rotary Encoders to one rotary encoder input using the correct wiring scheme? Here's what I want to do:
On the LJ45 there's two Altimeter setting rotary encoders; one each on the two PFDs. Since the both do the exact same thing, couldnt I just parrallel wire them both and interface to the same input, especially since they both wont be used simultaneously.
I know that switches can be done this way (such as the STND button to set 29.92") but will it work for my above scenario?
thanks,
-
11-11-2008, 12:17 PM #2
- Join Date
- May 2008
- Location
- Earth
- Posts
- 288
Hi,
what you can try is to feed the 2 encoders' outputs to some sort of high impedance component such as a buffer or a logical gate. Use an OR gate (an OR per channel) to bring the signals together. If you are using 5V on your encoders, you could use a TTL IC otherwise CMOS.
Since the inputs of the OR gates have a high impedance (resistance) they should not interfere with each other.
If you need more info on this idea let me know, I can draw you a rough sketch for the logical circuit.
[EDIT]: Additionally you would need a detector circuit that detects which encoder is turned, disable the other encoder's signal.Fritz -> Helicopter Cockpit Builder
(FSX | TH2Go | Arduino | Air Manager Avionics | CNC)
-
11-11-2008, 12:34 PM #3
Thanks Fritz. That's a lot more complicated that I thought...I was hoping that the wire leads would just be tied together where they meet at the input board. :-/
Im trying to save buying more rotary encoder input interfacing than required, but it may just be better to do just that.
Any other thoughts or ideas are welcomed.
-
11-11-2008, 12:52 PM #4
- Join Date
- Feb 2007
- Location
- California, USA
- Posts
- 377
Depending on the type of rotary encoder and the acceptable complexity of the solution, here are two approaches:
1) If you have rotary encoders with the detent located at the position where both switches in the encoder are open, you can simply wire the two encoders in parallel. This is called a "wired-OR". This approach requires that the input the encoders connect to will properly operate with an encoder having one detent per four transitions.
2) Use a micro controller to mediate between the two rotary encoders and the input connection for the encoders. The micro controller keeps track of state transitions of each encoder and produces a virtual encoder output that reflects the aggregate encoder activity.
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
Tomlin thanked for this post
-
11-11-2008, 12:55 PM #5
-
11-11-2008, 01:45 PM #6
- Join Date
- May 2008
- Location
- Earth
- Posts
- 288
I like Mike's proposal (2) better because it will work on any type of Encoder. (1) is a bit dicy because what if the one encoder is left in such a position that the switch is close. Then the other encoder won't work.
Fritz -> Helicopter Cockpit Builder
(FSX | TH2Go | Arduino | Air Manager Avionics | CNC)
-
11-11-2008, 02:43 PM #7
- Join Date
- Feb 2007
- Location
- California, USA
- Posts
- 377
Finding a good rotary encoder starts with digging through spec sheets. A cursory glance through several was disappointing. I found only one that showed the position of the detent during the grey-code cycle. (http://www.bourns.com/pdfs/PEC12.pdf lower right corner of the first page)
Fritz raises a good point. There is no indication of how accurate the detent position is, or how well the encoder holds onto that accuracy as it ages.
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikes
Tomlin thanked for this post
-
11-12-2008, 03:44 AM #8
- Join Date
- May 2008
- Location
- Earth
- Posts
- 288
Looking at that Grey code output table I marked the areas blue for the encoder to be at when not turning, for the other encoder to still work. If the one encoder is stuck somewhere in the white area, it will produce a 1 (5V) all the time. Using the OR method will then not work because with an OR the output will always be 1 in that case. There will be no pulses from the other encoder, just a 1 all the time.
RotParallel.jpg
I can imagine a checklist item added to fix this:
BAROMETER KNOB ..................... Check Stop PositionFritz -> Helicopter Cockpit Builder
(FSX | TH2Go | Arduino | Air Manager Avionics | CNC)
-
11-12-2008, 09:36 AM #9
Thanks for all the in depth explanations- I never imagined how complicated it could get!
Seems that the best way to go is just buy more input modules for RE needs.
-
11-12-2008, 09:48 AM #10
Would it be possible to incorporate a simple changeover switch that mediates between the two encoders? As you say, you'll never want to use both at the same time, so could you simply flip a switch to put either one or the other into circuit? It's not as clean as simply rotating one or the other but it could be an intermediate fix.
Just a thought,
Ken
Similar Threads
-
Rotary encoders
By mondo50m in forum General Builder Questions All Aircraft TypesReplies: 2Last Post: 06-23-2010, 04:50 PM -
Rotary Encoders
By Boeing 747 Flyer in forum General Builder Questions All Aircraft TypesReplies: 10Last Post: 05-14-2010, 05:04 PM -
Rotary Encoders
By PittsburghLever in forum General Builder Questions All Aircraft TypesReplies: 13Last Post: 10-04-2008, 03:59 AM -
Wiring Optical Encoders
By Gsey in forum General Builder Questions All Aircraft TypesReplies: 6Last Post: 11-13-2005, 11:56 PM