If what I understood is correct, then a simple experiment could be as follows.

At 0 degree, record ADC value. Say it shows 150 (this would be your base value).

At 360 degree, record ADC value. Say it shows 900.

Then each degree would become as;
(900-150) / 360 = 2.

That means, when your ADC reading is 152, you will know that you are at 1st degree, 154 is 2nd, 156 is 3rd. etc...

With an additional math, which I am sure you can figure out, you can get the exact degree.


Was this what you needed, or I am in a different page?



----------------