You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm currently experimenting with this library in conjunction with a Seeed Studio XIAO nRF52840 (Sense) board. However, I've observed a low data rate when transmitting data via the serial port. Initially, I suspected that this might be due to the MCU speed, but since it operates at 64MHz, that shouldn't be the issue.
To provide context, I'm using basic Arduino code, and I'm seeing around 20-21 samples per second on the screen. Could this low data rate be attributed to a problem with the delay time conversion within the library?
Hello! I'm currently experimenting with this library in conjunction with a Seeed Studio XIAO nRF52840 (Sense) board. However, I've observed a low data rate when transmitting data via the serial port. Initially, I suspected that this might be due to the MCU speed, but since it operates at 64MHz, that shouldn't be the issue.
To provide context, I'm using basic Arduino code, and I'm seeing around 20-21 samples per second on the screen. Could this low data rate be attributed to a problem with the delay time conversion within the library?
` #include "ADS1115.h"
float Voltage = 0.0;
#ifdef SOFTWAREWIRE
#include <SoftwareWire.h>
SoftwareWire myWire(3, 2);
ADS1115 ads(myWire);//IIC
#else
#include <Wire.h>
ADS1115 ads(Wire);//IIC
#endif
void setup(void)
{
Serial.begin(115200);
while(!ads.begin(0x48)){
Serial.print("ads1115 init failed!!!");
delay(1000);
}
//ads.begin(0x49)
//ads.begin(0x4A)
//ads.begin(0x4B)
}
void loop(void)
{
int16_t adc0,adc1,adc2,adc3;
adc0 = ads.getConversionResults(channel0); //P = AIN0, N = GND
//adc1 = ads.getConversionResults(channel1); //P = AIN1, N = GND
//adc2 = ads.getConversionResults(channel2); //P = AIN2, N = GND
//adc3 = ads.getConversionResults(channel3); //P = AIN3, N = GND
Voltage = (adc0 * 0.1875);
} `
Serial output:
PD: I change between 250, 475 and 860 sps settings and i got the same result
The text was updated successfully, but these errors were encountered: