{"id":14978128,"url":"https://github.com/mivallion/encoder","last_synced_at":"2025-10-28T08:31:43.976Z","repository":{"id":57426367,"uuid":"252201551","full_name":"mivallion/Encoder","owner":"mivallion","description":"Encoder library for Raspberry Pi for measuring quadrature encoded signals.","archived":false,"fork":false,"pushed_at":"2024-08-30T09:20:29.000Z","size":7,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-29T01:01:20.075Z","etag":null,"topics":["encoder","python","python3","raspberry-pi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/Encoder","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mivallion.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-04-01T14:39:37.000Z","updated_at":"2024-09-16T18:39:32.000Z","dependencies_parsed_at":"2024-09-18T23:04:38.920Z","dependency_job_id":null,"html_url":"https://github.com/mivallion/Encoder","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"972da9e80a18bc8786043096a73ed73ccda30dfa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivallion%2FEncoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivallion%2FEncoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivallion%2FEncoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mivallion%2FEncoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mivallion","download_url":"https://codeload.github.com/mivallion/Encoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859904,"owners_count":16556031,"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":["encoder","python","python3","raspberry-pi"],"created_at":"2024-09-24T13:56:54.258Z","updated_at":"2025-10-28T08:31:43.681Z","avatar_url":"https://github.com/mivallion.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Rotary Encoder Library\n\nEncoder library for Raspberry Pi for measuring quadrature encoded signals.\n### About\nEncoder class allows to work with rotary encoder which connected via two pin A and B (EN11 for example). Works only on interrupts because all RPi pins allow that. This library is a simple port of the Arduino Encoder library (https://github.com/PaulStoffregen/Encoder)\n\n### Installation\n```sh\n$ pip install Encoder\n```\n\n### Usage\n\nTo use it, you need to connect pins A and B and GND of the rotary encoder to two pins and GND of the Raspberry Pi, for example 24 and 10. Then just use it:\n```python\nimport Encoder\n\nenc = Encoder.Encoder(24, 10)\nenc.read()\n```\n\nYou can use two or more rotary encoders:\n```python\nimport Encoder\n\nenc_1 = Encoder.Encoder(24, 10)\nenc_2 = Encoder.Encoder(25, 9)\n```\n\n### Note\nIf the encoder works in the wrong direction, for example, it reduces the position when turning clockwise, you just need to swap pins A and B in the code.\n\nLicense\n----\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmivallion%2Fencoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmivallion%2Fencoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmivallion%2Fencoder/lists"}