{"id":15102116,"url":"https://github.com/xorboo/antichoker","last_synced_at":"2026-02-27T10:33:17.778Z","repository":{"id":240823584,"uuid":"789002131","full_name":"Xorboo/AntiChoker","owner":"Xorboo","description":"Tiny DIY art project in form of a choker monitoring the air quality around you","archived":false,"fork":false,"pushed_at":"2024-10-18T11:45:24.000Z","size":740,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T13:45:44.928Z","etag":null,"topics":["esp32","led-strips","platformio","sgp40"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xorboo.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-04-19T14:07:46.000Z","updated_at":"2024-10-18T11:45:15.000Z","dependencies_parsed_at":"2024-05-21T02:10:50.604Z","dependency_job_id":"39ab7ac6-8b22-4d7a-8feb-b273b6b7985d","html_url":"https://github.com/Xorboo/AntiChoker","commit_stats":null,"previous_names":["xorboo/antichoker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Xorboo/AntiChoker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xorboo%2FAntiChoker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xorboo%2FAntiChoker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xorboo%2FAntiChoker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xorboo%2FAntiChoker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xorboo","download_url":"https://codeload.github.com/Xorboo/AntiChoker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xorboo%2FAntiChoker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265068801,"owners_count":23706533,"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":["esp32","led-strips","platformio","sgp40"],"created_at":"2024-09-25T18:47:20.156Z","updated_at":"2025-10-13T12:42:54.960Z","avatar_url":"https://github.com/Xorboo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AntiChoker\n\nA tiny hardware project for [Festiwal Światła](https://festiwalswiatla.hs3.pl/) - a choker with a LED strip displaying air quality _(aka a choker showing when you are going to choke)_\n\n![AntiChoker](images/antichoker.gif)\n\n## Hardware\n\n- ESP32. [XIAO ESP32S3](https://www.seeedstudio.com/XIAO-ESP32S3-p-5627.html) was used, but any similar chip should work. Consider using a chip with integrated Stemma QT connector (like [Adafruit QT Py RP2040](https://www.adafruit.com/product/4900)) to avoid unnecessary soldering. Processes air quality and displays it on the LED strip (also sends over MQTT if needed)\n- [Adafruit SGP40 Air Quality Sensor Breakout](https://www.adafruit.com/product/4829). Monitors air quality and gives it out in `[0-500]` range\n- Any suitable LED strip (1 LED/cm is preferrable)\n- An actual choker to attach the stip. This can potentially hold just on the led strip, but having a choker gives control over the length and a decent base\n- Powered via powerbank, but possible to solder a battery (if 3V pin is used for LEDs)\n\n### Connection\n\n- Connect SGP40 to ESP32 via Stemma QT cable (SDA, SCL, GND, 3V)\n- Connect LEDs to ESP32 (data pin, GND, 5V)\n\n## Software\n\nBuilt with PlatformIO and VSCode. Most logic are in `leds_controller.cpp`. Sensor fetching and LEDs update are done on separate cores, as sensor takes ~100-200ms to get the data, which is not suitable for smooth LED animation. It is also able to send measurtement data over MQTT ()\n\n### Setup\n\n- If you don't need MQTT - use `no_mqtt` env\n- Set `DATA_PIN` in `leds_controller.cpp` (TODO: pass from env?)\n- For MQTT use `production` env\n  - Copy `secrets.ini.example` into `secrets.ini` and set appropriate values for WiFi and MQTT connections\n\n### Visuals\n\nAnimation is basically:\n\n- Air quality converted to color via color palette\n- Color is set to the whole LED strip, with brightness adjusted as a moving sine-wave (with some gamma corrections)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorboo%2Fantichoker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxorboo%2Fantichoker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxorboo%2Fantichoker/lists"}