ads1x15 | Micropython driver for ADS1115 and ADS1015

 by   robert-hh Python Version: Current License: No License

kandi X-RAY | ads1x15 Summary

kandi X-RAY | ads1x15 Summary

ads1x15 is a Python library typically used in Internet of Things (IoT), Raspberry Pi applications. ads1x15 has no bugs, it has no vulnerabilities and it has low support. However ads1x15 build file is not available. You can download it from GitHub.

Micropython driver for ADS1115 and ADS1015
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ads1x15 has a low active ecosystem.
              It has 67 star(s) with 23 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 6 have been closed. On average issues are closed in 36 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ads1x15 is current.

            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 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              ads1x15 releases are not available. You will need to build from source code and install.
              ads1x15 has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              ads1x15 saves you 68 person hours of effort in developing the same functionality from scratch.
              It has 177 lines of code, 25 functions and 1 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ads1x15 and discovered the below as its top functions. This is intended to give you an instant insight into ads1x15 implemented functionality, and help decide if they suit your requirements.
            • Read one or more channels
            • Writes a register to the given register
            • Read a register from memory
            • Start alert
            • Start conversion
            • Return the revision of the register
            • Read register
            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.
            You can use ads1x15 like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            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
            CLONE
          • HTTPS

            https://github.com/robert-hh/ads1x15.git

          • CLI

            gh repo clone robert-hh/ads1x15

          • sshUrl

            git@github.com:robert-hh/ads1x15.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link