{"id":19615234,"url":"https://github.com/leonrinkel/ot-ledstrip","last_synced_at":"2026-06-12T08:32:02.014Z","repository":{"id":97000989,"uuid":"237076790","full_name":"leonrinkel/ot-ledstrip","owner":"leonrinkel","description":"This is a custom application for Nordic Semiconductors OpenThread capable ICs, like the nRF52840, with the purpose of wirelessly controlling RGB LED strips.","archived":false,"fork":false,"pushed_at":"2020-01-31T21:33:55.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T17:48:32.284Z","etag":null,"topics":["coap","neopixel","nordicsemi","nrf52840","openthread","rgb-ledstrip","sk6812","smarthome"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonrinkel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-29T20:34:41.000Z","updated_at":"2021-04-12T12:45:18.000Z","dependencies_parsed_at":"2023-03-13T16:20:08.824Z","dependency_job_id":null,"html_url":"https://github.com/leonrinkel/ot-ledstrip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonrinkel/ot-ledstrip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonrinkel%2Fot-ledstrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonrinkel%2Fot-ledstrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonrinkel%2Fot-ledstrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonrinkel%2Fot-ledstrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonrinkel","download_url":"https://codeload.github.com/leonrinkel/ot-ledstrip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonrinkel%2Fot-ledstrip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["coap","neopixel","nordicsemi","nrf52840","openthread","rgb-ledstrip","sk6812","smarthome"],"created_at":"2024-11-11T10:55:54.279Z","updated_at":"2026-06-12T08:32:02.009Z","avatar_url":"https://github.com/leonrinkel.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ot-ledstrip\n\n## What Is This?\n\nThis is a custom application for Nordic Semiconductors OpenThread capable ICs, like the nRF52840, with the purpose of wirelessly controlling RGB LED strips.\n\nIt works by joining or forming a specified OpenThread network and then exposing a COAP server to the network. At the moment only one COAP resource (`PUT /rgb`) is implemented. Resources like `/brightness`, `/rgb` or `/hue` might follow soon. Other Thread nodes on the same network can then write to these resources to control the LED strip.\n\nIt includes a simple PWM driver for SK6812 or compatible LEDs (also known as Adafruit NeoPixels).\n\nI’m using this in a smart home setup similar to Phillips Hue or IKEA Tradfri. A Raspberry Pi acts as an OpenThread to IP bridge and also exposes an Apple HomeKit IP accessory for each strip to my home network. I can then easily control the strips using the Home app or Siri on all my Apple devices. (The bridge is not part of this repo.)\n\n## Getting Started\n\nBuilding this project requires Arms GCC compiler for Cortex-M based microcontrollers, as well as Nordics SDK for Thread. Executing `./script/bootstrap` from the projects root directory should automatically download and extract these dependencies.\n\nThis repo contains the necessary configuration to be opened in Visual Studio Code. There are several tasks like `Build` or `Flash` and C/C++ configurations for the different supported targets. (I also have a very convenient GDB debugging configuration in the works which will follow soon.)\n\nYou can change the number of LEDs and the PWM output pin in `src/ledstrip.h`.\n\nThe Thread network credentials can be set in the `sdk_config.h` files or using a CLI over USB like in the following.\n\n```sh\n$ screen /dev/*somedevice* 115200\n\u003e thread stop\n\u003e dataset init new\n\u003e dataset panid *somepanid*\n\u003e dataset channel *somechannel*\n\u003e dataset masterkey *somemasterkey*\n\u003e dataset commit active\n\u003e thread start\n```\n\nUsing `coap-client` on Linux one can then write RGB hex values to the `/rgb` resource to change the color of the led strip like in the following.\n\n```sh\n$ coap-client -m put coap://[*someip*%wpan0]:5683/rgb -e ff0000 # red\n$ coap-client -m put coap://[*someip*%wpan0]:5683/rgb -e 00ff00 # green\n$ coap-client -m put coap://[*someip*%wpan0]:5683/rgb -e 0000ff # blue\n```\n\nThe whole thing is work in progress so don't expect it to work right away. It's more like an inspiration how you could build your own smart home. Feel free to contribute or open issues.\n\n# Hardware\n\nI'm using nRF52840 dongles (also known as PCA10059). They require an additional logic level shifter to be used with the SK6812 leds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonrinkel%2Fot-ledstrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonrinkel%2Fot-ledstrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonrinkel%2Fot-ledstrip/lists"}