Protect your garden from unwanted animals with the garden defender. The garden defender is a robotic water pellet gun that deters unwanted animals by shooting at them with a water pellet. The robotic gun will continuously scan your garden with a webcam. With the combination of computer vision and a deep learning algorithm “YOLO”, the garden defender can detect and distinguish between a “friendly” and “unwanted guest” before shooting a water pellet.
In most cases, a fence or a garden wall is not enough to prevent unwanted animals visiting your garden. This is particular true for gardeners who like to grow vegetables. Animals such rats and birds might see your vegetables as free food. Or your neighbourhood cat might have taken a liking to your lawn as its personal toilet.
One solution to deter these “unwanted guest” is by shooting at them with a water gel pellet. The garden defender has a webcam that continuously scans your garden. When an “unwanted guest is detected”, the garden defender with aim and shoot.
Please, watch our video:
For code documentation go to: https://ernestoflores27.github.io/Garden_Defender/html/index.html
For full building instructions go to: Full build guide
Required packages:
Installing Raspberry Pi OS:
Installing Cmake on RPI:
1.-Open terminal.
2.-Installation:
3.-Verification:
Installing Pigpio on RPI:
1.-Open terminal.
2.-Installation:
3.- Verification:
Installing PCA9685 on RPI:
1.Follow the installation as shown here: https://github.com/vanvught/rpidmx512/tree/master/lib-pca9685
Installing OpenCV on RPI:
1.-Open terminal
2.-Download:
3.-Extract:
4.-Move folder:
5.-Remove folder:
6.-Install requisites:
7.-Add OpenCV to the system library path:
8.-Clone config file:
Clone this repo using
Build using cmake