{"id":19276132,"url":"https://github.com/trojaner/signal-plus","last_synced_at":"2025-04-21T23:30:57.548Z","repository":{"id":46136350,"uuid":"512186902","full_name":"Trojaner/signal-plus","owner":"Trojaner","description":"More device support for SignalRGB","archived":false,"fork":false,"pushed_at":"2022-07-25T13:58:29.000Z","size":12689,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T16:55:45.946Z","etag":null,"topics":["arduino","argb","csharp","fastled","music-visualizer"],"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/Trojaner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-09T13:00:49.000Z","updated_at":"2024-10-27T08:54:12.000Z","dependencies_parsed_at":"2022-08-27T10:42:14.706Z","dependency_job_id":null,"html_url":"https://github.com/Trojaner/signal-plus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trojaner%2Fsignal-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trojaner%2Fsignal-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trojaner%2Fsignal-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trojaner%2Fsignal-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trojaner","download_url":"https://codeload.github.com/Trojaner/signal-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250150598,"owners_count":21383195,"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","argb","csharp","fastled","music-visualizer"],"created_at":"2024-11-09T20:52:57.867Z","updated_at":"2025-04-21T23:30:54.143Z","avatar_url":"https://github.com/Trojaner.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SignalPlus\nMore device support for SignalRGB\n\n![](https://github.com/Trojaner/signal-plus/blob/master/Example.gif)\n\n## Device Integrations\n\n### Arduino Integration\nCreate your own ARGB controller for Neopixel, WS2801, WS2811, WS2812B, LPD8806, TM1809 and more controllable from PC or other devices supporting serial communication.\n\n### Yeelight\nTodo\n\n### Nanoleaf\nTodo\n\n### Govee\nTodo\n\n## Integrating Arduino\n\n### 1. Requirements\n1. An Arduino board that supports high baud rates as high as 921.600. I use the Arduino Mega 2560 R3.  The ideal choice would be an Arduino Due with a level shifter as it does not suffer from [FastLED's interrupt issue](https://github.com/FastLED/FastLED/wiki/Interrupt-problems).\n2. Any [FastLED compatible](https://github.com/FastLED/FastLED/wiki/Chipset-reference) LED matrix or strip. Up to 255 LEDs supported.\n3. External +5V power source (if you have lots of LEDs) \n\n### 2. Connecting the LED Strip to the Arduino\n#### Example for WS2812B LED Strips\n![](https://i.imgur.com/1zlMvis.png)\n*Reference WS2812B for PC pinout*\n\n1. **LED Strip [D]** to **Arduino [PIN 3]**\n2. **LED Strip [5V]** to **power source [5V]**\n3. **LED Strip [GND]** to **power source [GND]**\n4. **Arduino [GND]** to **power source [GND]**\n\n### 3. Software preparations\n1. Adjust the LED type and LED amount in the [firmware](https://github.com/Trojaner/signal-plus/tree/master/firmware/arduino/Firmware.ino) by changing `LED_TYPE` and `NUM_LEDS` to your needs.\n2. Adjust the [C# client](https://github.com/Trojaner/arduino-argb/tree/master/csharp/) or write your own client program using your favorite language with the protocol below.\n3. Done!\n\n## Protocol\nThe protocol was designed with speed in mind. \nA [sample C# based implementation](https://github.com/Trojaner/signal-plus/tree/master/client/csharp/RgbDevice.cs) is available.\n\n### Packet Structure\n\n```\n[Header]\n[00] 0xFC (start marker)\n[01] [command]\n[02] [payload size]\n[03] [header crc8]\n\n[Payload]\n[04] [first payload byte]\n[05] [second payload byte]\n...\n[XX] [payload crc8]\n```\n\nUse 0xD5 as polynemial for your CRC8 algorithm.\n\n### Commands\nThe following commands are available.\n\n#### COMMAND_SET_LED (0x01) \nSets a led to the given color.  \n  \n**Payload:**  \n```\n[00] [led_id]\n[01] [R]\n[02] [G]\n[03] [B]\n```\n\n**Example Packet**:  \nSet 6th led color to (0, 0, 255).  \n`FC 01 04 E7 06 00 00 FF B2`\n\n#### COMMAND_SET_LED_CHUNK (0x02) (experimental)\n Sets a chunk of leds for faster updates.  \n   \n**Payload:**  \n```\n[00] [start led]\n[01] [end led]\n[03] [R] // start led\n[04] [G]\n[05] [B]\n[03] [R] // start + 1 led\n[04] [G]\n[05] [B]\n...\n[??] [R] // end led\n[??] [G]\n[??] [B]\n```\n**Example**: \nSet leds 0 - 10 to a rainbow gradient.  \n`FC 02 21 75 00 0A BF 40 40 BF 8C 40 A6 BF 40 59 BF 40 40 BF 73 40 BF BF 40 73 BF 59 40 BF A6 40 BF BF 40 8C 00 2B`  \n  \n**Note**: Does not work correctly yet.\n\n#### COMMAND_SET_BRIGHTNESS (0x02)\nSet the brightness for the entire LED strip.  \n\n**Payload:**  \n```\n[00] [led_id]\n[01] [brightness]\n```\n\n**Example Packet**:  \nSet brightness to 64.  \n`FC 03 01 DA 40 9D`  \n  \n###  Limitations\nDepending on your Arduino, many packets may get lost because of [FastLED's interrupt issue](https://github.com/FastLED/FastLED/wiki/Interrupt-problems). To counter this, use a high baud rate and keep \"spamming\" your current state instead of sending it only once.   \n\n## To-Do\n- [ ] Supporting more than 255 LEDs and multiple channels for Arduino\n- [ ] Autostart \u0026 hiding console\n- [ ] GUI\n\n## License\n[MIT](https://github.com/Trojaner/signal-plus/blob/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrojaner%2Fsignal-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrojaner%2Fsignal-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrojaner%2Fsignal-plus/lists"}