Automated Dog House
![1.jpg](/proxy/?url=https://content.instructables.com/FDR/LMBZ/IYYT7N1S/FDRLMBZIYYT7N1S.jpg&filename=1.jpg)
![2.jpg](/proxy/?url=https://content.instructables.com/FXK/73CD/IYYT7N21/FXK73CDIYYT7N21.jpg&filename=2.jpg)
![3.jpg](/proxy/?url=https://content.instructables.com/FVG/3E9W/IYYT7N23/FVG3E9WIYYT7N23.jpg&filename=3.jpg)
![4.jpg](/proxy/?url=https://content.instructables.com/FSE/PY0C/IYYT7N2D/FSEPY0CIYYT7N2D.jpg&filename=4.jpg)
Home automation, Smart house, Smart home and so on.. all of these are related to us HUMANS.. I thought why don't i try something for animals.. like a smart home for dog, since they are close friends with us :D. This project demonstrates the implementation of a smart house dedicated to fit the needs of a normal DOG :/ ( lucky dogs only ).
I will go into steps from identifying the needs to be automated, configuration, planning, architecture and building process.
Identifying the Needs of the Dog, WHAT CAN BE Automated ?
So a dog will need a place to rest in during day or night ( depending on its schedule ).
Needs can be automated:
- Small dark house to sleep in
- Warm space during winter (for countries that has big change in temperatures such as -Turkey, Cyprus,.. -between summer and winter )
- Fresh air during summer inside the place ( so lucky dog )
- Food & water
- Lighting ( this is not a need but i added it :D )
Automation System Planning
![System architecture.png](/proxy/?url=https://content.instructables.com/FNH/PTKL/IYYT7JZ3/FNHPTKLIYYT7JZ3.png&filename=System architecture.png)
![Heating system.png](/proxy/?url=https://content.instructables.com/FVF/21HP/IYYT7K29/FVF21HPIYYT7K29.png&filename=Heating system.png)
![Light control.png](/proxy/?url=https://content.instructables.com/F2S/E2LG/IYYT7K2A/F2SE2LGIYYT7K2A.png&filename=Light control.png)
![System flow.png](/proxy/?url=https://content.instructables.com/F9I/3RQ2/IYYT7K2C/F9I3RQ2IYYT7K2C.png&filename=System flow.png)
![system flowchart.png](/proxy/?url=https://content.instructables.com/FY9/QHZE/IYYT7K2E/FY9QHZEIYYT7K2E.png&filename=system flowchart.png)
The system is built with a way that the owner will be able to configure the settings via android application in real time. such configurations could be:
- Number of meals per day
- Temperature must be saved inside the house
In the figures (diagrams) the system architecture, system flow, sub-systems architectures are self explanatory. (take a look)
The diagrams background is transparent, you may have to download in order to see well
Building Process: Hardware
![20160917_180411.jpg](/proxy/?url=https://content.instructables.com/F7X/99JA/IYYT7MF5/F7X99JAIYYT7MF5.jpg&filename=20160917_180411.jpg)
![20160920_185131.jpg](/proxy/?url=https://content.instructables.com/FA4/YZGR/IYYT7MFE/FA4YZGRIYYT7MFE.jpg&filename=20160920_185131.jpg)
![20160920_185144.jpg](/proxy/?url=https://content.instructables.com/FAS/8KHB/IYYT7MFT/FAS8KHBIYYT7MFT.jpg&filename=20160920_185144.jpg)
![20160924_004359.jpg](/proxy/?url=https://content.instructables.com/FPM/DKTK/IYYT7MG5/FPMDKTKIYYT7MG5.jpg&filename=20160924_004359.jpg)
![20160924_013407.jpg](/proxy/?url=https://content.instructables.com/FC6/JBCC/IYYT7MGV/FC6JBCCIYYT7MGV.jpg&filename=20160924_013407.jpg)
![20160924_024249.jpg](/proxy/?url=https://content.instructables.com/FH2/FQQU/IYYT7MIZ/FH2FQQUIYYT7MIZ.jpg&filename=20160924_024249.jpg)
![20160924_033444.jpg](/proxy/?url=https://content.instructables.com/FY6/BB8E/IYYT7MSK/FY6BB8EIYYT7MSK.jpg&filename=20160924_033444.jpg)
Okey so i have to build the thing after i have planned. Unfortunately in this place where i live there is no available affordable material for DIY projects so i was digging in the near by rubbish looking for cartoon, plastics which can be used in this project as RECYCLING material :D. I have found 2 big cartoons of TVs and some other small ones in addition to some other plastics. Bending the stuff and gluing them to obtain the shape of a small dog house :D. So with this i have finished 50% of the project.. then distributing the sensors around and wiring cables...
For the heat system, i fixed a damaged one found in between the rubbish and put it in a box and plug it to the house through a duct.
For the food system (here i did something nice ) i obtained 2 bottles of water empty them and open a hole in the bottle cover. I bought a siring removed the damper from it and wire it with a rope then plug it into the bottle cover in a way that if you pulled the rope, the goods will run out of the bottle and if you release it, it will close ( NOTE: bottle mounted upside down)...
Polish the house with green.
Building Process: Software
So far so good. I will explain the main mechanism and i will link to the code.
The house is working in ideal process:
- Dog is inside
- If temperature not as what we configured
- Run the heating system to optimize the weather inside
- if food time:
- dispense some amount in the bowl
- notify the dog by vibrating the house ( LOL )
- If temperature not as what we configured
- If night:
- Turn on outside lights
- if user connected to the house via mobile application:
- Update paramters
- restart the house system to commit changes
Code: I have used some pre-built libraries i have done in previous instructables such as the stepper motor driver, and serial command extractor as well as i used a timer library to schedule the events in order organize the senors and actuators jobs