Arduino Automatic Chicken Coop Door

This is Arduino automatic chicken coop door project. It works by opening and closing the chicken coop at a scheduled…
30
23
0
1665
updated March 30, 2022

Description

PDF

This is Arduino automatic chicken coop door project.

It works by opening and closing the chicken coop at a scheduled time to keep the chickens safe at night.

YouTube video https://youtu.be/wA41INhYDWQ

Parts I used:

1x Arduino Nano

1x 12v 5A power supply (110mm x 80mm x 35mm).5A is probably to much so 2A power supply should work as well (My actuator uses max 1.5A).

1x Real-Time Clock Module (DS3231)

2x Relay module.I used those https://pl.aliexpress.com/item/32909882481.html?spm=a2g0o.productlist.0.0.13b87282eUdcTK&algo_pvid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30&algo_expid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30-2&btsid=0b0a187b15966948127254604e4a32&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

1x 12V Actuator (I used this one https://www.elektrobim.pl/sklep/silownik-elektryczny-super-power-jack-mini-12v/?attribute_pa_maksymalny-wysuw=harl1206-15-cm&dTribesID=f05ca3ff0ce47eacdea3b64b72ba584d%7Cadtribes%7C254354&utm_source=Google%20Shopping&utm_campaign=Google%20Merchant%20B&utm_medium=cpc&utm_term=254354&gclid=CjwKCAjwsan5BRAOEiwALzomX8EV-lF_khbAD8QrT8ya8AShBeDV4eWin5nvwz8bzQMSRgCUAHsCrhoCUB4QAvD_BwE ) but I am pretty sure that actuators from aliexpress will work as well.

1x 12v to 5v Buck Converter MP1584

Arduino sketch

int Relay = 4;

int Relay2 = 5;

DS3231 rtc(A4, A5);

Time t;

const int OnHour = 13;

const int OnMin = 40;

const int OffHour = 13;

const int OffMin = 41;

const int OnHour2 = 13;

const int OnMin2 = 42;

const int OffHour2 = 13;

const int OffMin2 = 43;

void setup() {

Serial.begin(115200);//Optional

rtc.begin();

pinMode(Relay, OUTPUT);

digitalWrite(Relay, HIGH);

pinMode(Relay2, OUTPUT);

digitalWrite(Relay2, HIGH);

}

void loop() {

t = rtc.getTime();

Serial.print(t.hour);//Optional

Serial.print(" hour(s), ");//Optional

Serial.print(t.min);//Optional

Serial.print(" minute(s)");//Optional

Serial.println(" ");//Optional

delay (1000);

if(t.hour == OnHour && t.min == OnMin){

digitalWrite(Relay,LOW);

Serial.println("LIGHT ON");//Optional

}

else if(t.hour == OffHour && t.min == OffMin){

digitalWrite(Relay,HIGH);

Serial.println("LIGHT OFF");//Optional

}

if(t.hour == OnHour2 && t.min == OnMin2){

digitalWrite(Relay2,LOW);

Serial.println("LIGHT ON2");//Optional

}

else if(t.hour == OffHour2 && t.min == OffMin2){

digitalWrite(Relay2,HIGH);

Serial.println("LIGHT OFF2");//Optional

}

}

If you have any questions

basementcreationsemail@gmail.com

https://cults3d.com/en/users/BasementCreations/creations

Category: DIY

Tags



Model origin

The author marked this model as their own original creation. Imported from Thingiverse.

License


Highlighted models from creator

View more