1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ADC channel numbers

Discussion in 'GPIO Modules' started by DMc, Aug 31, 2015.

  1. DMc

    DMc New Member

    Joined:
    Aug 19, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Occupation:
    Engineer
    Location:
    USA
    From the User Manual in the GPIO/Analog inputs section, I see the following:
    GPIO Ch 0 = ADC 0
    GPIO Ch 1 = ADC 1
    GPIO Ch 2 = ADC 2
    GPIO Ch 3 = ADC 3
    GPIO Ch 4 [no analog]
    GPIO Ch 5 [no analog]
    GPIO Ch 6 = ADC 5
    GPIO Ch 7 = ADC 6

    It would have been easier for looping through to read the analog channels if the ADC channels were numbered from 0 to 5 instead of 0-3 and 5,6.

    Is the above correct?
    Does this mean that sending "adc read 4" will not return anything?
     
  2. DMc

    DMc New Member

    Joined:
    Aug 19, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Occupation:
    Engineer
    Location:
    USA
    GPIO 8. So here is what I have found. Please let me know what I am doing wrong or confirm that the Numato User Manual is incorrect.
    I have a temperature sensor that is reading fine on the Numato device and confirmed with a digital multimeter. Now I want to hook up other sensors to the remaining ADC channels but need to understand the schema after IO5.
    Read the sensor voltage with a digital meter, get a reading of 0.78V.
    I connect the same sensor to:
    IO0, send a command adc read 0, get a reading of 0.78V. OK.
    IO1, send a command adc read 1, get a reading of 0.78V. OK.
    IO2, send a command adc read 2, get a reading of 0.78V. OK.
    IO3, send a command adc read 3, get a reading of 0.78V. OK.
    IO4 and IO5 according to the manual is not supposed to have analog. I do not get meaningful adc readings from these IOs. OK
    IO6, send command adc read 4 get a reading of 0.78V. (according to the manual IO6 is adc 5 so I did not expect this)
    IO6, send command adc read 5, get a reading of 0. (according to the manual IO6 is adc 5 so I did not expect this. I expected 0.78V)
    IO7, send command adc read 5, get a reading of 0.78V (according to manual IO7 is adc 6 so I did not expect this.)
    IO7, send command adc read 6, get a reading of 0.78V. OK (according to the manual IO7 is adc 6, so this is the expected result.)
    IO7, send command adc read 7, get a reading of 0.78V (huh? there is no adc 7)

    What is the correct adc send ? command when connected to IO7?

    Should the manual on Page 3, GPIO/Analog inputs, read as follows?:
    IO Ch 0 = ADC 0
    IO Ch 1 = ADC 1
    IO Ch 2 = ADC 2
    IO Ch 3 = ADC 3
    IO Ch 4 [no analog]
    IO Ch 5 [no analog]
    IO Ch 6 = ADC 4 ?
    IO Ch 7 = ADC 5 ?

    Someone please offer some insight, otherwise I am stuck using only IO0 though IO3.

    Thank you
     
  3. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
    Hi DMc,

    I had someone crosschecked the datasheet and the firmware and it turns out the datasheet is incorrect. The analog input channels are numbered 0 - 5. So it should be possible to access them easily in a loop. we will correct the datasheet as soon as possible. Also thanks for notifying us about this mistake.

    Thanks,
    Tom
     
  4. DMc

    DMc New Member

    Joined:
    Aug 19, 2015
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Occupation:
    Engineer
    Location:
    USA
    Tom, thank you. A little problem solving keeps my brain active!
    Dave
     

Share This Page