{"id":15161619,"url":"https://github.com/roman-kulish/microbit-led-lights","last_synced_at":"2026-02-09T19:02:59.278Z","repository":{"id":253193205,"uuid":"842261914","full_name":"roman-kulish/microbit-led-lights","owner":"roman-kulish","description":"Micro:bit V2 Interactive LED Strip with Light Sensing","archived":false,"fork":false,"pushed_at":"2024-08-17T04:28:32.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T05:04:58.334Z","etag":null,"topics":["arduino","home-automation","microbit-v2","platformio","smart-lighting","ws2812b"],"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/roman-kulish.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":"2024-08-14T02:02:23.000Z","updated_at":"2024-08-17T04:28:35.000Z","dependencies_parsed_at":"2024-08-17T05:29:37.469Z","dependency_job_id":null,"html_url":"https://github.com/roman-kulish/microbit-led-lights","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"d7e2730c6de800b48b22ac5bab20ae4653f1a941"},"previous_names":["roman-kulish/microbit-led-lights"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roman-kulish/microbit-led-lights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-kulish%2Fmicrobit-led-lights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-kulish%2Fmicrobit-led-lights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-kulish%2Fmicrobit-led-lights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-kulish%2Fmicrobit-led-lights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roman-kulish","download_url":"https://codeload.github.com/roman-kulish/microbit-led-lights/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-kulish%2Fmicrobit-led-lights/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29277941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T17:15:22.002Z","status":"ssl_error","status_checked_at":"2026-02-09T17:14:42.395Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["arduino","home-automation","microbit-v2","platformio","smart-lighting","ws2812b"],"created_at":"2024-09-27T00:41:18.174Z","updated_at":"2026-02-09T19:02:54.270Z","avatar_url":"https://github.com/roman-kulish.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro:bit V2 Interactive LED Strip with Light Sensing\n\nThis project showcases how to create an interactive LED strip experience using a Micro:bit V2 board, a VEML6030 ambient light sensor, and a WS2812B addressable LED strip. \n\n## Features\n\n* **Multiple Modes:**\n    * **Lights ON:** LEDs display a static pattern, controlled by button B.\n    * **Lights OFF:**  All LEDs are turned off.\n* **Button Control:**\n    * Button A: Cycles through the different modes.\n    * Button B: Changes the LED animation pattern (in Lights ON mode).\n* **Ambient Light Sensing:** The VEML6030 sensor adjusts the brightness of the LEDs based on the surrounding light levels.\n* **WS2812B LED Strip:**  Utilizes the `WS2812FX` library for a variety of captivating LED animation patterns.\n\n## Shopping List\n\n* Micro:bit V2 board (https://core-electronics.com.au/micro-bit-v2-go-kit-australia.html)\n* PiicoDev Adapter for Micro:bit (https://core-electronics.com.au/piicodev-adapter-for-micro-bit.html)\n* PiicoDev Platform for Micro:bit (https://core-electronics.com.au/piicodev-platform-for-micro-bit.html)\n* VEML6030 ambient light sensor (https://core-electronics.com.au/piicodev-ambient-light-sensor-veml6030.html)\n* WS2812B addressable LED strip (adjust length and power supply as needed) (https://core-electronics.com.au/digital-rgb-led-strip-120-led-black.html)\n* Jumper wires (I2C / Qwiic compatible)\n* DC Barrel Jack Adapter (https://core-electronics.com.au/dc-barrel-jack-adapter-female.html)\n* Some vero board to solder PDB\n* Flexible Silicone LED Tube (T0513) (https://vi.aliexpress.com/item/1005007522578245.html)\n* Matching Plastic Led Connector Clips (https://vi.aliexpress.com/item/1005007014259584.html)\n* Power Adapter (5.5*2.1~2.5mm, Female Connector, 5V 6A) (https://vi.aliexpress.com/item/33042352760.html)\n* 16AWG Silicone Wires (https://vi.aliexpress.com/item/1005002911374376.html)\n* PET Expandable Cable Sleeve (6mm) to hide wires (https://vi.aliexpress.com/item/1005001728771890.html)\n* Transparent Acrylic Sheet Board (3mm) (https://vi.aliexpress.com/item/1005006408573271.html)\n* M3 Hex Brass Standoffs Assortment Kit (https://vi.aliexpress.com/item/1005007511529003.html)\n* Cutter For Acrylic Plastic Sheet (optional) (https://vi.aliexpress.com/item/1005004994830361.html)\n\n## Software Requirements\n\n* Arduino IDE or PlatformIO\n* Adafruit_Microbit library \n* SparkFun_VEML6030_Ambient_Light_Sensor library\n* WS2812FX library\n\n## Installation and Setup\n\n1. **Clone or download this repository.**\n2. **Install the required libraries.** \n3. **Connect the hardware components** according to the wiring diagram (provided below or in a separate file).\n4. **Open the project** in your Arduino IDE or PlatformIO.\n5. **Compile and upload** the code to your Micro:bit V2.\n\n## Wiring Diagram\n\n![Wiring diagram](schema.png)\n\n## Usage\n\n1. **Power on** your Micro:bit V2.\n2. **Press button A** to cycle through the modes.\n3. **Press button B** to change the LED animation pattern (in Lights ON mode).\n4. The LEDs will automatically adjust their brightness based on the ambient light.\n\n## Customization\n\n* Adjust the VEML6030 sensor settings and brightness mapping in `VEML6030.cpp` to fine-tune the light sensitivity.\n* Modify the LED animation patterns or add new ones in `State.cpp` and `WS2812FX.h`.\n* Experiment with different motion detection thresholds and LED responses in `main.cpp`.\n\n## Contributing\n\nContributions are welcome! Feel free to submit pull requests or open issues to suggest improvements or report bugs.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-kulish%2Fmicrobit-led-lights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froman-kulish%2Fmicrobit-led-lights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-kulish%2Fmicrobit-led-lights/lists"}