Arduino Doggy-Door Sensor Circuit

Замовник: AI | Опубліковано: 08.11.2025

I’m building a motorised doggy-door and need a complete Arduino-based control system so the door slide opens as my dog approaches and closes after time interval. I’ve chosen a sensor-based solution that relies on IR motion sensors (N/O) positioned on both the interior and exterior sides of the door. A 12VDC motor operated a pinion to drive a rack attached to a vertical sliding-door. The motor operates to open the door until the upper (open) reed-sensor is activated. The door stays open for a set time (adjustable via a potentiometer) and then closes the door (by reversing the polarity on the DC motor) until the lower (closed) reed-sensor is activated and pause at end for 10sec before reset. (the IR sensors should be ignored during the open/close cycle.) Here’s what I’d like delivered: • A clear wiring schematic showing the Arduino, motor driver, limit switches (if needed), dual PIR sensors, delay pot and the motor/actuator & polarity reversal. • Well-commented Arduino code that
 – reads the two motion sensors,   – drives the motor in the appropriate direction (open or close),   – incorporates a timeout or secondary trigger so the door doesn’t stay open indefinitely, and   – prevents rapid re-triggering or conflicting commands from the two sensors. A functional prototype isn’t required to be physically shipped, but your documentation and code should be turnkey so I can breadboard, upload, and test locally without guesswork.