{"id":18744646,"url":"https://github.com/wollewald/ads1115_we","last_synced_at":"2025-04-05T12:04:30.787Z","repository":{"id":46296504,"uuid":"275353093","full_name":"wollewald/ADS1115_WE","owner":"wollewald","description":"An Arduino library for the 16-bit, 4 channel ADS1115 ADC. Convenient to use. All features of the ADS1115 are implemented, including alert functions. ","archived":false,"fork":false,"pushed_at":"2025-02-08T12:06:23.000Z","size":967,"stargazers_count":112,"open_issues_count":1,"forks_count":26,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T11:08:34.452Z","etag":null,"topics":["adc","ads1115","arduino","arduino-library","attiny"],"latest_commit_sha":null,"homepage":"https://wolles-elektronikkiste.de/en/ads1115-a-d-converter-with-amplifier","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wollewald.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-27T10:56:18.000Z","updated_at":"2025-03-26T14:27:00.000Z","dependencies_parsed_at":"2023-10-17T02:04:06.672Z","dependency_job_id":"cbadfc35-935a-4736-81cc-620ec19a9a2e","html_url":"https://github.com/wollewald/ADS1115_WE","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wollewald%2FADS1115_WE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wollewald%2FADS1115_WE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wollewald%2FADS1115_WE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wollewald%2FADS1115_WE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wollewald","download_url":"https://codeload.github.com/wollewald/ADS1115_WE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332601,"owners_count":20921853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adc","ads1115","arduino","arduino-library","attiny"],"created_at":"2024-11-07T16:15:32.584Z","updated_at":"2025-04-05T12:04:30.757Z","avatar_url":"https://github.com/wollewald.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADS1115_WE\n\nAn Arduino library for the 16-bit, 4-channel ADS1115 and the 12-Bit, 4-channel ADS1015 ADC with gain and alert functions. \n\nI have have tried to optimize the library for convenience to use. If you try the examples I recommend to start with `Single_Shot.ino`.\n\nYou can find more details here:\n\nhttps://wolles-elektronikkiste.de/ads1115 (German)\n\nhttps://wolles-elektronikkiste.de/en/ads1115-a-d-converter-with-amplifier (English)\n\nAll features of the ADS1115 and ADS1015 are implemented, including alert functions. \n\nThe examples are written for the ADS1115 with one exception, which is Continuous_ADS1015.ino. This shows how to \"translate\" the sketches \nfor the ADS1015. Most enum values like ADS1115_RANGE_6144 and ADS1015_RANGE_6144 are even identical. The exceptions are the enum values for \nthe conversion rate.\n\nIn version 1.4.1 I have implemented the option to use TinyWireM instead of Wire. Therefore the library can be used, for example, on \nan ATtiny85.\n\nIf you like the library it would be cool if you can give it a star. If you find bugs, please inform me. \n\n\u003ch2\u003eSome remarks on the continuous mode\u003c/h2\u003e\n\nWhen you change channels in continuous mode using ``setCompareChannels()``, the current conversion will be completed first before the next \nmeasurement for the new channel will be started. This means you have to wait the time of two conversions before you can be sure that a measured \nvalue of the new channel is available. In contrast to the single shot mode, there is no way to determine when this process is completed. \nTherefore I added delays according to the rate that you have set. The disadvantage is that changing channels is a blocking process. \n\nIf you don't want blocking code, you can use the function ``setCompareChannels_nonblock()``. But please be aware that you have to ensure yourself\nthat the measured value has been obtained from the new channel. \n\nI recommend using the single shot mode instead, because in this mode you can immediately start a new measurement on the new channel and you can \ncheck whether the current conversion is completed with the ``isBusy()`` function. \n\n\u003ch2\u003eBeware of fake modules\u003c/h2\u003e\n\nThere are ADS1115 modules which use ADS1015 ICs and also there are ADS1015 modules which are based on ADS1115 ICs. In theory you should \nrecognize the IC by its label which is \"BRPI\" for the ADS1015 and \"BOGI\" for the ADS1115. But I have even found ADS1115 ICs labeled with \n\"BRPI\" which is definitely a fake. The difference between the ADS1115 and the ADS1015 is a) the 16-bit vs. 12-bit resolution an b) the speed. \n\nThis example is almost funny:\n\n![ADS1015_absurd](https://github.com/wollewald/ADS1115_WE/assets/41305162/756f4cd6-4f7d-497a-b742-76fae73d99aa)\n\nIf you want to find out what you really have on on your module, then try the example sketch \"Who_Am_I.ino\". Do not change anything apart from\nthe I2C address if necessary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwollewald%2Fads1115_we","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwollewald%2Fads1115_we","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwollewald%2Fads1115_we/lists"}