Giter VIP home page Giter VIP logo

Comments (3)

wollewald avatar wollewald commented on May 27, 2024

@Potul72; I am hesitating to do that because I do not recommend to use the continuous mode when you want to change channels. There is only one register for the conversion results and if you request it with getResult_V() or getResult_mV() you will get what is currently in the register even if a conversion is ongoing. So it could happen that you change the channel request a result and still get the result from the former channel. The isBusy() function which is used to wait for the latest conversion in the single shot mode does not work in the continuous mode.

If you really want to use the continuous mode despite this issue, you just need to change the channel with setCompareChannels(your choice), but add a delay() before you request the result. The delay needs to be adjusted to the sample rate. The slowest rate is 8 per second. So with delay(125) you are on the save side for all sample rates. But I personally don't like this too much.

from ads1115_we.

Potul72 avatar Potul72 commented on May 27, 2024

from ads1115_we.

wollewald avatar wollewald commented on May 27, 2024

Hi @Potul72, this would be nice, but is unfortunately not the case. This is a hardware limitation, not a library limitation. This feature would be on my wishlist if someone would design an ADC for me. I would also like to see continuous measurements on all channels in parallel with separate alert thresholds. Haven't found such a device yet. However I still like the ADS1115.

from ads1115_we.

Related Issues (15)

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.