Giter Site home page Giter Site logo

ADS111x problems about esp-idf-lib HOT 5 CLOSED

unclerus avatar unclerus commented on May 20, 2024
ADS111x problems

from esp-idf-lib.

Comments (5)

helopez avatar helopez commented on May 20, 2024 3

I figured out the problem, this is not a bug, at least not a problem with the library.

Depending on how you set the ads111x_set_data_rate, you must add a delay to allow the ads1115 chip to measure the value. In my case I was setting the data rate to 8 per second (ADS111X_DATA_RATE_8) , theoretically then I must wait 125ms before reading the value. I configured it to 150ms and the values are read fine.
Another way of doing this would be to connect the alert/ready pin to get notified when the conversion is ready.

from esp-idf-lib.

schroedermarius avatar schroedermarius commented on May 20, 2024

I've changed it to ADS111X_MUX_0_GND and got now good measuring values around 2890.
I've only attached 1 sensor at ADS111X_MUX_0_GND, why am I getting the same values at ADS111X_MUX_1_GND, ADS111X_MUX_2_GND and ADS111X_MUX_3_GND? I need to switch the channels for other sensors.

from esp-idf-lib.

helopez avatar helopez commented on May 20, 2024

I had the same problem (reading the same voltage) when trying to measure a differential and a relative to ground voltage. Is there a work around to this problem?

from esp-idf-lib.

DhruvaG2000 avatar DhruvaG2000 commented on May 20, 2024

Hey feel free to refer this repo where you will find pin diagram and corresponding code that actually works!

from esp-idf-lib.

HamadAli09 avatar HamadAli09 commented on May 20, 2024

Hi, I see this issue is closed but i am stuck at this point. I am only able to read one analaog input channel at one time only. How can i read all four single ended channels simultaneously?

from esp-idf-lib.

Related Issues (20)

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.