{"id":13802505,"url":"https://github.com/SergeyPiskunov/micropython-hx711","last_synced_at":"2025-05-13T13:31:28.144Z","repository":{"id":57441494,"uuid":"126703096","full_name":"SergeyPiskunov/micropython-hx711","owner":"SergeyPiskunov","description":"Micropython driver for HX711 24-Bit Analog-to-Digital Converter","archived":false,"fork":false,"pushed_at":"2024-01-16T23:29:55.000Z","size":16,"stargazers_count":79,"open_issues_count":3,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-13T06:59:49.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SergeyPiskunov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-25T14:00:09.000Z","updated_at":"2024-11-11T20:10:07.000Z","dependencies_parsed_at":"2022-09-06T02:20:47.310Z","dependency_job_id":null,"html_url":"https://github.com/SergeyPiskunov/micropython-hx711","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/SergeyPiskunov%2Fmicropython-hx711","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergeyPiskunov%2Fmicropython-hx711/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergeyPiskunov%2Fmicropython-hx711/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergeyPiskunov%2Fmicropython-hx711/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SergeyPiskunov","download_url":"https://codeload.github.com/SergeyPiskunov/micropython-hx711/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225218078,"owners_count":17439713,"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-08-04T00:01:46.018Z","updated_at":"2024-11-18T17:31:29.534Z","avatar_url":"https://github.com/SergeyPiskunov.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"readme":"# micropython-hx711\nMicropython driver for the HX711 24-Bit Analog-to-Digital Converter\n\nLatest version supports:\n- retrieving data from the channel 'A' with gain 128 and 64, \nthe channel 'B' with gain 32 in a raw form and a form \nconverted from the two's complement.\n- sending \"power off\" sequence to switch device to the power-saving mode.\n- sending \"power on\" sequence with the gain saved before the \"power off\".\n- checking if the device is ready for the data retrieval.\n\n#### Example for the ESP8266:\nD_OUT pin is connected to the GPIO 5\u003cbr/\u003e\nPD_SCK pin is connected to the GPIO 4\u003cbr/\u003e\nUsing internal HX711 oscillator, so ESP8266's frequency is set to 160000000\n \n```\n\u003e\u003e\u003e from machine import freq\n\u003e\u003e\u003e freq(160000000)\n\u003e\u003e\u003e \n\u003e\u003e\u003e from hx711 import HX711\n\u003e\u003e\u003e \n\u003e\u003e\u003e driver = HX711(d_out=5, pd_sck=4)\n\u003e\u003e\u003e driver\nHX711 on channel A, gain=128\n\u003e\u003e\u003e driver.read()\n74342\n\u003e\u003e\u003e \n\u003e\u003e\u003e driver.channel=HX711.CHANNEL_A_64\n\u003e\u003e\u003e driver.channel\n('A', 64)\n\u003e\u003e\u003e driver.read()\n36328\n\u003e\u003e\u003e \n\u003e\u003e\u003e driver.power_off()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSergeyPiskunov%2Fmicropython-hx711","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSergeyPiskunov%2Fmicropython-hx711","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSergeyPiskunov%2Fmicropython-hx711/lists"}