🤖
DIY robot concept

Anti-cat plant defender (humane)

PIR motion sensor + small water pump + servo-aimed nozzle. When a cat (not a human) approaches your plants, it sprays a harmless burst of water. Tunable to ignore objects above a certain height.

Cats love digging in indoor pots. The standard chemical deterrents (citrus sprays, spike mats) work for a week then the cat habituates. Ultrasonic deterrents work indoors but bother dogs and some humans. The water-burst approach trades a tiny inconvenience (pot needs water topped up weekly) for a cat-proof solution that the cat actually respects long-term — they hate the surprise spray and they don't habituate to a sensation that makes them physically wet.

The minimum-viable version is a PIR motion sensor pointed at the plants, a 12V water pump in a small reservoir, and a servo aiming the nozzle. Total cost is about $35. The non-obvious detail is the height filter — you don't want to spray your kid or your dog. A simple ToF (time-of-flight) sensor mounted parallel to the floor returns the height of whatever triggered the PIR. If it's above 50cm, ignore it. Below 50cm, fire the spray.

The pump runs for 200ms — long enough for one good burst, short enough that you don't refill the reservoir for two weeks of typical use. The nozzle is aimed via a single SG90 servo with about 60° of pan range, which covers a 1-meter-wide planter from 50cm away. For larger areas, mount two units in opposite corners.

Core parts

ESP32-C3 mini

$5

Brain. The C3 is cheaper and smaller than the WROOM and plenty for this task

PIR motion sensor (HC-SR501)

$2

Triggers initial detection. Tuned to short range (1.5m) to focus on the plants

VL53L0X ToF sensor

$4

Height filter. Mounted parallel to the floor, returns height of the moving object

12V diaphragm water pump

$8

0.6 L/min, runs in bursts. 30PSI, enough for a sharp 1m water arc

SG90 servo

$2

Aims the nozzle. ±30° pan from neutral

Garden mister nozzle

$2

Brass-tipped, fan pattern. ~$2 each from any irrigation supply

Design variants

Outdoor garden variant

Larger reservoir (5L), bigger nozzle for bed-wide coverage, weatherproof enclosure. Same firmware. Useful for keeping cats out of a vegetable bed.

AI cat-vs-other variant

Replace the height filter with an ESP32-CAM running a tiny vision model that distinguishes 'cat' from 'human/dog/other'. Slower (300ms detection latency) but lets you have it at floor level where height filtering gets confused.

Squirrel-deterrent variant

Same hardware, different config: smaller plants (bird feeders), aimed upward at perches. Squirrels respond similarly to cats — they hate getting sprayed.

Practical safety note

Treat the generated output as a prototype plan, not a certified product. Body-adjacent, high-voltage, optical-energy and mobility builds need qualified review before real-world use.

FAQ

Will it spray my kid?

Not if the height filter is set to 50cm. Toddlers above that height get ignored. Below, well — they're crawling, the burst is gentle, and you should probably teach them to leave the plants alone anyway. Some users disable the unit when the kid is younger than 2.

Will the cat get traumatized?

No. The water burst is a gentle 'pfft', not a high-pressure jet. Cats startle and leave; they don't show signs of avoidance of the room itself. Anecdotally, cats give the planter a wide berth within 3 days and never get sprayed again.

Does it work on dogs?

Most dogs are over 50cm tall and get filtered out. If your dog is small enough to trigger it, it learns to leave the plants alone within 2-3 sprays. Doesn't seem to bother dogs as much as cats — they're more habituated to water in general.

How often do I refill the water?

Reservoir holds 500ml, each spray is about 5ml. Theoretical 100 sprays per fill. In practice you refill weekly because evaporation eats some of it.

What if the ESP32 freezes mid-spray?

Watchdog timer resets it within 8 seconds. The MOSFET defaults to OFF on power-cycle, so the worst case is one continuous spray for 8 seconds before reset — about 80ml of water. Add a hardware fuse-relay if you're paranoid; we haven't seen it happen in 2 years.

Turn this concept into a sourced build

Start with this prompt prefilled, then let RoboHub generate the live parts list, wiring plan, CAD and firmware.

Generate build