-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADS1262 - Unable to acquire data #14
Comments
I remain hopeful for suggestions/guidance on ADS1262 data values from ProtoCentral ADS1262 "1-Simple_Differential.ino". Have upgraded MCU from Feather M0 to Feather M4 Express, and commented sketch "#include <SoftwareSerial.h> since previous comment. Data "readout voltage/mv" remains 0.00 & 0.00 resp. I embed logic analyzer image but cannot include *.rar archive of Saleae logic files for analysis. Data only displays intermittently or at interval(s) of ~732ms?? Analyzer traces self labeled and arranged for clarity of response and issue. PLEASE advise steps for further testing or diagnositcs. |
I MAY be getting close to successful configuration of the ADS1262 and the Feather M4 Express as an SD card data acquisition system. This configuration also provides GPS header statements in each file, and fairly large SD cards (32Gb & 64Gb) using Fat32 or ExFat with 32k clusters and 128k clusters resp. I am storing raw binary at up to 38.4 ksps to the SD card with some reasonable success, but still struggling a bit to get the ADS1262 to "start" and/or "sync" with the sample clocks. To the interests of wizards I include my crude sketch. Further, to some other inquiries, I have also successfully "tested" the ProtoCentral on Arduino Uno R3. and the "example" sketch. (currently using pushbutton(s) to start file for selected DURATION) Comments/Guidance appreciated: ``/Compiled for Feather M4 Express (SAMD51) #include <SPI.h> #define SPI_SPEED SD_SCK_MHZ(12) // name of the GPS hardware serial port? // Connect to the GPS on the hardware port String NMEA1; //AirLIft WiFi const int ledStart = A1; //Pins used for the connection with the sensor, the others are controlled by the SPI library): (Feather M4 pins assigned in ads1262.h) int recPressed = 0; ads1262 PC_ADS1262; //ADS class //ADS1262 global #define START1 0x08 //float volt_V=0; unsigned char buffer1[32000]; void setup() GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA); pinMode(WIFININA_SLAVESELECT,OUTPUT); //AirLift_WiFi_CS_PIN 13 pinMode(10, OUTPUT); // DON'T change this(10) - Hardware sd_cs_pin pin must be left as output for SD library functions to work correctly // initalize the data ready and chip select pins: digitalWrite(WIFININA_SLAVESELECT, HIGH); Serial.begin(115200); // Max Baud Rate digitalWrite(ADS1262_PWDN_PIN,HIGH); digitalWrite(10, HIGH);
for (int dloop = 0; dloop < 4; dloop++) {
// PC_ADS1262.ads1262_SPI_Command_Data(START1); } void loop() if(recPressed){
if(SPI_RX_Buff_Count >= 5)
}
} void StartRec() // start recording method
} myFile = SD.open(filename, FILE_WRITE); // Serial.println(NMEA1); //Uncomment these lines to display GPGGA on serial monitor, !!! Start loop will not execute if serial monitor is not displayed
} void StopRec() { // stop recording method
} void readGPS(){ //This function will read and remember two NMEA sentences from GPS while(!GPS.newNMEAreceived()) { //Go out and get the second NMEA sentence, should be different type than the first one read above. void clearGPS() { //Since between GPS reads, we still have data streaming in, we need to clear the old data by reading a few sentences, and discarding these |
Hello, I'm trying to connect the ads1262 with an arduino uno so I can measure voltage with higher precision.
I'm using the same connections you suggest and the same code.
However in serial monitor, I only get the "successful initialization" message and then nothing or I get only zero values of voltage.
I apply the analog signal from a NI ELVIS III breadboard.
Is this something you can help me with ?
Thank you in advance!
The text was updated successfully, but these errors were encountered: