Introduction: Remote Control Pet Door
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
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.
- 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
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
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.
We have a be nice policy.
Please be positive and constructive.