Close
0%
0%

AI Cat Deterrent Automatic Sprayer

AI-powered facial recognition detects my cat's face, aims, and sprays him repeatedly until he gets down.

Public Chat
Similar projects worth following
My cat keeps jumping on my counter and I want him to stop. Naturally, the solution is to over-engineer an AI-powered sprayer to stop him. Message me directly if you'd like to know more about the design choices or components used in this project.

Cats are a nuisance.

They don't listen to commands, they don't obey any directive unless under the threat of discipline, and worst of all they know exactly what it is they're doing. One of the troubles I've had is keeping my tornado of fur and teeth off the counters. This project seeks to enforce the discipline that I get too sleepy to enforce myself.

Here's the vision:

An automated sprayer that detects my cat using AI and continuously repositions to spray him directly in the face without requiring any user inputs. For fun, I'll build a manual mode where anyone on my local wifi can visit an html-hosted aiming and spraying interface.

Schematic.PNG

v1 Schematic

Portable Network Graphics (PNG) - 33.25 kB - 10/24/2021 at 19:51

Preview
Download

Layout_Top.PNG

v1 Layout

Portable Network Graphics (PNG) - 37.28 kB - 10/24/2021 at 19:51

Preview
Download

Schematic_v3.PNG

v3 Schematic

Portable Network Graphics (PNG) - 37.71 kB - 10/24/2021 at 19:51

Preview
Download

Layout v3.PNG

v3 Layout

Portable Network Graphics (PNG) - 46.75 kB - 10/24/2021 at 19:53

Preview
Download

  • 1 × Raspberry Pi Zero W
  • 1 × Raspberry Pi NoIR Camera
  • 2 × SG90 9G Micro Servo
  • 1 × 12V Windshield Washer
  • 1 × 12V, 8A Wall Adapter w/ Barrel Connector

View all 20 components

  • A Vision Rekindled

    Shuesh07/17/2023 at 22:36 0 comments

    So I'm coming back to this project after a long time away from it and trying to remember where I left off. I have a semi-functional GUI, a very slow camera feed from my Raspberry Pi Zero W, and what is hopefully the final iteration of a PCB to make it all work. I do remember that the second slide switch to power on the board wasn't rated to handle the power that I'm using, so the contacts fused together when I switched it on. I've since replaced that switch with a much bigger one that I hope to build into a 3D printed enclosure. Stay tuned for more updates as I actually make progress towards this again.

  • v3: An Acceptable Substitute?

    Shuesh10/24/2021 at 20:23 0 comments

    I ordered in some replacement parts for both of the issues mentioned in the previous log.

    First, I replaced the relay with a darlington pair BJT. This offers absurdly high current gains for very low Base currents. In other words, it will work to power my windshield washer motor, which needs around 2.5A to function, with the < 16mA I get from the RPi gpio. In the attached breadboard picture, I have a test setup for this.

    Second, I replaced the 5V LDO with a 5V switching regulator. I ordered two just to be safe (lm2576-5.0WT and bd9874cp-v532), which also allows me the flexibility of putting these regulators in series if they still get too hot. After leaving this circuit to run for a few minutes, there was virtually no heat coming from the regulator. We'll count that as a win!

    As I mentioned earlier, the attached picture is from the component testing I did on my breadboard. After confirming these components are good solutions, I went back and did my board design for v3 of this project. My schematic and Layout are now as follows.

  • v1: First pass

    Shuesh10/24/2021 at 20:12 0 comments

    The first version of this board has two major issues that inhibit the hardware functionality of this project.

    First, the relay mechanism doesn't work to switch on the sprayer when excited by the gpio pin. On further research, it looks like a Raspberry Pi Zero W can only source about 16mA of current. This relay needs 50+mA to latch, making this concept inadequate for our feline spraying needs.

    Second, the 5V LDO gets roughly as hot as the surface of the sun because I'm trying to drop as much as 14W across it. Since I'm not keen on giving up my security deposit, it would be good to switch this out for another option that's less likely to start a fire. According to various sources online, a switching regulator is better in this arena as it won't get so hot.

View all 3 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates