ADS1X15 | Arduino library for ADS1015 = I2C 12 bit ADC

 by   RobTillaart C++ Version: 0.3.9 License: MIT

kandi X-RAY | ADS1X15 Summary

kandi X-RAY | ADS1X15 Summary

ADS1X15 is a C++ library typically used in Internet of Things (IoT), Arduino applications. ADS1X15 has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This library should work for the devices mentioned below, although not all sensors support all functionality. As the 1015 and the 1115 are both 4 channels these are the most interesting from functionality point of view as these can also do differential measurement.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ADS1X15 has a low active ecosystem.
              It has 85 star(s) with 14 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 29 have been closed. On average issues are closed in 16 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ADS1X15 is 0.3.9

            kandi-Quality Quality

              ADS1X15 has 0 bugs and 0 code smells.

            kandi-Security Security

              ADS1X15 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ADS1X15 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ADS1X15 is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ADS1X15 releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ADS1X15
            Get all kandi verified functions for this library.

            ADS1X15 Key Features

            No Key Features are available at this moment for ADS1X15.

            ADS1X15 Examples and Code Snippets

            No Code Snippets are available at this moment for ADS1X15.

            Community Discussions

            QUESTION

            Sample data for an ADC
            Asked 2020-Dec-10 at 14:35

            I applied the following code (https://circuitpython.readthedocs.io/projects/ads1x15/en/latest/examples.html) to read voltage.

            In the last line of python code, I have set time.sleep command as (1/3300 s)

            I have following queries:

            1. In the time column, time-step comes out to be approximately (0.02 s). However expected time-step is (1/3300)s. Why does this occur?
            2. How do I ensure that the time-step i.e sampling frequency between two successive time data points remains exactly at 3300 Hz. ?
            3. How do I ensure that 1st time-data point starts with "0"?

            Can somebody please clarify my doubts!

            ...

            ANSWER

            Answered 2020-Dec-03 at 20:40

            The sampling rate of the ADS1015 is meant to be 3300S/sec only in continuous mode, and sampling one channel at a time. There are 2 steps here:

            1. Ensure your ADC is in continuous sampling mode. Putting it in continuous mode would be something like "adc.mode = 0", provided your library supports it. I have used this one https://github.com/adafruit/Adafruit_ADS1X15 and it does support it.
            2. Ensure that the Data rate in the config register is set to 3300. (page 16 on the datasheet at https://cdn-shop.adafruit.com/datasheets/ads1015.pdf)

            Purely that would also mostly not be enough, getting to the full potential of the ADC would also need a compatible processor that can handle large amounts of data on its i2c bus. Something like a raspberry pi is mostly not powerful enough. Using faster languages like C/C++ would also help.

            Source https://stackoverflow.com/questions/65121376

            QUESTION

            How handle unexpected Key press
            Asked 2020-Oct-27 at 13:21

            I have designed an application which have two buttons i.e CAL and SAV. Accordingly that I have two functions but the issue is sometimes production line Operator by mistake presses SAV button. So that attribute error arises and program stuck.

            How to overcome this issue? Please guide me.

            Here is my code:

            ...

            ANSWER

            Answered 2020-Oct-27 at 13:21

            A brute force solution would be to check whether root has an L2 attribute or not

            Source https://stackoverflow.com/questions/64549706

            QUESTION

            node red on raspberry pi 4 trying to use the i2c scan node but it returns 3 address which are not what i am connected to?
            Asked 2020-Aug-24 at 18:54

            Started using node red to make a better interface than tkinter, all is going good but i am trying to now connect node red to show devices connected to my i2c bus, i am using the i2c scan node which shows 3 devices connected to my i2c bus at address 39,72,and 73, but my devices are connected to 27,48,and 49. i have ads1x15.ads1015 connected to 0x47 ads1x15.ads1015 connected to 0x48 gpio expander conneccted to 0x27

            any ideas why i am seeing the wrong numbers on the ic2 scan in node red compared to i2cdect -y 1 in the terminal window on the rasberry pi4?

            ...

            ANSWER

            Answered 2020-Aug-24 at 18:54

            The answers from the node are right, it's just that they are in base 10 not base 16

            Source https://stackoverflow.com/questions/63565637

            QUESTION

            CSV file not updating until script is terminated when continuously appending file
            Asked 2020-Jun-09 at 21:48

            I recently started a project to make a data logging script for my Raspberry Pi. My goal is to make a program that can:

            1. Collect voltage data from the pH sensor that's hooked up to my Pi (that's the getData() function).
            2. Plot it on the screen in real time.
            3. Continuously append them into a CSV file every few seconds.

            I've included my code below for both the function that collects sensor data and the function that plots/saves them. Everything works as expected, except for some reason I can't see the new data added to the CSV file test2.csv until I terminate the code with Ctrl+C (the IDE is Thonny).

            While the code is running, the csv file is just blank, and not even the heading "Data and Time, P0, P1" is there, making me think that for some reason Python doesn't actually append new data into the file until the very end.

            If I stopped the script using the red "Stop/Restart Backend" button from Thonny, no new data will be added to test2.csv. New data will only be appended to test2.csv if I run the script and stop it using Ctrl+C, which isn't helpful because I want to be able to access the existing data without stopping the program.

            Any idea on how to fix this so that the CSV file will update without me terminating the script?

            My function for collecting data:

            ...

            ANSWER

            Answered 2020-Jun-09 at 21:48

            The answer is actually pretty simple and easily reproducible. Python does not write to files until you close the file that was opened.

            Proof:

            Source https://stackoverflow.com/questions/62287259

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ADS1X15

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link