This is a robot cat toy powered by a Raspberry Pi. with a servo, motion detector and a Raspberry Pi camera attached.
Short Description of Project:
A servo connected to rack and pinion gears makes an object extend and retract from an enclosure, emulating the motion of a mouse leaving and retreating from its hole.
When the motion detector senses motion, the camera takes a picture and then the app uses OpenCvSharp to check if it can recognize a cat's face in the photo.
If it does recognize a cat's face, it takes another picture and a short video while it runs a predefined routine of movements. If a cat's face is not recognized in the photo taken after movement was detected, the toy returns to checking for movement.
Meanwhile, the photos and videos taken by the toy can be viewed on a web app running locally on the Raspberry Pi. Ngrok or other solutions may make viewing the cat toy's media more convenient.
Full instructions for building and running the app, preliminary software requirements and things to look out for are included in the Readme file on this project's GitHub page.
Comments