I am using the ADS1115 16-bit ADC breakout board from Adafruit, along with a STM32F411CE Black Pill running at 48 MHz. Using the awesome library https://github.com/adafruit/Adafruit_ADS1X15 provided by you guys I am able to interface with the breakout board seamlessly.
However, I had some doubts or inquiries on the speed of the the readADC_singleEnded(). I have a loop reading 288 pixels from a sensor,
Code: Select all
for(int i = 0; i < 288; i++){
long start = millis();
//data[i] = analogRead(SPEC_VIDEO);
data[i] = ads.readADC_SingleEnded(0);
long dur = millis() - start;
Serial.println(dur);
//Clock cyle
digitalWrite(SPEC_CLK, HIGH);
delayMicroseconds(delayTime);
digitalWrite(SPEC_CLK, LOW);
delayMicroseconds(delayTime);
}
Thanks.