Maker Pro
Maker Pro

Identifying the direction of rotation

If I have a pot connected as below from a reference schematic, I want to understand the CW and CCW of rotation in software.
upload_2021-6-1_23-5-3.png
The AVDD voltage is 3.3v, my understanding is when the voltage is increasing from 0V to 3.3V then it is clockwise and if the voltage is decreasing from 3.3V to 0V it is CCW, is it correct? Please help.
 

Harald Kapp

Moderator
Moderator
Yes, but cause and effect are reversed: When you turn the potentiometer clockwsie, voltage at "pot" increases, when you turn the potentiometer counterclockwise, voltage at "pot" falls.
 
Top