-
1
- #1
crashbox455
Automotive
- Jul 12, 2003
- 28
i'm trying to learn how to program PIC's, and am not getting very far. i'm not a computer programmer at all, i did a little QBasic back in junior high, but you can imagine how sophisticated that class was...
anyway, i have a sensor i want to read, which is a basic potentiometer. input 5V, and see what's left on the other side, is that how it works? so how do you get the processor to read a given voltage as an input? PICBasic language has a "Pot" command, but it seems like a kludge to me.
i have read that you can do this with an ADC, but i'm limited in my knowledge of electronic parts. i don't see what an ADC has to do with what i'm trying to do.
can anyone walk me through this?
anyway, i have a sensor i want to read, which is a basic potentiometer. input 5V, and see what's left on the other side, is that how it works? so how do you get the processor to read a given voltage as an input? PICBasic language has a "Pot" command, but it seems like a kludge to me.
i have read that you can do this with an ADC, but i'm limited in my knowledge of electronic parts. i don't see what an ADC has to do with what i'm trying to do.
can anyone walk me through this?