Bird-Away: Raspberry Pi-powered water-based bird deterrent A developer built Bird-Away, a Raspberry Pi-powered system that uses an RTSP camera and Claude AI to detect birds in a pool, then triggers a sprinkler to deter them. The system saves images and video clips, optionally publishing them to Cloudflare R2 for remote viewing. The project is open-source and designed for easy setup on a Raspberry Pi 4. A Raspberry Pi service that watches a pool through an RTSP camera, asks Claude whether birds are present, and triggers a sprinkler via relay + solenoid valve to startle them. Each detection saves a still image and a short video clip, and can optionally publish both to a Cloudflare R2 bucket so they're viewable from anywhere on the internet. blogpost: https://mattsahn.github.io/bird-away-blog/ https://mattsahn.github.io/bird-away-blog/ - Raspberry Pi 4 or earlier on Wi-Fi. - Relay module wired to one Pi GPIO pin and ground. Active-high or active-low is configurable. - RTSP-capable IP camera reachable on the same network. - Solenoid valve on its own power supply, switched by the relay. The Pi must not source current to the valve directly. - Sprinkler aimed to spray over and around the pool when the valve opens. - optional - temperature/humidity sensor for monitoring ambient conditions in the enclosure - Momentary switch the contact pair on the same panel-mount button for a manual sprinkler trigger. One contact → GPIO pin default 23 , other → ground; the Pi's internal pull-up holds it HIGH at rest. The status LED stays solid while held, and releasing fires the same capture/spray/record/upload flow as a real bird detection. On the Pi: sudo apt update sudo apt install -y python3-venv ffmpeg swig liblgpio-dev git clone