hi chem,
> To give a good example of what I am dealing with imagine a 1 dimensional axis of a joystick; if the joystick is pushed up all the way then that would equal 1.61v and if it is pushed down all the way that is equal to 0v. So if it is left idle in the center it should read 0.805v.
>> So 1.61v is the max and 0v is the minimum voltage I would deal with in my particular case.
Using these voltage inputs with a +Vref [internal] of +5V....
ADNin = 0V, ADC value = 000
ADNin = 0.805V, ADC value = (0.805/5) * 1023 = 164 [ 0xA4]
ADNin = 1.61V, ADC value =(1.61/5)*1023 = 329 [0x149]
IF, you wanted to increase the resolution, [get a bigger count range], you could set the +Vref to +2.5V,
this would have the effect of doubling the above count values.
You would have to connect a +2.5Vref voltage source to +Vref, this would change ALL the ADCin's to the new scale factor.
[You should not use a +Vref of less than +2.5V, else you would be out of spec for the PIC]
>> So let me get this straight.
If I have 6 analog signals (6 different potentiometers) to attach to my PIC all I would need to attach is the +5v, ground and the 6 wires from the potentiometers?
The spec sheet for the PIC, states that the source impedance of the analog voltage source should not exceed 10K0.
All this means is, the resistance value of the joystick pots should not be more than 10K0...
If this is not possible, then there are ways around it, a little more circuitry.
Or is there more I would need to connect to get this to work?
No, providing the joystick pots are less than 10K.
Hope this is clear, ask if not.
Regards