Grant Desselle
Published © GPL3+

Hattori Meowzo: Raspberry Pi Cat Toy

It's a robot cat toy that starts when motion detection and object recognition confirm a cat is present. It also has a camera & web app.

IntermediateFull instructions provided8 hours4,370
Hattori Meowzo: Raspberry Pi Cat Toy

Things used in this project

Hardware components

Servo
high torque preferred
×1
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Male/Female Jumper Wires
Male/Female Jumper Wires
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
Camera Module V2
Raspberry Pi Camera Module V2
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
Rack and pinion gears (plastic)
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1

Software apps and online services

Ngrok
OpenCV
OpenCV
Microsoft Visual Studio
Raspbian
Raspberry Pi Raspbian
Microsoft .NET 5 SDK

Hand tools and fabrication machines

Hand saw
Screwdriver

Story

Read more

Schematics

Hardware wiring diagram

This shows the wiring of the servo, motion sensor, power sources and camera according to the pins referenced in the code for this project

Code

Hattori Meowzo - Web App for Robot Cat Toy

Download the code, open in Visual Studio and then build and publish for 'linux-arm'. For the code to run as is, move the publish folder to the desktop on the Raspberry Pi. Rename the folder to CatToyWebApp. For object recognition to work, you'll need to have compiled the source code for OpenCvSharp and then copy & pasted the 'libOpenCvSharpExtern.so' file into the root of the CatToyWebApp. I would reccommend double checking the paths listed in the top of the Camera class to ensure it lines up with where you've placed the project on your Raspberry Pi.

Credits

Grant Desselle

Grant Desselle

1 project • 0 followers
College dropout autodidact

Comments