Every morning I walk outside to let my chickens out of their coop. Every night, I need to lock them back in to keep them safe from predators. Is there something I can rig up to automate this?

  • 6
    Even though technically feasible, do you really want an automatic closure without knowing if all the chickens are inside?
    – holroy
    Commented Nov 12, 2015 at 20:49
  • How far is it from inside your house to the coop? Is it part of the same building structure?
    – holroy
    Commented Nov 12, 2015 at 20:51
  • I have NEVER had to round up a straggler after dark–if the door closes after it gets dark, I am not concerned. The coop and run is behind my detached garage. Power is available.
    – adamdport
    Commented Nov 13, 2015 at 2:24
  • 2
    This doesn't seem like a common problem that requires out of the box thinking.
    – Carl
    Commented Nov 13, 2015 at 2:26
  • 3
    but many people have, it is common problem for people who have chickens
    – vladiz
    Commented Nov 16, 2015 at 9:07

6 Answers 6


I ended up using a power antenna from an old Volvo in the scrap yard. When it extends, the door opens, and when it retracts, the door closes. The antenna is powered by a 12V AC adapter, while the trigger wire is connected to a relay. The relay closes when power is sent to it from a WiFi smart plug, which means I can set schedules based on time and/or weather, and can even control it from my phone!

  • Nice solve. I was going to suggest modifying a wiper motor so it stops half way round but that power antenna is even better
    – Caius Jard
    Commented Oct 5, 2019 at 16:30

Since you do not worry that the chickens will be outside when you choose to have the door closed, as they are most likely inside already I have one suggestion to you: An automatic trap door.

If you make a sliding door which can be hoisted upwards, then you can have an active lifting mechanism to lift it in the morning, and release it down again in the evening (or automatically drop if power fails). This will also spare you the trouble of making sure it is properly shut, as gravity will keep it shut, and you can lift it a suitable amount using some electric motor.

Such devices can surely be bought, but should not be to hard to build if you are somewhat handy yourself. Depending on needs and wants, you can choose whether to make it fully automatic or if you want to have some remote control for it. Both are feasible, although not easily described within a post like this.

One option springing to mind is to have a timer giving power to a lifting circuit which would spin an engine lifting the door until it touches a circuit breaker when lifted high enough, but not releasing the tension on the spinning device until power is shut off (by the automatic timer).


install a small roller door (pedestrian size) with remote controlled opener.

  • I should have added that this isn't a solution to make the opening and closing "automatic", however it just needs a button press to open/close the door. fully automating the process could prove more complex than you'd like, as chickens roosting habits change with the seasons - they'll stay out longer in the summer due to more daylight hours, and head in to roost earlier in winter due to less daylight. accounting for this in your automation would be more effort than it's worth IMHO. a light sensor could help, but may cause problems on overcast days.
    – Adam
    Commented Nov 18, 2015 at 23:42

Have a cat flap type arrangement and add a small latch that is released with a small 5V solenoid. Fit a over large 24V solar panel (with LDO voltage regulator) to release the solenoid catch at dawn (orient the panel wisely towards winter dawn) even if overcast.

After the first hen is through the door you can have it stay open until roosting time when you swing it closed, as the sun sets the latch will lock at which point the hens are secure. Make the door open outward to deter visitors if roosting is before sunset and you have closed up but lock is still open. Solar panel should be pointing away from sunset side so unless you have bright overcast the panel should be receiving little evening light.

As a added benefit your night time security visit may allow you to unlock door to peek inside by illuminating solar panel with your torch.

  • 2
    Make sure it doesn't get opened by accident if e.g. a visitor's car shines its headlights on it.
    – RedSonja
    Commented Dec 3, 2015 at 13:35
  • You can add a weak magnetic catch to the door so wind will not open it in the evenings before the sun has fully set if you do not want to check on the chooks later.
    – KalleMP
    Commented Dec 23, 2015 at 23:16

Build a door similar to this on the picture below;

It is similar to the small doors for pets found on exterior house doors. I am not sure if the chickens will push the door with their heads to enter inside or go out. If this is the case, then you can put a sensor and a second stepper motor to open and close the door. Don't forget to wire the sensor also to the timer.

I bought one of this timers to use with my boiler. They are around 15-20$ on aliexpress. For the stepper motors, look inside of the old CD/DVD ROMs or Scanner / Printers. I don't think they are expensive. I think you can find sensors online. They must be cheap on sites like ebay or aliexpress.

Note: You may ask how to limit the rotation to 180*. Well, it may be done by setting the speed of the motor. The timer is not second-sensitive. The minimum time range between the On and Off is 1 minute. So the door should complete the 180* rotation in one minute. I know it is not easy to do without using electronics.

door timer


You can use some kind of controller to automate this task. For example Arduino. But you need some programming experience to do this.

You will need an electric motor which will move the door in both directions (open/close). And some sensors (like Hall effect sensor) which will detect if the door is closed or opened.

The door can be controlled with a timer or a sensor (photo resistor/transistors) which detects if it is day or night (depending on the light).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.