Chicken Coop Door powered by esp8266
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Chicken Coop Door

powered by esp8266

The controller will sync the date/time from a GPS or using a NTP server. If you have a GPS, the controller will get the coordinates of the place to calculate the sunrise and sunset.

The door opens automatically at sunrise and closes one hour after the sunset.

Here is the code


If you use a GPS, the coordinates will be updated automatically The coordinates are used to calculate the sunrise/sunset time. If you are not using a gps, replace the values of:

float latitude = 44.9308; float longitude = -123.0289;

with your own values.

At first boot, you'll have to connect to the Access Point created by the esp8266 (go to and configure your wifi network.

After esp8266 connects to your wifi, open in your browser the IP assigned, for the available commands.

Main Page


The code allows the "coop door" to run connected to your wifi, or as stand alone in AP mode.

Wifi Mode



The esp8266 controller commands a servo modified for continuous rotation to lift and lower a door (with two relays to reverse the rotation direction). The door mechanism is using pulleys (F/3), that way the servo doesn't have to work too hard.

Click on the image below to see a video of the door operating:

Coop door video

Everything is powered by a 10 Watt 12 Volt solar panel

Solar panel