{"id":23714394,"url":"https://github.com/calinradoni/esp32dledcontroller","last_synced_at":"2025-09-03T18:32:10.288Z","repository":{"id":44362163,"uuid":"229125546","full_name":"CalinRadoni/ESP32DLEDController","owner":"CalinRadoni","description":"ESP32 controller for WS2812 LEDs","archived":false,"fork":false,"pushed_at":"2021-03-17T13:41:11.000Z","size":53,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-18T16:42:12.542Z","etag":null,"topics":["esp-idf","esp32","led-controller","led-strips","ws2812","ws2812b"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CalinRadoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-GPLv3.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-19T19:34:16.000Z","updated_at":"2023-07-11T14:58:53.000Z","dependencies_parsed_at":"2022-09-01T18:31:19.332Z","dependency_job_id":null,"html_url":"https://github.com/CalinRadoni/ESP32DLEDController","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalinRadoni%2FESP32DLEDController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalinRadoni%2FESP32DLEDController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalinRadoni%2FESP32DLEDController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CalinRadoni%2FESP32DLEDController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CalinRadoni","download_url":"https://codeload.github.com/CalinRadoni/ESP32DLEDController/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231908227,"owners_count":18444268,"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":["esp-idf","esp32","led-controller","led-strips","ws2812","ws2812b"],"created_at":"2024-12-30T20:19:25.089Z","updated_at":"2024-12-30T20:19:25.516Z","avatar_url":"https://github.com/CalinRadoni.png","language":"C++","readme":"# ESP32 DLED Controller\n\n![Build with ESP-IDF v4.1](https://github.com/CalinRadoni/ESP32DLEDController/workflows/Build%20with%20ESP-IDF%20v4.1/badge.svg)\n\nUsing the RMT peripheral of ESP32, controls *WS2812 type* digital LEDs: WS2812, WS2812B, WS2812C, WS2812D, WS2812S, WS2813 and WS2815. SK6812 should work with *WS281x* mode.\n\nThis implementation uses the RMT driver from `ESP-IDF` and uses one `RMT` channel \nfor a LED strip **leaving the other channels free, under the control of the RMT driver**.\nHere are some key points of this implementation:\n\n- the control of the LEDs is separated from the control of the `RMT` peripheral;\n- the other `RMT` channels can be used as needed;\n- the `RMT` peripheral is used through `ESP-IDF`'s own driver.\n\nRight now the negative point is that this code uses a lot of RAM, *because of the\nway the driver and peripheral works*.\nThere is a way to add a hook in the driver's transmission code but considering the\nmultithreading architecture of FreeRTOS this may add jitter creating visual artifacts,\ndepending on application.\n\n## Breaking changes\n\n### DLEDController v2\n\n- uses DStripData as input stream.\n- DStrip class was obsoleted and removed.\n\nSee the `example` for simple usage.\n\n## About timings\n\nTimings are from datasheets.\nAccording to [Worldsemi's datasheets](http://www.world-semi.com) there are a few timings sets:\n\n- one for WS2812\n- one for WS2812B, WS2812C, WS2812S, WS2813 and WS2815\n- one for WS2812D\n\nIn [Tim's Blog (cpldcpu)](https://cpldcpu.wordpress.com) are some interesting investigations about timings of various digital LEDs.\n\n## Dependencies\n\n- [Espressif IoT Development Framework](https://github.com/espressif/esp-idf)\n- [ESP32RMT](https://github.com/CalinRadoni/ESP32RMT)\n\n## Example code\n\nIn the `example` directory is an application that should control 64 Digital LEDs of WS2812 type, connected to the GPIO pin 14 through a non-inverting level converter.\n\n## Hardware details\n\nThe code ( with [ESP32RMT](https://github.com/CalinRadoni/ESP32RMT) ) was tested on the following boards:\n\n- ESP32-DevKitC board with a level convertor made from two 74HCT1G04 inverters\n- Dev33-DLED - uses SN74LV1T34 logic level shifter connected to an ESP32-WROOM-32 module\n- Dev34-DLEDGrid - uses SN74LV1T34 logic level shifter connected to an ESP32-WROOM-32 module\n\nand:\n\n- a LED strip with 300 WS2812B digital LEDs + Mean Well EPS-65S-5 power source\n- a 8x8 LED board with WS2812 digital LEDs + Sony VTC6 18650 Battery\n\n## Development Environment\n\nCurrently uses the latest stable version of [Espressif IoT Development Framework](https://github.com/espressif/esp-idf), v4.1 as of December 2020.\n\nEditing was done in [Visual Studio Code](https://code.visualstudio.com).\n\nVersion control with [Git](https://git-scm.com).\n\n## License\n\nThis software and its documentation are released under the [GNU GPLv3](http://www.gnu.org/licenses/gpl-3.0.html) License. See the `LICENSE-GPLv3.txt` file.\n\n## Note\n\nThis is a faster and more efficient version of the one published by me previously in the [esp32_digitalLEDs](https://github.com/CalinRadoni/esp32_digitalLEDs) repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalinradoni%2Fesp32dledcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalinradoni%2Fesp32dledcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalinradoni%2Fesp32dledcontroller/lists"}