{"id":32330376,"url":"https://github.com/andruhon/pico-dog","last_synced_at":"2026-07-13T17:31:54.267Z","repository":{"id":273510503,"uuid":"919940205","full_name":"andruhon/pico-dog","owner":"andruhon","description":"Raspberry Pi Pico alarm system which keeps you safe in the dark","archived":false,"fork":false,"pushed_at":"2025-11-18T04:19:51.000Z","size":6896,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T05:29:38.652Z","etag":null,"topics":["light-sensor","pir-sensor","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","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/andruhon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-01-21T09:34:23.000Z","updated_at":"2025-11-18T04:19:55.000Z","dependencies_parsed_at":"2025-02-08T10:18:37.365Z","dependency_job_id":"0d9bfd9a-0d4e-4d18-bb65-1b39700dc58f","html_url":"https://github.com/andruhon/pico-dog","commit_stats":null,"previous_names":["andruhon/pico-dog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andruhon/pico-dog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andruhon%2Fpico-dog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andruhon%2Fpico-dog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andruhon%2Fpico-dog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andruhon%2Fpico-dog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andruhon","download_url":"https://codeload.github.com/andruhon/pico-dog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andruhon%2Fpico-dog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35430964,"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-07-13T02:00:06.543Z","response_time":119,"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":["light-sensor","pir-sensor","raspberry-pi"],"created_at":"2025-10-23T18:45:10.264Z","updated_at":"2026-07-13T17:31:54.262Z","avatar_url":"https://github.com/andruhon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pico Dog\n\nDetects motion and plays a dog bark sound when it's dark.\n\n**Special Halloween Edition:** https://github.com/andruhon/pico-dog/tree/halloween-edition\n\nSee [PROJECT.md](PROJECT.md) for a detailed project writeup with build instructions and real-world performance notes.\nSee [materials.md](materials.md) for the list of materials used.\nSee [circuit.md](circuit.md) for circuit details.\n\n![Photo](dog-circuit-20250208.png)\n![Circuit](dog-circuit-kicad-20260207.png)\n\n## Audio Sources\n\nDog bark sound:  \n[Dog Bark by abhisheky948](https://freesound.org/people/abhisheky948/sounds/625498/) (Distributed under CC0 license)\n\n## Installation\n\n### Development Environment (Optional)\n\nIf you need to work with the project files locally, you can create a Python virtual environment:\n\n```\npython -m venv venv\nsource venv/bin/activate\npython -m pip install -r requirements.txt\n```\n\n### Dependencies\n\nThis package uses the following packages as dependencies:\n* https://github.com/CoreElectronics/CE-PiicoDev-Unified/blob/main/PiicoDev_Unified.py\n* https://github.com/CoreElectronics/CE-PiicoDev-VEML6030-MicroPython-Module/blob/main/PiicoDev_VEML6030.py\n* https://github.com/joeky888/awesome-micropython-lib.git\n* https://github.com/danjperron/PicoAudioPWM.git\n\n### Deploying to Pico\n\n**Prerequisites:** MicroPython must already be installed on your Raspberry Pi Pico. Installation instructions can be found at https://micropython.org/download/RPI_PICO/\n\n**Note:** Connecting to Raspberry Pi Pico on Linux may sometimes be challenging. Check [linux.md](linux.md) for troubleshooting tips.\n\n**mpremote documentation:** https://docs.micropython.org/en/latest/reference/mpremote.html\n\nInstall dependencies to Pico:\n\n```bash\nmpremote mip install github:CoreElectronics/CE-PiicoDev-Unified/PiicoDev_Unified.py\nmpremote mip install github:CoreElectronics/CE-PiicoDev-VEML6030-MicroPython-Module/PiicoDev_VEML6030.py\nmpremote mip install github:joeky888/awesome-micropython-lib/Audio/chunk.py\nmpremote mip install github:joeky888/awesome-micropython-lib/Audio/wave.py\nmpremote mip install github:danjperron/PicoAudioPWM/myDMA.py\nmpremote mip install github:danjperron/PicoAudioPWM/myPWM.py\nmpremote mip install github:danjperron/PicoAudioPWM/wavePlayer.py\n```\n\nCopy sources to Pico:\n\n```bash\nmpremote fs cp -r src/* :\n```\n\nVerify installation:\n- Run `mpremote ls` to make sure everything is copied over (you may need to restart the Pico to pick up changes)\n- Run `mpremote df` to check available space on the Pico\n\n## Custom Sounds\n\nWhen using your own sounds, make sure they are **16-bit WAV files with a 16000 Hz sample rate**. You can use [Kwave](https://apps.kde.org/kwave/) (open source audio editor) to convert files.\n\n**Recovery:** If you copied a corrupted file and your Pico seems to be bricked, you can flash it with the official Raspberry Pi memory reset: [flash_nuke.uf2](https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#resetting-flash-memory)\n\n## Links\n\n* [PIR Sensor Tutorial](https://lastminuteengineers.com/pir-sensor-arduino-tutorial/) - Explains how PIR sensors work (Arduino-based but applicable)\n* [PiicoDev VEML6030 Guide](https://core-electronics.com.au/guides/piicodev-ambient-light-sensor-veml6030-quickstart-guide-for-rpi-pico/) - Light sensor quickstart guide\n\n## License\n\nThis repository uses two different licenses for files — Creative Commons BY-SA 4.0 for circuit schematics and MIT for code.\n\nPlease note the repository pulls in source code from other repositories, most of them are MIT and Creative Commons, pleaser refer to Dependencies section of this README to find other repositories in use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandruhon%2Fpico-dog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandruhon%2Fpico-dog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandruhon%2Fpico-dog/lists"}