Difference: RotaryEncoder (1 vs. 2)

Revision 22017-02-05 - uli

Line: 1 to 1
 
META TOPICPARENT name="SensorKit"

Rotary Encoder

Added:
>
>
The rotary encoder can be considered as 2 switches which periodically open and close as you turn the encoder shaft. It can be used e.g. to change the volume on a music system or, when connected to a motor shaft, to measure the motor speed or position.

We need 2 square wave signals in order to distinguish the encoder being turned left of right.

 
rotaryEncoder.png
the rotary encoder
Added:
>
>
The encoder board has got 5 pins:
  • Vcc
  • Ground
  • sw
  • dt
  • clk
It contains two 10 kΩ resistors to limit the current when the switch is closed. The pulse train on the dt (data) pin with respect to the clk pin is shifted by 90° in such a way that, when turning right, after each transition of the clk signal the data signal is in opposite phase (when clk is high, dt is low and vice versa). When turning left, then the two signals are in phase.
rotaryRight.png rotaryLeft.png
pulse trains when turning right pulse trains when turning left
Finally the shaft can be pushed down to close a switch, similar to a simple push button. The state of this push button is seen on the sw pin.
  -- Uli Raich - 2017-02-05
Line: 11 to 25
 
<--/commentPlugin-->

META FILEATTACHMENT attachment="rotaryEncoder.png" attr="" comment="" date="1486298194" name="rotaryEncoder.png" path="rotaryEncoder.png" size="33460" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="rotaryRight.png" attr="" comment="" date="1486309782" name="rotaryRight.png" path="rotaryRight.png" size="2809" user="uli" version="1"
META FILEATTACHMENT attachment="rotaryLeft.png" attr="" comment="" date="1486310099" name="rotaryLeft.png" path="rotaryLeft.png" size="4070" user="uli" version="1"

Revision 12017-02-05 - uli

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="SensorKit"

Rotary Encoder

rotaryEncoder.png
the rotary encoder

-- Uli Raich - 2017-02-05

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="rotaryEncoder.png" attr="" comment="" date="1486298194" name="rotaryEncoder.png" path="rotaryEncoder.png" size="33460" user="uli" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback