{"id":28621679,"url":"https://github.com/kapraran/FreqCountESP","last_synced_at":"2025-06-12T05:06:03.378Z","repository":{"id":42530849,"uuid":"281998829","full_name":"kapraran/FreqCountESP","owner":"kapraran","description":"A frequency counter library for esp32","archived":false,"fork":false,"pushed_at":"2024-08-20T11:54:35.000Z","size":33,"stargazers_count":41,"open_issues_count":10,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T08:01:22.690Z","etag":null,"topics":["arduino","esp32","esp32-library","frequency-counter","interrupt-driven-programs"],"latest_commit_sha":null,"homepage":"https://kapraran.github.io/FreqCountESP/","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/kapraran.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}},"created_at":"2020-07-23T16:11:36.000Z","updated_at":"2025-05-20T15:26:35.000Z","dependencies_parsed_at":"2023-01-18T22:45:24.712Z","dependency_job_id":null,"html_url":"https://github.com/kapraran/FreqCountESP","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kapraran/FreqCountESP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapraran%2FFreqCountESP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapraran%2FFreqCountESP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapraran%2FFreqCountESP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapraran%2FFreqCountESP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kapraran","download_url":"https://codeload.github.com/kapraran/FreqCountESP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kapraran%2FFreqCountESP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259402052,"owners_count":22851868,"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":["arduino","esp32","esp32-library","frequency-counter","interrupt-driven-programs"],"created_at":"2025-06-12T05:02:00.245Z","updated_at":"2025-06-12T05:06:03.367Z","avatar_url":"https://github.com/kapraran.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"./assets/FreqCountESP-logo.png\" alt=\"FreqCountESP\" width=\"128\"\u003e\n  \u003cbr\u003e\n  FreqCountESP\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eA frequency counter library for esp32\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://img.shields.io/github/v/release/kapraran/FreqCountESP\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/kapraran/FreqCountESP\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://img.shields.io/github/repo-size/kapraran/FreqCountESP\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/repo-size/kapraran/FreqCountESP\"\n          alt=\"Gitter\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Table of Contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Credits](#credits)\n- [License](#license)\n\n## About \u003ca name=\"about\"\u003e\u003c/a\u003e\n\nA frequency counter library for esp32. It counts the numbers of pulses on a specified pin during a fixed time frame using native interrupts and timers. It only supports one instance per sketch for now.\n\n## Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n\nTo use this library you have to import it into Arduino IDE as follows:\n1. Download or clone this repository as a zip file.\n2. Go to \"Sketch\" \u003e \"Include Library\" \u003e \"Add .ZIP library...\" and select the zip file to import it.\n\n## Usage \u003ca name=\"usage\"\u003e\u003c/a\u003e\n\n#### Include the library in the sketch\n\n```C++\n#include \"FreqCountESP.h\"\n```\n\n#### Initialize the instance\n\nSet which pin to use and the length of the time frame in milliseconds.\n\n```C++\nvoid setup()\n{\n  int inputPin = 14;\n  int timerMs = 1000;\n  FreqCountESP.begin(inputPin, timerMs);\n}\n```\n\n#### Read the frequency\n\nWait for a new value to become available and read it by calling the `read()` method.\n\n```C++\nvoid loop()\n{\n  if (FreqCountESP.available())\n  {\n    uint32_t frequency = FreqCountESP.read();\n    // Do something with the frequency...\n  }\n}\n```\n\n## Credits \u003ca name=\"credits\"\u003e\u003c/a\u003e\n\n* Big thanks to [@dpwe](https://github.com/dpwe) for his contributions https://github.com/kapraran/FreqCountESP/pull/5\n\n* [FreqCount library for Arduino \u0026 Teensy boards](https://www.pjrc.com/teensy/td_libs_FreqCount.html)\n* [Frequency Icon](https://www.flaticon.com/free-icon/pulse_597841?term=frequency\u0026page=1\u0026position=2)\n\n## License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\n[MIT License](https://github.com/kapraran/FreqCountESP/blob/master/LICENSE)\n\nCopyright (c) 2020 [Nikos Kapraras](https://kapraran.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapraran%2FFreqCountESP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkapraran%2FFreqCountESP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapraran%2FFreqCountESP/lists"}