Maker Pro
Maker Pro

Identifying the direction of rotation

electronicsLearner77

Jul 2, 2015
306
Joined
Jul 2, 2015
Messages
306
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
Nov 17, 2011
13,722
Joined
Nov 17, 2011
Messages
13,722
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