Coder Social home page Coder Social logo

ads1256's People

Contributors

adienakhmad avatar chepo92 avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ads1256's Issues

bugs in the code

I have explained some issues in the comments, a summary is below:

  1. RESETPIN needs to be TRUE so the board will work
  2. buffenable if set to TRUE/FALSE, the output will be changed slightly !!! why
  3. increasing the gain, reduces the output value slightly (i.e the error increase with higher gain)
  4. single channels are not working (such as AIN0 & AIN_COM), diff channels are working fine

Arduino Uno Error

Hi, I can't use the library with Arduino Uno, I can compile the code only for Arduino Mega. Can pins for Arduino Uno be remapped? Thank you.

SPS problem

Hi, I am writing for a problem encountered in using this library for my ADS1256 with Arduino Uno. The setting for the SPS does not work correctly, I don't know if it is my mistake or a bug, but I have already redone the connections 3 times, and confirmed the operation with other libraries.
Even writing the value in the register does not respond correctly to the settings (adc.writeRegister (DRATE, ADS1256_DRATE_10SPS);). The values ​​obtained either remain fixed at 50SPS, or oscillate between 2000 and 3000, or are lower than the set value over 50%.
Below is the code I use to measure SPS over a period of time, working with other ADCs. Furthermore, the gain only seems to divide the result by it's value.

int count = 0; double sum = 0; unsigned long t0 = millis();

while (millis() - t0 < 1000) {
    adc.setChannel(0, -1);
    float y = adc.readCurrentChannel();
    sum += y;
    count++;
}

Serial.print(sum / count, 4);
Serial.print(" , SPS = ");
Serial.println(count);`

Arduino UNO,ADS1256 on breadboard,Visual Studio 2019
Thanks.
I apologize for the translator, I don't have much experience with English.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.