Tech Thursday

System Architecture


Yes I know, why automate a chicken coop? Well we just wanted to do a starter home automation project and one thing led to another and now I have the fanciest chicken coop around. Spoiled chickens lay good eggs… It also is because I am a little lazy and don’t want to get up every morning to let the chickens out and go out each night to close the coop. So I automated a coop door actuator that runs on a timer (every morning the door opens, every night the door closes). While I was at it, added lights to fool the chickens biological clocks during winter by extending the days. The light is also actuated by a timer, but a light sensor is used to turn the lights off if there is enough daylight. I added a fan to exhaust the coop. The fan is run on a timer to exhaust the stink once a day for one hour. The fan will also come on if the temperature gets too hot or if the methane levels get high. So The following sensors are also used to control all of this: temperature, methane gas, smoke, and voltage. All of this is run automatically but can be run locally or via the internet! A small web page is served up if the IP address is typed into a browser. The SD card on the Arduino Ethernet shield stores the page. The web page shows the current status of the coop (temperatures, voltages, gas levels, lights on/off, fan on/off, door open/closed, etc. The web-page also allows you to manually turn on lights, fan, battery charger, or actuate the door. The router is set up to port forward the local IP address of the Arduino Mega Ethernet shield so the coop can be monitored and controlled locally or from anywhere with a internet connection. The Arduino Uno is used to push messages using a API called PushingBox. The Pushing Box notices can be set-up to send instant messages, emails, etc. priority can be set, etc. So notice is sent when the lights are turned on or off, etc. A high priority message is sent if smoke or methane levels are high, etc. For the most part the program just runs on its own with not need to interface, etc. with it. The lights come on and off each day and the door opens and closes, etc. with no problems or interaction. The Mega is synced with a NDT time server so it does not miss its cues. The chickens are happy and now that its finished, I dont have to do much at all. The water is automatic, just have to add feed every once in a while and collect the eggs each day!

System Architecture:

The figure shows the layout of the components that were used. All of these components were put in a NEMA box to keep it dry. I cut a opening for the LCD so I can see the messages, etc. Wired in few switches to run things manually. The block diagram is just listing the major components, things like fuses, terminal blocks, etc are not listed. There is a bunch that goes into home automation including messing with AC power which you should only mess with if you know what you are doing.

TT14-Chicken Coop System Diagram

System Components:

The components used are listed below. I ended up using two Arduinos because after many failed attempts I concluded you can not set up a Arduino to be a client and a server at the same time. If anyone has figured out how to do this, let us know because looking at other forums, etc. lots of other people have struggled with with same thing. All said and done including the actuators, enclosure, wire, terminal blocks, hardware, fuses, Ethernet Cables, etc. its probably about $600 worth of cool stuff.


chicken coop home automationchicken-coop main controls layoutchicken-coop front cover

Wrap Up:

Keep posted, we will be updating this in future posts to include the code, more details, etc.

#IOT #homeautomation #techthursday #arduino

  1. […] people and projects together. On our blog we’ve shared some of our personal projects like an automated chicken coop and a beer dispensing system, Let us know what you plan to do with your Arduino on our […]

  2. […] is a continuation of our Home Automation Chicken Coop – Part 1. This is Part 2 of a multi part posting of the chicken coop home […]

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

©2020 | All rights reserved.

Log in with your credentials


Forgot your details?

Create Account