Hi,
I am developing an instrument and I need to read bunch of analog voltages and I plan to use Teeny 3.6. I need to read 16 analog voltages and I will be using analog channels 0-9 and 12-17. Channels 0-9 and 12-13 work fine but channels 13-17 just read 1-2 counts where they should be reading much higher (analog voltages are applied correctly so that should not be an issue. Simple sample code that illustrates the problem is below so please let me know where I am messing up.
I am developing an instrument and I need to read bunch of analog voltages and I plan to use Teeny 3.6. I need to read 16 analog voltages and I will be using analog channels 0-9 and 12-17. Channels 0-9 and 12-13 work fine but channels 13-17 just read 1-2 counts where they should be reading much higher (analog voltages are applied correctly so that should not be an issue. Simple sample code that illustrates the problem is below so please let me know where I am messing up.
Code:
int ADC_Ports[] = {13, 14, 15, 16, 15, 17};
void setup() {
Serial.begin(9600);
analogReadResolution(12);
//analogReference(EXTERNAL);
analogReference(DEFAULT);
}
void loop() {
Serial.print("Start:");
for (int i = 0; i < 6 ; i++) {
Serial.print( analogRead(ADC_Ports[i]));
Serial.print(",");
delay(50);
}
Serial.println("End");
}