{"id":31206494,"url":"https://github.com/anseljh/mdd","last_synced_at":"2026-05-08T09:31:55.543Z","repository":{"id":314704931,"uuid":"1048133199","full_name":"anseljh/MDD","owner":"anseljh","description":"Tiny smart device to deter rodents with an ultraviolet LED that turns on at night","archived":false,"fork":false,"pushed_at":"2025-09-14T08:43:07.000Z","size":205,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T09:06:11.791Z","etag":null,"topics":["circuitpython","esp32"],"latest_commit_sha":null,"homepage":"","language":"Python","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/anseljh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T01:22:49.000Z","updated_at":"2025-09-14T08:43:10.000Z","dependencies_parsed_at":"2025-09-14T09:06:16.154Z","dependency_job_id":"22964668-c990-49e3-8362-69e235fcab85","html_url":"https://github.com/anseljh/MDD","commit_stats":null,"previous_names":["anseljh/mdd"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/anseljh/MDD","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseljh%2FMDD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseljh%2FMDD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseljh%2FMDD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseljh%2FMDD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anseljh","download_url":"https://codeload.github.com/anseljh/MDD/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anseljh%2FMDD/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276150825,"owners_count":25593841,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"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":["circuitpython","esp32"],"created_at":"2025-09-20T19:56:12.833Z","updated_at":"2025-09-20T19:56:14.335Z","avatar_url":"https://github.com/anseljh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mouse Deterrent Device\n\nA mouse decided it liked the space under the hood of my car. Supposedly, they don't like ultraviolet light, so I designed a small device that could go in there to deter critters from settling in at night.\n\n## What it does\n\n- Connects to home wifi\n- Gets the current time via NTP\n- Gets sunrise and sunset times from the [SunriseSunset.io](https://sunrisesunset.io/) API\n- If it's daytime, goes into battery-saving deep sleep until sunset\n- If it's night, light the UV LED, and go into a lighter sleep mode until sunrise to save some battery\n\n## Hardware\n\n- [Seeed Studio XIAO ESP32-C6](https://www.seeedstudio.com/Seeed-Studio-XIAO-ESP32C6-p-5884.html)\n- A battery (soldered to pads on Xiao) or USB battery pack\n- Ultraviolet LED (like [this one](https://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10001\u0026langId=-1\u0026storeId=10001\u0026productId=2274823))\n- Resistor appropriate for your UV LED (4.7 Ω for the one linked above)\n\n## Circuit schematics and PCB\n\nPCB design files for [KiCad](https://www.kicad.org/) are in `PCB` folder.\n\n![A rendered view of the little PCB from KiCAD](PCB/MDD_ESP32.png)\n(This render shows a slightly different Xiao board, not the ESP32-C6 version.)\n\n[Mouse image](https://thenounproject.com/icon/mouse-7950563/) by Kim Sun Young from [Noun Project](https://thenounproject.com/browse/icons/term/mouse/) ([CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)).\n\n## Software\n\n- [CircuitPython](https://circuitpython.org/)\n  - [adafruit_connection_manager](https://docs.circuitpython.org/projects/connectionmanager/en/latest/index.html)\n  - [adafruit_ntp](https://docs.circuitpython.org/projects/ntp/en/latest/index.html)\n  - [adafruit_requests](https://docs.circuitpython.org/projects/requests/en/latest/index.html)\n- Powered by [SunriseSunset.io](https://sunrisesunset.io/)'s sunrise/sunset API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseljh%2Fmdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanseljh%2Fmdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanseljh%2Fmdd/lists"}