{"id":22631690,"url":"https://github.com/ansonhex/seeed-ardupy-scd30","last_synced_at":"2025-08-23T01:08:42.605Z","repository":{"id":126521103,"uuid":"281079182","full_name":"ansonhex/seeed-ardupy-scd30","owner":"ansonhex","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-21T09:07:32.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T04:22:59.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ansonhex.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-07-20T09:55:42.000Z","updated_at":"2020-07-21T09:07:34.000Z","dependencies_parsed_at":"2023-06-17T02:45:37.193Z","dependency_job_id":null,"html_url":"https://github.com/ansonhex/seeed-ardupy-scd30","commit_stats":null,"previous_names":["ansonhex/seeed-ardupy-scd30"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ansonhex/seeed-ardupy-scd30","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansonhex%2Fseeed-ardupy-scd30","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansonhex%2Fseeed-ardupy-scd30/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansonhex%2Fseeed-ardupy-scd30/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansonhex%2Fseeed-ardupy-scd30/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansonhex","download_url":"https://codeload.github.com/ansonhex/seeed-ardupy-scd30/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansonhex%2Fseeed-ardupy-scd30/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271727620,"owners_count":24810561,"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-22T02:00:08.480Z","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":[],"created_at":"2024-12-09T02:10:55.035Z","updated_at":"2025-08-23T01:08:42.566Z","avatar_url":"https://github.com/ansonhex.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seeed-ArduPy-scd30 [![Build Status](https://travis-ci.com/Seeed-Studio/seeed-ardupy-scd30.svg?branch=master)](https://travis-ci.com/Seeed-Studio/seeed-ardupy-scd30)\n\n## Introduction\n\nAn ArduPy library for Grove - CO2 \u0026 Temperature \u0026 Humidity Sensor for Arduino (SCD30) - 3-in-1. The Grove - SCD30 is a 3-in-1 Arduino sensor that can measure CO2, temperature, and humidity. Based on Sensirion SCD30, it is a Non-Dispersive Infrared(NDIR) carbon dioxide sensor with high precision and wide measurement accuracy which can reach ±(30 ppm + 3%) between 400ppm to 10000ppm.\n\n\n\n## How to binding with ArduPy\n\n- Install [AIP](https://github.com/Seeed-Studio/ardupy-aip)\n```shell\npip3 install aip\n```\n- Build firmware with Seeed ArduPy scd30\n```shell\naip install https://github.com/Seeed-Studio/seeed-ardupy-scd30\naip build\n```\n- Flash new firmware to you ArduPy board\n```shell\naip flash [Ardupy Bin PATH]\n```\nFor more examples of using AIP, please refer to [AIP](https://github.com/Seeed-Studio/ardupy-aip).\n\n## Usage\n\n```python\nfrom arduino import grove_scd30\nimport time\n\nscd30 = grove_scd30()\nwhile True:\n    if(scd30.isAvailable()):\n        data = scd30.getCarbonDioxideConcentration()\n        print(\"\\n-------SCD30 Data Set-------\")\n        print(\"Carbon Dioxide Concentration:\", data[0])\n        print(\"Temperature:\", data[1])\n        print(\"Humidity:\", data[2])\n    time.sleep(1)\n```\n\n## API Reference\n\n- **isAvailable(void) : bool** - available\n\n```py\nif scd30.isAvailable():\n    print(\"SCD30 is connected\")\n```\n\n- **setAutoSelfCalibration(enable\u003cbool\u003e) : void** - Turn ON/OFF self calibration\n\n```py\nscd30.setAutoSelfCalibration(True)  # Enable auto self calibration\nscd30.setAutoSelfCalibration(False) # Disable auto self calibration\n```\n\n- **setMeasurementInterval(interval\u003cuint16_t\u003e) : void** - Set the measurement interval\n\n```py\nscd30.setMeasurementInterval(2) # Sets measurement interval to 2s\n```\n\n- **startPeriodicMeasurment(void) : void** - Start periodic measurements\n\n```py\nscd30.startPeriodicMeasurment()\n```\n\n- **stopMeasurement(void) : void** - Stop measurements\n\n```py\nscd30.stopMeasurement()\n```\n\n- **setTemperatureOffset(offset\u003cuint16_t\u003e) : void** - Sets temperature offset\n\n```py\nscd30.setTemperatureOffset(0) # Set temperature offset\n```\n\n- **getCarbonDioxideConcentration(void)** : tuple - returns all 3 datas of CO2, temperature and humidity.\n\n```py\ndata = scd30.getCarbonDioxideConcentration()\nprint(data[0]) # CO2\nprint(data[1]) # Temperature\nprint(data[2]) # Humidity\n```\n\n\n## License\n\nThis software is written by seeed studio\u003cbr\u003e\nand is licensed under [The MIT License](http://opensource.org/licenses/mit-license.php). Check License.txt for more information.\u003cbr\u003e\n\nContributing to this software is warmly welcomed. You can do this basically by\u003cbr\u003e\n[forking](https://help.github.com/articles/fork-a-repo), committing modifications and then [pulling requests](https://help.github.com/articles/using-pull-requests) (follow the links above\u003cbr\u003e\nfor operating guide). Adding change log and your contact into file header is encouraged.\u003cbr\u003e\nThanks for your contribution.\n\nSeeed Studio is an open hardware facilitation company based in Shenzhen, China. \u003cbr\u003e\nBenefiting from local manufacture power and convenient global logistic system, \u003cbr\u003e\nwe integrate resources to serve new era of innovation. Seeed also works with \u003cbr\u003e\nglobal distributors and partners to push open hardware movement.\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansonhex%2Fseeed-ardupy-scd30","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansonhex%2Fseeed-ardupy-scd30","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansonhex%2Fseeed-ardupy-scd30/lists"}