Introduction: Remote Control Pet Door

Picture of Remote Control Pet Door

The Dilemma:

6AM the morning of January 1st. You partied until 3AM. Now you're sleeping it off when you are awakened by an insistent scratching coming from the back door. Your dog needs to go outside and take care of his business, but you're warm, comfortable, and the floor is cold and uninviting.

WHAT DO YOU DO!?!?

Well if you had planned ahead you reach from under the covers for your smart phone or tablet on your night stand. You open your web browser and go to 192.168.1.107 and select the 'Unlock' option and click submit. The pet door unlocks, doggie goes into the back yard and you go back to sleep.

Remote Control Pet Door to the rescue!

Step 1: What You Need

Picture of What You Need

This Remote Control Pet Door project is based on the LinkIt One by MediaTek..

The LinkIt ONE development platform is an open source, high performance board for prototyping Wearables and IoT devices. It is based on the world's leading SoC for Wearables, MediaTek Aster (MT2502) combined with high performance Wi-Fi (MT5931) and GPS (MT3332) chipsets to provide you with access to all the features of MediaTek LinkIt. It also provides similar pin-out features to Arduino boards, making it easy to connect various sensors, peripherals, and Arduino shields.

Parts:

  • LinkIt One
  • Servo - Size can depend on power needed to open the door you make.
  • Assorted hardware and hand tools
  • And you'll need a Smart phone, tablet or laptop computer. Something that has a web browser.

Step 2: Build Ideas

Picture of Build Ideas

To put this together you can really build any way you want. Whatever works for you. You could place a tall narrow piece of plywood into your partially open sliding glass door with the pet door cut into it. Or cut a hole in your back door if it is wooden. I'll leave that up to you and concentrate on the mechanics of the project.

I've added some photos of my mock up build to give you an idea of what I think can be done.

Step 3: Code

Picture of Code

A couple of videos taken during testing are added to show the locking/unlocking operation.

Wiring it up.

  • Run red/orange wire from servo to 5v pin on LinkIt One (LIO)
  • Black/brown wire from servo goes to the ground pin on the LIO
  • Yellow/Orange signal wire from the servo Yellow/Orange goes to pin 9 on the LIO


Here's the code. I have set the degrees that the arm will rotate at angles that work for my mock up. You will have to do some work setting them to the specific angles you will need to make your door work.

In the code you will have to change where it says "Your Network" to the name of your WiFi network, as well as add your password, and also what type of network security you have such as WPA or WEP. You are using encryption on your WiFi right?

#define WIFI_AP "Your Network"
#define WIFI_PASSWORD "Your Password"
#define WIFI_AUTH LWIFI_WPA // choose from LWIFI_OPEN, LWIFI_WPA, or LWIFI_WEP according to your WiFi AP configuration

To see the web page interface in your web browser you use the LIO IP in the browser's address field. You can find the IP of the page/LIO using the serial monitor in the Arduino IDE or log into your router and check that way as well.

Comments

Cliffystones (author)2016-03-11

I'm impressed with your door, and how much DIY tech has advanced over the years. 20 years ago my wife and I adopted 2 Pomeranian Puppies. We both worked full time, and had to be out the door before daylight. I needed some way to let the Poms out, but not at 5:30 AM! So I bought a standard electromechanical lighting timer and one of those magnetic door locks. Set the timer to turn off at 9:30am. The door opened like a draw bridge with the hinges at the bottom. I added an SPST doorbell switch to manually open it. Now you need to design a remote system that will clean up the poop :).

cortezsquad (author)2016-01-04

which servo did you use on this project?

Hello cortezsquad. I used a MG995 Servo in this Instructable. I've been thinking on improvements and possibly a worm gear servo might be better to use in a stronger dead-bolt design.

Something like this:

http://www.ebay.com/itm/New-Sanyo-2-phase-4-wire-Stepper-motor-Screw-Slider-DIY-/201320833908?hash=item2edfa82374

About This Instructable

745views

15favorites

License:

Bio: Electronics have always been fascinating to me. Things that get my attention are clocks, lamps, motion activated devices, light activated devices, laser intruder alert systems ... More »
More by Volthaus Electronics Laboratory:Adeept TM1638 LED 4-Digit 7 Segment Digital Display ModuleRemote Control - Bluetooth - Arduino - AndroidRPi
Add instructable to: