Introduction: Raspberry Pi Doves Repellent
I live in Buenos Aires and here doves are a Biblical plague. I once purchased an owl decoy but doves just ignored it - and maybe even laugh at it - . In fact the only one scared with the owl decoy was me a drunk night in the backyard.
Anyway, now I made this Doves Repellent using that old owl decoy, a Raspberry Pi2 and some other things. The device will detect doves’ movement and it will trigger scary owl and hawk predator sounds. Owl decoy eyes will also turn red. Not sure if red eyes scares doves but the zombie effect is pretty cool.
Step 1: Requirements
- Raspberry Pi with Raspbian OS http://amzn.to/1GnO1om
- Owl Decoy – you can also use any bird toy or box http://amzn.to/1GnNZwH
- A small breadboard
- A PIR movement detector http://amzn.to/1ZUdigp
- Two red Leds
- A 560 ohm resistor
- Some wires
- A small active speaker like this one http://amzn.to/1LBgXWW a micro guitar amp like mine will work as well
Step 2: Circuit and Assembly
According to the attached circuit image, connect the Leds, resistor and PIR to the breadboard. Connect to voltage, ground and GPIO 7/8. Connect Raspberry Pi 2 audio output to active speaker.
Mount everything inside the owl decoy or box, insert the red leds into the owl eyes and cut a square for the PIR motion sensor.
Step 3: Software
Copy the attached dovesrepellent.py code and the 2 mp3 files into the Raspberry Pi
Then make this simple step for autoexecution on start
sudo nano /etc/rc.local
Then add this line
(sleep 10;dovesrepellent.py)&
Now save with Ctrl X and exit with Y.
If you want to execute by hand just open terminal and type:
sudo python dovesrepellent.py
Enjoy!