I’m trying to use the ADC pins on my HTCC-AB02A boards. Unfortunately, so far I’ve been unsuccessful. Since the AB02A has three ADC’s, do I still need to remove a resistor to make those work?
The code I tried is the basic ADC example:
#include "Arduino.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
uint16_t voltage;
void loop() {
// put your main code here, to run repeatedly:
voltage=analogRead(ADC);//return the voltage in mV, max value can be read is 3300mV
Serial.print(millis());
Serial.print(" ");
Serial.println(voltage);
delay(1000);
}
The reading does not change at all.
Also, how do I select between the ADC pins?