|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
||||
|
||||
|
Re: Potentiometer with ADC
DustinB_3 you must be using Kevin's code. If you are you just follow the instructions to integrate his code into yours, or use his complete project.
Then to get the value you call Get_ADC_Result(unsigned char port#). The following code would get the value from analog input 1. Code:
int position = Get_ADC_Result(1); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Motor with a built in Potentiometer..? | Kaushal.K | Motors | 5 | 09-01-2007 08:31 |
| With gyro need to access ADC for poteniometer | mrozek | Programming | 0 | 21-02-2005 13:39 |
| error with adc.h | incognito_NICK | Programming | 2 | 05-02-2005 23:27 |
| Potentiometer with BS2 | sanddrag | Programming | 7 | 13-05-2004 19:21 |
| ADC problems with C library and new code | Larry Barello | Programming | 1 | 09-01-2004 22:31 |