hey chicken! coop automation project

coop hey chicken 800px
I’m tired of trudging through the snow in my pjs during cold, dark mornings to let the chickens out at sunrise. I’m also tired of rushing home in the evenings to shut their pop hole and worrying about the wild temperature swings we have here in the Front Range. So, I’m finally doing what I’ve been threatening to do for some time now: automate the chicken coop!! What will that look like?

design drawing 600x800

Our design uses an Arduino Uno + Wifi Shield + various sensors to detect the state of the coop like temperature, light, and whether the chickens are roosting to ultimately determine what the door and heater should be doing at that moment. The Arduino controls the motor that opens and closes the pop hole door and switches the heater on and off. A server application running on an iMac controls the Arduino wirelessly over the local network. The server functions as the “brains” of the operation and runs the automation based on the coop conditions the Arduino is reporting. I also plan on creating an iOS app to remotely monitor and control the coop via the server.

Luckily, I have a great group of folks who are working with me on this project – Jason in Oakland and my husband Nathan. We are collaborating and sharing our work on github.

Hardware list (so far):

Here are the pin assignments, although these may change. Yikes! Running out of I/O…
heyChicken PinoutDevelopment will proceed in 5 phases:

  1. Enable sensors (in progress): We’ve got a breadboard prototyping shield and have the temperature sensors working. Wifi is also up and running. The enclosure consists of some cruddy tupperware:

    hardware

  2. Data gathering: Write a server daemon to request sensor data from the coop and store it in a SQL database. Generate plots for analysis. I’m interested in the light measurements vs. time all the birds have settled on the roost vs. what time the internet says the sun sets/rises vs. the weather conditions (i.e. sun/clouds/rain/snow) vs. the inside/outside temperatures.
  3. Construct the door assembly: Build pop hole door which will slide or rotate (vertical operation will require some additional mechanism to hold it in the open position). Connect motor, motor controller, and bumper sensors to operate the door. No locking mechanism is required since this door is inside of the closed run.
  4. Automation: Derive robust algorithms for opening and closing the door and operating the heater (thermostat). Implement on the server side. Detect and log error conditions. Send SMS messages on errors.
  5. iOS control app: Write an iOS application that serves as a control panel for the door/heat and associated automation, as well as displays current webcam images (cams already installed).
    heyChicken iOS sketch

That’s it! Now back to work…

Advertisement

9 Comments

  1. Since you may be able to use AC motors, Surplus Center may be a good place to look http://www.surpluscenter.com/Electric-Motors/ . I’ve one of their AC gearmotors on my original (20 years old) coffee roaster. They have linear actuators too but all are DC…… maybe that’s the only flavor that they come in???

    I’ve always found their prices to be reasonable.

    Reply

  2. […] Hey Chicken! Coop Automation: The Hey Chicken! project seeks to solve the age old problem of ensuring your backyard flock is safe and cozy, even when you are away from home. Our design uses an Arduino Uno, Wifi Shield, and various sensors to detect the state of the coop like temperature, light, and whether the chickens are roosting to ultimately determine what the door and heater should be doing at that moment. A server on the local network functions as the “brains” of the operation and wirelessly runs the automation based on the coop conditions the Arduino is reporting. Of course, this project would not be complete without a remote control panel iOS app that can be used to control the chicken door and heater, or just to spy on your flock via a coop webcam. […]

    Reply

  3. […] Hey Chicken! was a hit with young and old alike. Our rubber chicken assistants kept the itty bitties entertained and made great stand-ins for demo’ing the roost bar pressure sensor. We put the light sensor in a shoebox with a removable lid to create a night and day simulator. Our goal was to create an interactive exhibit where folks could modulate the sensor inputs and observe their effects on the automatic door operation. Since operating the flat panel heater wouldn’t be very exciting, I repurposed the PowerTail to control the lights, including a globe light dressed up to look like a sun. It turned on when it was “day time” and off for “night time”. […]

    Reply

  4. […] Hey Chicken! Coop Automation: The Hey Chicken! project seeks to solve the age old problem of ensuring your backyard flock is safe and cozy, even when you are away from home. Our design uses an Arduino Uno, Wifi Shield, and various sensors to detect the state of the coop like temperature, light, and whether the chickens are roosting to ultimately determine what the door and heater should be doing at that moment. A server on the local network functions as the “brains” of the operation and wirelessly runs the automation based on the coop conditions the Arduino is reporting. Of course, this project would not be complete without a remote control panel iOS app that can be used to control the chicken door and heater, or just to spy on your flock via a coop webcam. […]

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s