250+ TOP MCQs on Rotary Encoder and Answers

Arduino Multiple Choice Questions on “Rotary Encoder”.

1. What is the use of the rotary encoder?
a) To measure RPM or speed
b) To provide 3G Connectivity
c) To measure presence of gas
d) To measure Wi-Fi strength
Answer: a
Calrification: The rotary encoder is used to measure the RPM or speed or any other such motion and angular velocity related parameters of any robotic system or any other system in general. It provides a series of ticks which provide us with the necessary information to decode that into our required values.

2. How many terminals does the rotary encoder have?
a) 1
b) 3
c) 5
d) 4
Answer: c
Calrification: The rotary encoder has 5 terminals which include the Vcc for power supply, the CLK for clock, DATA which provides us the output wave, and SWC which switches voltage to 0 and GND which is required for completing the circuit through the sensor and grounding it.

3. What is the purpose of the CLK pin in the rotary encoder?
a) To provide pulse reference
b) To power the module
c) To shut down the module
d) To provide analog reference voltage
Answer: a
Calrification: The rotary encoder has a CLK pin and a DATA pin. The DATA pin gives out pulses which vary in phase depending upon the direction of rotation of the rotary encoder. However we cannot determine these variations until we compare the wave pattern with another steady non-variable pulse train. The CLK pin provides exactly that.

4. What will happen if we supply a voltage of 25V to the Vcc of the rotary encoder?
a) Damage is caused
b) Module will shut down
c) Module will not respond for the time the voltage is applied
d) Module will function normally
Answer: a
Calrification: The rotary encoders are mostly built to work on a voltage of approximately 3.3V to 5V. Any voltage lower than that and the board will not be able to power on, but however any voltage significantly above that and the board may suffer permanent damage.

5. What is the maximum output voltage that the rotary encoder can put out on its DATA output pin?
a) 1V
b) 140V
c) 5V
d) 10V
Answer: c
Calrification: The maximum output voltage of the DATA pin on the rotary encoder is 5V while the lowest is 0V. There is no voltage level in between them as the DATA out pin is a digital pin and can represent only 2 logic levels.

6. What is the purpose of the DATA pin in the rotary encoder?
a) To provide direction of motion
b) To power the module
c) To shut down the module
d) To provide analog reference voltage
Answer: a
Calrification: The rotary encoder has a CLK pin and a DATA pin. The DATA pin gives out pulses which vary in phase depending upon the direction of rotation of the rotary encoder which is determined by comparing it with the non-variable pulse train of the CLK pin.

7. If the output of the CLK and DATA pins is given as:

Which direction is the rotary encoder moving?
a) Swinging both clockwise and anticlockwise
b) Anticlockwise
c) Clockwise
d) Still
Answer: b
Calrification: If the DATA pin is in sync with the CLK pin, then we can say that it is moving in the clockwise direction. However, here in this case, the DATA pin is not in sync with the CLK pin and has a 90 degree phase shift with respect to the train of the CLK pin so we can say that it is moving in the anticlockwise direction.

8. If the output of the CLK and DATA pins is given as:

Which direction is the rotary encoder moving?
a) Swinging both clockwise and anticlockwise
b) Anticlockwise
c) Clockwise
d) Still
Answer: c
Calrification: If the DATA pin is in sync with the CLK pin, then we can say that it is moving in the clockwise direction. Here, in this case, the DATA pin is in sync with the CLK pin and has no phase shift with respect to the train of the CLK pin so we can say that it is moving in the clockwise direction.

9. If the output of the CLK and DATA pins is given as:

Which direction is the rotary encoder moving?
a) Swinging both clockwise and anticlockwise
b) Anticlockwise
c) Clockwise
d) Still
Answer: d
Calrification: If the DATA pin is in sync with the CLK pin, then we can say that it is moving in the clockwise direction. However, here in this case, the DATA pin is not changing at all with respect to the CLK pin and is stalled at 1. This will happen if there is no rotation on the shaft of the rotary encoder. Hence we can say that the encoder is sitting idle or still.

10. If the output of the CLK and DATA pins is given as:

Which direction is the rotary encoder moving?
a) Swinging both clockwise and anticlockwise
b) Anticlockwise
c) Clockwise
d) Still
Answer: a
Calrification: If the DATA pin is in sync with the CLK pin, then we can say that it is moving in the clockwise direction. However, here in this case, the DATA pin, during the first half of the pulse train is not in sync and appears to have a 90 degree phase shift which entails that the rotary encoder must be turning anticlockwise. However, during the second half of the pulse train it appears to be in sync with the CLK pin, so it is turning clockwise. So, from that we can say that the rotary encoder must be swinging.

Global Education & Learning Series – Arduino.