← All projects
In progress

Automated Pet Door

A sliding pet door that opens when a pet inside wants to go out. It uses infrared break-beam sensors to tell whether the pet is leaving or coming back in.

Type
Personal project
Focus
Mechanism + embedded
Timeline
2026 – present
Photo / render: pet door assembly
2× ESP32
Two boards talking wirelessly over ESP-NOW
IR
Break-beam sensors detect direction of travel
Sliding
Door mechanism

The problem

A normal pet flap is always open. This door stays closed and opens only when a pet inside is trying to leave. It also tracks whether the pet has gone out or come back in.

How it works

Two ESP32s over ESP-NOW

Question
How do the sensing side and the door actuator communicate?
Method
Two ESP32 boards send messages directly over ESP-NOW, Espressif's low-latency peer-to-peer protocol, with no Wi-Fi router involved.
Why
The door responds fast, and there's no dependence on a home network.

Direction sensing with IR break beams

Question
Is the pet entering or leaving?
Method
Infrared break-beam sensors at the opening. The order in which the beams are broken gives the direction of travel.
Why
Break beams are simple and reliable, and they don't need a collar tag.

Sliding door mechanism

Question
How does the door open and close?
Method
A sliding door, opened when a pet is detected inside trying to leave.

Build

CAD: sliding mechanism
Sliding door mechanism.
Photo: electronics / wiring
ESP32 boards and break-beam sensors.
Diagram: sensing → ESP-NOW → door logic
System overview.

What's next