{"id":26745874,"url":"https://github.com/mmmries/ads1115","last_synced_at":"2025-10-06T02:59:14.255Z","repository":{"id":34889773,"uuid":"187394966","full_name":"mmmries/ads1115","owner":"mmmries","description":"Elixir Circuit Library for Interacting with an ADS1115 or ADS1015 Analog-to-Digital Chip","archived":false,"fork":false,"pushed_at":"2025-04-09T06:31:14.000Z","size":19,"stargazers_count":11,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-04T18:46:24.085Z","etag":null,"topics":["a2d","analog-to-digital-converter","elixir","elixir-circuits","embedded","nerves"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmmries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-05-18T18:58:36.000Z","updated_at":"2025-06-18T18:09:10.000Z","dependencies_parsed_at":"2025-04-14T20:05:11.068Z","dependency_job_id":null,"html_url":"https://github.com/mmmries/ads1115","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mmmries/ads1115","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fads1115","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fads1115/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fads1115/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fads1115/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmmries","download_url":"https://codeload.github.com/mmmries/ads1115/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fads1115/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278551509,"owners_count":26005389,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["a2d","analog-to-digital-converter","elixir","elixir-circuits","embedded","nerves"],"created_at":"2025-03-28T08:19:39.244Z","updated_at":"2025-10-06T02:59:14.236Z","avatar_url":"https://github.com/mmmries.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADS1115\n\nAn Elixir library for interacting with ADS1115 and ADS1015 analog-to-digital chips.\nPlease see [the datasheet](http://www.ti.com/lit/gpn/ads1115) for details.\n\n## Usage\n\nI'm using these chips to read [moisture sensors](https://www.amazon.com/dp/B07H3P1NRM/ref=cm_sw_r_tw_dp_U_x_tvd4CbBE5DJS2).\nI wired the analog signal to `AIN0` and I want to compare that to `GND`.\nFor this use-case I can do the following:\n\n```elixir\n{:ok, ref} = I2C.open(\"i2c-1\")\naddr = 72 # the default i2c address for my sensor\n{:ok, reading} = ADS1115.single_shot_read(ref, addr, {:ain0, :gnd})\n# reading will be between -32,768 and 32,767\n```\n\nYou can similarly use this library to interact with ADS1015 chips like this:\n\n```elixir\n{:ok, ref} = I2C.open(\"i2c-1\")\naddr = 72 # the default i2c address for my sensor\n{:ok, reading} = ADS1015.single_shot_read(ref, addr, {:ain0, :gnd})\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `ads1115` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ads1115, \"~\u003e 0.1\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/ads1115](https://hexdocs.pm/ads1115).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmries%2Fads1115","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmmries%2Fads1115","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmries%2Fads1115/lists"}