|
Re: potentiometer code
What language? You use the center pin of the potentiometer to find voltage when you connect the other two terminals to power and ground (one to power, the other to ground). Then you map that voltage between the maximum and minimum voltage you can get from the potentiometer (turn it all the way one way and all the way the other way to find that) and that's how you get your angle relative to the minimum and maximum.
|