Analog Read using ARD-LTC2499 24 bit 16 channel board (Code Help needed)

Hello,

I am new to Arduino programming and just need a bit of help. I have recently bought an ARD-LTC2499 24 bit 16 channel board for an Arduino so I can take more analog serial read readings per second and also a wider range instead of just 0-1024. I just need help with the code.

The board: ARD-LTC2499: 16-Channel 24-Bit ADC Data Acquisition Shield for Arduino
The documentation: ARD-LTC2499 Library Reference
The GitHub page: ard-ltc2499/ard2499_example.ino at master · IowaScaledEngineering/ard-ltc2499 · GitHub

My current Code for analog read from a photodiode:

void setup() {
  // initialize serial communication at 9600 bits per second:

  pinMode(8, OUTPUT);
  pinMode(7, OUTPUT);

  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {

  digitalWrite(8, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(8, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second


  digitalWrite(7, HIGH);

  // read the input on analog pin 0:
  int sensorValue0 = analogRead(A0);

  
  // print out the value you read:
  Serial.println(sensorValue0);

}

Github example of the 24 bit board:

#include <Wire.h>
#include <Ard2499.h>

Ard2499 ard2499board1;

byte confChan=0;

void setup() {
  // initialize serial communications at 9600 bps:
  Serial.begin(9600);
  Wire.begin();
  ard2499board1.begin(ARD2499_ADC_ADDR_ZZZ, ARD2499_EEP_ADDR_ZZ);
  ard2499board1.ltc2499ChangeConfiguration(LTC2499_CONFIG2_60_50HZ_REJ);
  ard2499board1.ltc2499ChangeChannel(LTC2499_CHAN_SINGLE_0P);

}
byte i=0;

void loop() {
  // print the results to the serial monitor:

  while(!Serial.available())
  {
    enumerateI2C(false);
    delay(1000);
  }

  byte retval = 0;
 
  Serial.print("eeprom mac = [");
  Serial.print(ard2499board1.eui48Get());
  Serial.print("]\n");
  
  Serial.print(" write eeprom[0] ");
  Serial.print(i);
  retval = ard2499board1.eepromWrite(0, i, true);
  Serial.print(" retval=");
  Serial.print(retval);
  Serial.print("\n");
  i++;

  Serial.print("read eeprom[0] ");
  Serial.print(ard2499board1.eepromRead(0, true));
  Serial.print("\n");


  for(i=0; i<17; i++)
  {
    byte newChannel;
    
    switch(i)
    {
       case 0:
          newChannel = LTC2499_CHAN_SINGLE_1P;
          break;
          
       case 1:
          newChannel = LTC2499_CHAN_SINGLE_2P;
          break;

       case 2:
          newChannel = LTC2499_CHAN_SINGLE_3P;
          break;

       case 3:
          newChannel = LTC2499_CHAN_SINGLE_4P;
          break;

       case 4:
          newChannel = LTC2499_CHAN_SINGLE_5P;
          break;
          
       case 5:
          newChannel = LTC2499_CHAN_SINGLE_6P;
          break;

       case 6:
          newChannel = LTC2499_CHAN_SINGLE_7P;
          break;

       case 7:
          newChannel = LTC2499_CHAN_SINGLE_8P;
          break;

       case 8:
          newChannel = LTC2499_CHAN_SINGLE_9P;
          break;
          
       case 9:
          newChannel = LTC2499_CHAN_SINGLE_10P;
          break;

       case 10:
          newChannel = LTC2499_CHAN_SINGLE_11P;
          break;

       case 11:
          newChannel = LTC2499_CHAN_SINGLE_12P;
          break;

       case 12:
          newChannel = LTC2499_CHAN_SINGLE_13P;
          break;

       case 13:
          newChannel = LTC2499_CHAN_SINGLE_14P;
          break;

       case 14:
          newChannel = LTC2499_CHAN_SINGLE_15P;
          break;

       case 15:
          newChannel = LTC2499_CHAN_TEMPERATURE;
          break;

       case 16:
       default:
          newChannel = LTC2499_CHAN_SINGLE_0P;
          break;

    }

    if (i == 16)
    {
      Serial.print("LTC2499 Temperature");
      Serial.print(" = [");
      Serial.print(ard2499board1.ltc2499ReadTemperature(ARD2499_TEMP_F));
      ard2499board1.ltc2499ChangeChannel(newChannel);
      Serial.print(" F]\n");
    }
    else
    {
      Serial.print("Channel ");
      Serial.print(i);
      Serial.print(" SE");
      Serial.print(" = [");
      Serial.print(ard2499board1.ltc2499ReadAndChangeChannel(newChannel));
      Serial.print("]\n");
    }
  }
  
  delay(1000);
}

byte enumerateI2C(boolean showErrors)
{
  byte addr, stat, last_ack = 0x00;
 
  Serial.print("Enumerating all I2C devices\n (Press any key to stop scanning I2C bus)\n-------------\n");
 
  for(addr=0x00; addr<0x7F; addr++)
  {
    Wire.beginTransmission(addr);
    stat = Wire.endTransmission();
    if(stat)
    {
      if(showErrors)
      {
        Serial.print("0x");
        Serial.print(addr, HEX);
        Serial.print(": ");
        Serial.print(stat);
        Serial.print("\n");
      }
    }  
    else
    {   
      Serial.print("0x");
      Serial.print(addr, HEX);
      Serial.print(" ");
      last_ack = addr;   
    }
  }  
  Serial.print("\n");
  return last_ack;
}

I need to use this code but for an Arduino instead of their board. Any help would be amazing. Thank you very much.

All the best

(deleted)

spycatcher2k:
That is code for an Arduino! :confused:

I may just be getting confused but if I just run this code will it connect? Like how do I connect it to an input port?