{"id":21413196,"url":"https://github.com/github0013/ms5611","last_synced_at":"2025-09-13T13:07:35.531Z","repository":{"id":141757104,"uuid":"129586950","full_name":"github0013/ms5611","owner":"github0013","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-17T03:27:53.000Z","size":472,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T05:15:49.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/github0013.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}},"created_at":"2018-04-15T07:24:33.000Z","updated_at":"2018-04-17T03:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"10207339-72d6-426e-8abc-23dbacbf6168","html_url":"https://github.com/github0013/ms5611","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fms5611","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fms5611/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fms5611/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github0013%2Fms5611/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github0013","download_url":"https://codeload.github.com/github0013/ms5611/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910762,"owners_count":20367544,"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":[],"created_at":"2024-11-22T18:17:29.402Z","updated_at":"2025-03-16T18:23:16.235Z","avatar_url":"https://github.com/github0013.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ms5611\n\n![](https://i.gyazo.com/3842bc3a03507d6fa9a17de2af94dee8.jpg)\n\nThis gem let you connect to your MS5611 module through I2C.\n\n## wiring\n\n* 3.3v pin:01\n* ground pin:06\n* SDA pin:03\n* SCLK pin:05\n\n![](https://i.gyazo.com/29d9291e0c24ca69df92f2d90e3acb75.png)\n\n![](https://i.gyazo.com/d5b9599db42126685df37e1160b4812e.png)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ms5611', github: \"https://github.com/github0013/ms5611.git\"\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\n```rb\nrequire \"ms5611\"\n\n# Ms5611::I2c::Module.detect_i2c_bus_path\n# will print something like /dev/i2c-1\n\n# Ms5611::I2c::Module.print_i2c_addresses\n# will print something like this to let you find your i2c device addres\n# 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n# 00:          -- -- -- -- -- -- -- -- -- -- -- -- --\n# 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --\n# 70: -- -- -- -- -- -- -- 77\n\n\n#            i2c_device_address\n# you need to find your i2c_device_address first.\n# Ms5611::I2c::Module.print_i2c_addresses\n# displays connected i2c device addresses\n\n#            i2c_bus_path\n# without i2c_bus_path keyword param, it will try to find a path by itself\nms5611 = Ms5611::I2c::Module.new(i2c_device_address: 0x77)\n\n# OR ... specify the path if you already know\n# Ms5611::I2c::Module.new(i2c_device_address: 0x77, i2c_bus_path: \"/dev/i2c-1\")\n\nms5611.temperature # 23.45\nms5611.pressure # 1017.89\n```\n\n## benchmark\n\n```bash\ncat /sys/firmware/devicetree/base/model\nRaspberry Pi Model B Plus Rev 1.2\n\ncat /etc/os-release\nPRETTY_NAME=\"Raspbian GNU/Linux 9 (stretch)\"\nNAME=\"Raspbian GNU/Linux\"\nVERSION_ID=\"9\"\nVERSION=\"9 (stretch)\"\nID=raspbian\nID_LIKE=debian\nHOME_URL=\"http://www.raspbian.org/\"\nSUPPORT_URL=\"http://www.raspbian.org/RaspbianForums\"\nBUG_REPORT_URL=\"http://www.raspbian.org/RaspbianBugs\"\n```\n\n```rb\nrequire 'benchmark'\nms5611 = Ms5611::I2c::Module.new(i2c_device_address: 0x77)\n\nBenchmark.bm 10 do |r|\n  r.report :pressure do\n    1000.times{ ms5611.pressure }\n  end\nend\n\n#                  user     system      total        real\n# pressure     3.280000   1.160000   4.440000 ( 43.774997)\n##########################\n# (43.774997 / 1000).round 4\n# 0.0438 / call\n##########################\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ms5611.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0013%2Fms5611","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub0013%2Fms5611","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub0013%2Fms5611/lists"}