Help with wiring rotary encoder

  • Thread starter ravey1981
  • 5 comments
  • 4,181 views
141
United Kingdom
United Kingdom
ravey1981
Hi, Im building a DIY button box based on an ipac-ve board (basically the pc sees the board as a keyboard rather than a usb game controller so it doesn't take up one of my 3 slots in game)

I have wired the 3 pins up with the common ground as the middle pin.

I have the other wires/pins connected to the board so that a left turn gives L and a right turn gives K (keyboard equivalents).

What happens is when i turn left I get LK, and when i turn right I get KL, obviously this is no good to me as whatever I assign to these controls, brake bias etc a turn to the left increases and then instantly decreases the bias....

I must be doing something wrong with the wiring...

Note for a normal push button the board works just fine....it's just these rotaries that I can't get working....

Any help greatly appreciated :)
 
Can you post links (or the part number of the encoder) to the hardware you're using? Did you buy specific encoders that are known to work with the board or did you just buy any? I ask because encoders aren't a standard thing, so it's possible that the ones you have aren't the right type.

Also, does the board have specific encoder input headers or are you sort of hoping they'll do what you want? If the board isn't designed to work with encoders then you'll need to make an intermediate decoder circuit which could get quite complex.

Sorry if this is hugely patronising but I don't know what you know and I don't know what you're working with so it's safest to make no assumptions!
 
Hi

Board is this one:

http://www.ultimarc.com/ipacve.html

The encoder I am (trying) to use is this one:

http://www.ebay.co.uk/itm/5PCS-12mm...al_Components_Supplies_ET&hash=item4601487228

There are no specific rotary inputs on the board, I thought the encoders work like a two way switch? Maybe I was wrong with that assumption... I think these are the same encoders hwangm used on his box (but he used a sli-pro board)

As I said, pushbuttons and two-way toggles are working fine.

Rotary encoders are not electrically equivalent as a two way toggle. The device to which you're connecting them must specifically allow rotary encoders to function with it.
 
Ah, that's the problem then. The SLI-PRO has encoder inputs, yours is designed for normal switches. You can do what you want but you need specific encoders which do a full four pulse code per detent and a logic circuit which decodes the encoders into useful logic outputs... I could explain this much better if I wasn't on my phone!

Edit: tree'd due to dinner!
 
Back