Raspberry Pi Doves Repellent





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

  1. Raspberry Pi with Raspbian OS http://amzn.to/1GnO1om
  2. Owl Decoy – you can also use any bird toy or box http://amzn.to/1GnNZwH
  3. A small breadboard
  4. A PIR movement detector http://amzn.to/1ZUdigp
  5. Two red Leds
  6. A 560 ohm resistor
  7. Some wires
  8. 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




  • Epilog Challenge 9

    Epilog Challenge 9
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
  • Gluten Free Challenge

    Gluten Free Challenge

We have a be nice policy.
Please be positive and constructive.




Very cool project :-) Looking to make something similar to scare the Doves away from my solar panels.

How is the scary owl doing in real life? Doves still scared, or should I look for other ideas? Thanks

Thanks! doves are scared but you need a good sound amp: 25 watts or more.

Hola Roni.

Gran idea.
Voy a intentar modificarla para usarlo con palomas. El problema es que tiene que ser a distancia, ya que el problema está enfrente de mi casa.

Les dan de comer todos los días y es un asco.

Alguna sugerencia?


En ese caso podés probar con el "método Hemingway" Un Crossman y una lata de balines.

Here, doves are not such a plague. However, this could be fun for Halloween ... if I only had the time :-(

Time is on your side (Rolling Stones) ;)

You should add movement (like the owl swiveling) as well as sound. Just moving the head would be more convincing than the body.

Thanks for the suggestion, Jobar007. Maybe for the next version.

nice idea but it would be better with a arduino and you could send it to sleep and on battery it could last months.