{"id":13802549,"url":"https://github.com/ekspla/D6F-PH","last_synced_at":"2025-05-13T13:31:45.085Z","repository":{"id":160859078,"uuid":"629732295","full_name":"ekspla/D6F-PH","owner":"ekspla","description":"A MicroPython module for differential pressure sensor, D6F-PH (OMRON).","archived":false,"fork":false,"pushed_at":"2025-02-04T07:18:49.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-04T01:41:58.202Z","etag":null,"topics":["air-speed","airspeed","anemometer","d6f-ph","differential-pressure-sensor","flow-sensor","i2c","micropython","omron","pressure-sensor","sensor","speedometer"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ekspla.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":"2023-04-18T23:16:25.000Z","updated_at":"2025-02-04T20:04:26.000Z","dependencies_parsed_at":"2023-10-04T09:28:43.046Z","dependency_job_id":null,"html_url":"https://github.com/ekspla/D6F-PH","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/ekspla%2FD6F-PH","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekspla%2FD6F-PH/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekspla%2FD6F-PH/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekspla%2FD6F-PH/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekspla","download_url":"https://codeload.github.com/ekspla/D6F-PH/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253950122,"owners_count":21989307,"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":["air-speed","airspeed","anemometer","d6f-ph","differential-pressure-sensor","flow-sensor","i2c","micropython","omron","pressure-sensor","sensor","speedometer"],"created_at":"2024-08-04T00:01:46.915Z","updated_at":"2025-05-13T13:31:45.047Z","avatar_url":"https://github.com/ekspla.png","language":"Python","readme":"# A MicroPython module for differential pressure sensor, D6F-PH (OMRON).\n I2C driver for D6F-PH pressure sensor (OMRON)\n\nThis code was tested with MicroPython 1.19.1 - 1.20.0 on STM32F4.\nhttps://github.com/ekspla/D6F-PH\n\n## How to use\n**pressure_range** argument ('0505', '0025', '5050') is necessary for the pressure transfer function (defaults to D6F-PH5050), e.g. ```pressure_range='0505'```\n\n w/o crc check\n```Python\n\u003e\u003e\u003e from machine import I2C\n\u003e\u003e\u003e i2c = I2C(1, freq=400000)\n\u003e\u003e\u003e i2c.scan()\n[108]\n\u003e\u003e\u003e hex(i2c.scan()[0])\n'0x6c'\n\u003e\u003e\u003e \n\u003e\u003e\u003e from d6f_ph import D6F_PH\n\u003e\u003e\u003e sensor = D6F_PH(i2c)\n\u003e\u003e\u003e sensor.read_raw()\n(31033, 11086)\n\u003e\u003e\u003e sensor.read()\n(0.04998779, 23.53571) # Pressure/Pa, Temperature/deg.C\n\u003e\u003e\u003e\n```\n\n w/ crc check\n```Python\n\u003e\u003e\u003e from machine import I2C\n\u003e\u003e\u003e i2c = I2C(1, freq=400000)\n\u003e\u003e\u003e \n\u003e\u003e\u003e from d6f_ph import D6F_PH\n\u003e\u003e\u003e sensor = D6F_PH(i2c, en_crc=True)\n\u003e\u003e\u003e sensor.read()\n(0.1499939, 23.72292)\n\u003e\u003e\u003e\n```\n\n## Note\nBecause this sensor utilizes a heater and a pair of thermopile, **it should be placed horizontally**.  Otherwise, you may observe unacceptable offset in measured pressures. \n An offset (as a raw value; n) can be subtracted by using ```offset=n``` argument.  \n\n## Application Example\nThis differential pressure sensor can be used as an air speed sensor by using a Pitot tube.  An [example](https://github.com/ekspla/Pitot_GPS_Sensor_Logger/) is shown. \n\n## License\nMIT license.\n\n## Reference\n- MEMS Differential pressure Sensor User's Manual; [en-D6F-PH_users_manual.pdf, available from OMRON](https://omronfs.omron.com/en_US/ecb/products/pdf/en-D6F-PH_users_manual.pdf)\n- GitHub OMRON(https://github.com/omron-devhub)\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekspla%2FD6F-PH","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekspla%2FD6F-PH","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekspla%2FD6F-PH/lists"}