{"id":15011956,"url":"https://github.com/roboticsbrno/servoesp32","last_synced_at":"2025-05-09T00:07:32.743Z","repository":{"id":45903048,"uuid":"96447091","full_name":"RoboticsBrno/ServoESP32","owner":"RoboticsBrno","description":"⚙️ Generate RC servo signal on a selected pins with ESP32 device and Arduino framework.","archived":false,"fork":false,"pushed_at":"2023-10-20T23:44:56.000Z","size":32,"stargazers_count":157,"open_issues_count":17,"forks_count":33,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-09T00:07:25.364Z","etag":null,"topics":["arduino","arduino-library","esp32","esp32-arduino","library","platformio","servo"],"latest_commit_sha":null,"homepage":"","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/RoboticsBrno.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":"2017-07-06T15:49:59.000Z","updated_at":"2025-05-05T12:49:02.000Z","dependencies_parsed_at":"2024-09-15T22:03:44.961Z","dependency_job_id":"b6757694-16af-417b-ba3e-b7123a354e5a","html_url":"https://github.com/RoboticsBrno/ServoESP32","commit_stats":{"total_commits":29,"total_committers":8,"mean_commits":3.625,"dds":0.4482758620689655,"last_synced_commit":"982184cb0ecf9990c5e91f635777bdef3a8baa75"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FServoESP32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FServoESP32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FServoESP32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FServoESP32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboticsBrno","download_url":"https://codeload.github.com/RoboticsBrno/ServoESP32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166520,"owners_count":21864482,"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","arduino-library","esp32","esp32-arduino","library","platformio","servo"],"created_at":"2024-09-24T19:41:56.338Z","updated_at":"2025-05-09T00:07:32.709Z","avatar_url":"https://github.com/RoboticsBrno.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServoESP32 [![Build Status](https://travis-ci.com/RoboticsBrno/ServoESP32.svg?branch=master)](https://travis-ci.com/RoboticsBrno/ServoESP32)\n\nGenerate RC servo signal on a selected pins with ESP32 device and Arduino framework.\n\nBase on [servo library for stm32f4 (d2a4a47)](https://github.com/arduino-libraries/Servo/blob/master/src/stm32f4/ServoTimers.h).\n\n## Interface\n\nThe interface is similar to Arduino/Servo: https://www.arduino.cc/en/Reference/Servo\n\nBut the function `attach()` is different:\n\n```c\nbool attach(\n    int pin,\n    int channel = CHANNEL_NOT_ATTACHED,\n    int minAngle = DEFAULT_MIN_ANGLE,\n    int maxAngle = DEFAULT_MAX_ANGLE,\n    int minPulseWidthUs = DEFAULT_MIN_PULSE_WIDTH_US,\n    int maxPulseWidthUs = DEFAULT_MAX_PULSE_WIDTH_US,\n    int frequency = DEFAULT_FREQUENCY\n);\n```\n\nMore information in [source code documentation](src/Servo.h).\n\nExample: [04-SimpleServoAngles](examples/04-SimpleServoAngles/04-SimpleServoAngles.ino)\n\nThere are also a ServoFloat and ServoDouble variant available. Use one of these when working in radians. \n\nExample: : [05-SimpleServoRadians](examples/05-SimpleServoRadians/05-SimpleServoRadians.ino)\n\n### IMPORTANT INFO\nAccording testings, the frequency for ESP32 S2/S3/C3 has to be set at least to 200 Hz. Here is an example, how to set just frequency:\n\n```cpp\nServo servo1;\nconst int servoPin = 4;\nconst int frequency = 200; // Hz\n\nservo1.attach(\n    servoPin, \n    Servo::CHANNEL_NOT_ATTACHED, \n    Servo::DEFAULT_MIN_ANGLE, \n    Servo::DEFAULT_MAX_ANGLE, \n    Servo::DEFAULT_MIN_PULSE_WIDTH_US, \n    Servo::DEFAULT_MAX_PULSE_WIDTH_US, \n    frequency\n);\n```\n\nFor more information look at the [PR25](https://github.com/RoboticsBrno/ServoESP32/pull/25) \n\n## PlatformIO\n\nThis library is also available at the [PlatformIO](https://platformio.org) as [ServoESP32](https://platformio.org/lib/show/1739/ServoESP32).\n\n## Arduino IDE\n\nThis library is available in Arduino IDE Library Manager as `ServoESP32`.\n\n## Known issues\n\n### Problem with build in Arduino IDE 1.8.10\n\nThere was an [issue](https://github.com/arduino/arduino-cli/pull/565) with building this library in Arduino IDE 1.8.10. But this issue should be fixed in Arduino IDE 1.8.11.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Fservoesp32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboticsbrno%2Fservoesp32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Fservoesp32/lists"}