{"id":24324801,"url":"https://github.com/biotinker/viam-nau7802","last_synced_at":"2025-10-18T08:14:16.565Z","repository":{"id":225547265,"uuid":"764390310","full_name":"biotinker/viam-nau7802","owner":"biotinker","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-17T17:21:03.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T04:44:03.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biotinker.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":"2024-02-28T01:36:03.000Z","updated_at":"2024-10-17T17:21:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a342967-b881-4926-91f2-547660838c33","html_url":"https://github.com/biotinker/viam-nau7802","commit_stats":null,"previous_names":["biotinker/viam-nau7802"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/biotinker/viam-nau7802","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biotinker%2Fviam-nau7802","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biotinker%2Fviam-nau7802/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biotinker%2Fviam-nau7802/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biotinker%2Fviam-nau7802/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biotinker","download_url":"https://codeload.github.com/biotinker/viam-nau7802/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biotinker%2Fviam-nau7802/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"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-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2025-01-17T20:00:47.389Z","updated_at":"2025-10-18T08:14:16.486Z","avatar_url":"https://github.com/biotinker.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# viam-nau7802\n\nA Viam module to use a nau7802 load cell amplifier\n\n## Setup\n\nAdd the module to your robot from the Viam registry. The component may then be added to your configuration as follows (using example values)\n\n```\n  ...\n  \"components\": [\n    ...,\n    {\n      \"name\": \"componentNameHere\",\n      \"model\": \"biotinker:sensor:nau7802\",\n      \"type\": \"sensor\",\n      \"namespace\": \"biotinker\",\n      \"attributes\": {\n        \"zero\": 161000,\n        \"kg\": 50000,\n        \"gain\": 128,\n        \"samples\": 16,\n        \"i2c_bus\": \"0\"\n      }\n    },\n    ...,\n  ],\n  ...\n```\n\nThe attributes `gain` and `samples` are optional.\n\nIf `gain` is not set, it will default to 64. Valid `gain` values are 1, 2, 4, 8, 16, 32, 64, and 128. Gain should be set higher for lower capacity load cells. Any change to `gain` requires re-calibration.\n\nIf `samples` is not set, it will default to 8. This value is the number of readings which will be taken in quick succession and averaged together to give the reading. Valid `samples` values is any positive integer.\n\n## Calibration\n\nThe output of the sensor has two values, a raw reading and a kg reading. The kg reading will be meaningless without proper calibration.\n\nFirst, assemble your apparatus. Take a reading with nothing on the scale. This raw value should be entered into the `zero` field in your configuration.\n\nThen, place an item of known weight on the scale and record the raw value. The value to fill in for `kg` is the amount that the raw value is expected to change for each kg of weight. For example, if your zero value is 163540, and you place a 200g item on the scale and that raw value is 167315, then your kg value should be `(167315-163540) * (1000g/200g)` which equals `18875`\n\nThe `kg` value may be negative, for example if your load cell is installed upside down.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiotinker%2Fviam-nau7802","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiotinker%2Fviam-nau7802","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiotinker%2Fviam-nau7802/lists"}