How to use 3 pin rotary encoder with basic stamp?
CuriousOne
Posts: 931
Hello.
I have a simple rotary encoder, which has only 3 pins, unlike the 4 pin one, described in NV article.
Is there anywhere explanation how this type of encoder can be used with basic stamp?
I have a simple rotary encoder, which has only 3 pins, unlike the 4 pin one, described in NV article.
Is there anywhere explanation how this type of encoder can be used with basic stamp?
Comments
I have a couple of questions if you don't mind:
Wiring diagram. Currently I've wired my encoder as a two active-low switches, middle contact connected to GND. Is that correct?
Some commands:
OW PIN 8 ' 1-Wire buss pin
I think above may be omitted and not needed, right?
DIRS = %1111111111111100 ' I/O Pins 0 - 1 Inputs
Since I want to use pins #4 and #5, this line should look like this:
DIRS = %1111111111100111
correct?
newBits = INA & %0011
What is purpose of INA command?
newBits = INA & %0011
What is purpose of INA command?
newBits = (IN1 << 1) | IN0
is not at all equivalent to
newBits = INA & %0011
even though it may look like it ought to be