View Single Post
  #2   Spotlight this post!  
Unread 13-02-2008, 18:45
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Printing Analog Input with Kevin's new code

It should be normal, something like:

Code:
        for (k = 1; k <= NUM_ADC_CHANNELS; k++) {
            printf("ADC %d: %d\r\n", k, Get_ADC_Result(k));
        }
If you want to get fancy. Make sure the number of ADC channels is set correctly in adc.h. This looks more like an electrical problem though. You may want to check with an oscilloscope that you are actually getting values from the ADC.