Raspberry Rotary Angle Sensor
By definition, a rotary potentiometer refers to a potentiometer that can change its resistance value according to the rotation of the adjusting knob on the potentiometer. This method of adjusting resistance can effectively reduce the size of the potentiometer so that it can be used in many commercial electronic products. Therefore, although rotary potentiometers sound foreign, many products in our life that we are familiar with are actually implemented with rotary
potentiometers, such as volume adjustment knobs on audio, on various industrial equipment consoles, etc. So how does a rotary potentiometer work?
The following figure shows the internal structure of an ordinary rotary potentiometer:
When you rotate the knob, the sliding wiper connected to the knob slides on the resistive material with the rotation. With the sliding, the length of resistive material between A–B and B–C changes, which causes the resistance value and thus the output voltage to change accordingly. Using the Rotary Angle Sensor, we can easily input analog signals of different values to Pico. However, to make use of these input analog signals to complete the project, we need to learn how to use comparison operators to process them.