my project is to convert voltage to angle(degree) using potentiometer. i already measure voltage and got their step in binary n hex..but my problem is how can i relate the voltage measured with angle(in degree)...??
say you have maximum Vmax and minimum Vmin voltage and correspondingly angles Amax and Amin.
Calculate (Vmax - Vmin) / (Amax - Amin) = x and x will be Voltage for 1 unit of degree
so i must use this formula to get voltage for 1 degree...i already measure the value for each degree in practical but the value not constant...what value should i get..using calculation o value measure in practical?...n can u explain to me about ASCII and BCD??
so i must use this formula to get voltage for 1 degree...i already measure the value for each degree in practical but the value not constant...what value should i get..using calculation o value measure in practical?...n can u explain to me about ASCII and BCD??
You should be aware that general purpose potentiometers have only about 270 degrees of rotation, so you cannot use the Vmax thru Vmin divided by 360deg to give the angle/volt.
Measure exactly the total rotation the pot has in degrees and use that as the divisor.
the pot is in series with another resistor (1k)...in theoretical, voltage divider used to get the vout..the value is all most constant in practical..just some Volt can't be read...i just worry the inconstant value can effect my data o my final result...and it's the value vref=vmax??
Why not apply VDD (the reference voltage for the AD converter)to the ccw terminal, ground the cw terminal, and take the output signal (AD input) from the wiper?