Hi everyone, I am having trouble coming up with a good way to use a rotary pulse switch.
http://dl.dropbox.com/u/66965217/switch.jpg
It seems to work like a rotary encoder, but instead of having overlapping outputs. It has a pulse on each of the leads as you turn it, CW or CCW. The switch will spin infinitely in both directions.
At least that's how it seems when I hook my ohm meter to it.
What I would like to do, is have something count up and down the pulses when I turn the switch different directions. to light some LED's. When it reaches the top of the bar graph I want it to stop counting and when It reaches the bottom I want it to stop counting.
I came up with the following circuit in Yenka, to try it, but I don't think I'm going about it the best way. It works OK in the Yenka simulation, but I don't know that it will be realiable with the rotary type pulses that may be fast(as fast as a person can turn the knob)
http://dl.dropbox.com/u/66965217/counter.jpg
When I look up circuits online most of the encoder circuits have to do with optic encoders or quadrature? encoders which I don't believe I have.
Any help is appreciated.
http://dl.dropbox.com/u/66965217/switch.jpg
It seems to work like a rotary encoder, but instead of having overlapping outputs. It has a pulse on each of the leads as you turn it, CW or CCW. The switch will spin infinitely in both directions.
At least that's how it seems when I hook my ohm meter to it.
What I would like to do, is have something count up and down the pulses when I turn the switch different directions. to light some LED's. When it reaches the top of the bar graph I want it to stop counting and when It reaches the bottom I want it to stop counting.
I came up with the following circuit in Yenka, to try it, but I don't think I'm going about it the best way. It works OK in the Yenka simulation, but I don't know that it will be realiable with the rotary type pulses that may be fast(as fast as a person can turn the knob)
http://dl.dropbox.com/u/66965217/counter.jpg
When I look up circuits online most of the encoder circuits have to do with optic encoders or quadrature? encoders which I don't believe I have.
Any help is appreciated.