The Solution: Pet Curfew, an arduino controlled pet door, with real time clock, cat status led light and servo latch.
Video here.
Remove these ads by
Signing UpStep 1: You will need...
2. An Arduino Nano V3 micro-controller
3. 2x roller switches for detecting cat in/out status (or magnetic reed switches). Similar to this one.
4. 2x momentary push button switches (normally open) for manually opening or closing the door at any time
5. A breadboard
6. A BlinkM MinM LED module (I2C)
7. A Chronodot high precision real time clock module (I2C)
8. A Servo.
9. 4x 10K resistors (for interfacing the 4 switches)
10. Miscellaneous wiring
11. Small nuts and bolts for securing the switches and servo to the door
12. A mini-B USB power supply
The Staywell 4 way locking pet door provides the perfect housing for this prototype, because it is already designed to accommodate additional hardware and electronic modules (other models from the manufacturer) . It also features a flap and an indoor flap guard. The flap guard prevents smart pets from opening the door from the inside.
The arduino nano's size is perfect for fitting inside the door; however other arduino will probably fit too.
The Chronodot real time clock (RTC) is an I2C module that keeps track of the current date and time, even when power is not present.
The BlinkM MiniM is a smart I2C LED module that can fade in and out of a wide range of colors.









































Visit Our Store »
Go Pro Today »




That's three projects I've seen browsing just now that use them unnecessarily!
VirtualBoxer: I thought of rotating the built-in knob, but could not find a way to make the servo fit neatly behind the door (it would have to sit somewhere inside the drywall). Also, the manufacturer chose to position the knob in the corner and a determined pet (read Houdini) can escape by pushing the other corner and bending the plastic flap. My next version will have the servo in the middle of the bottom of the frame for that reason.
I can see this being VERY useful in a chicken coop! Can it be worked so that it stays open all day, and is programmed to open in the morning and close at night by a light meter?
First thing that springs to mind (to me) is whether the system might at some point for some reason fail to detect that the cat is indoors and lock your poor cat out of the house instead.
Might happen when the electronics / switches / sensors etc are exposed to excessive moisture or cold at various points in the year.
Is the cat flap at least lockable in a position which allows entry but not exit during curfew? Is that what this actually does? What would happen during a power cut if in the locked position?
.
I have a self developed home house alarm with relays to control the bell box and sirens, and one relay has died of its own accord just by being under the stairs, not even exposed to much cold or moisture (yes it was diode protected too) so I wouldn't trust such perfboarded electronics not to get it wrong on occasion, the risk of your cat getting locked out and essentially turning stray is too great.
I'd put much more trust in a professionally produced green circuit board...
1) Lets me know if my cat is outside, or has come in.
2) Changes the lock mechanism by programming the clock, instead of manually changing it.
Is this correct? Thx
I tried uploading a short .MOV clip (24MB), but am getting an http error at the end of the upload. Any suggestion?
You could modify the sketch and add a counter:
When the door opens to the outside:
counter++;
set status light = blue;
When the door opens to the inside:
counter--;
if (counter == 0)
set status light = green;
The light would be green only when all pet are accounted for :)
Assuming of course they do not come in and out through another door; all bets are off in that case.