Arduino Automatic Chicken Coop Door

Arduino Automatic Chicken Coop Door

prusaprinters

<p>This is Arduino automatic chicken coop door project.</p> <p>It works by opening and closing the chicken coop at a scheduled time to keep the chickens safe at night.</p> <p>YouTube video <a href="https://youtu.be/wA41INhYDWQ">https://youtu.be/wA41INhYDWQ</a></p> <p>Parts I used:</p> <p>1x Arduino Nano</p> <p>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).</p> <p>1x Real-Time Clock Module (DS3231)</p> <p>2x Relay module.I used those <a href="https://pl.aliexpress.com/item/32909882481.html?spm=a2g0o.productlist.0.0.13b87282eUdcTK&amp;algo_pvid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30&amp;algo_expid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30-2&amp;btsid=0b0a187b15966948127254604e4a32&amp;ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_">https://pl.aliexpress.com/item/32909882481.html?spm=a2g0o.productlist.0.0.13b87282eUdcTK&amp;algo_pvid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30&amp;algo_expid=dc7d0e17-5a6d-43dc-afdd-a59ea1219c30-2&amp;btsid=0b0a187b15966948127254604e4a32&amp;ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_</a></p> <p>1x 12V Actuator (I used this one <a href="https://www.elektrobim.pl/sklep/silownik-elektryczny-super-power-jack-mini-12v/?attribute_pa_maksymalny-wysuw=harl1206-15-cm&amp;dTribesID=f05ca3ff0ce47eacdea3b64b72ba584d%7Cadtribes%7C254354&amp;utm_source=Google%20Shopping&amp;utm_campaign=Google%20Merchant%20B&amp;utm_medium=cpc&amp;utm_term=254354&amp;gclid=CjwKCAjwsan5BRAOEiwALzomX8EV-lF_khbAD8QrT8ya8AShBeDV4eWin5nvwz8bzQMSRgCUAHsCrhoCUB4QAvD_BwE">https://www.elektrobim.pl/sklep/silownik-elektryczny-super-power-jack-mini-12v/?attribute_pa_maksymalny-wysuw=harl1206-15-cm&amp;dTribesID=f05ca3ff0ce47eacdea3b64b72ba584d%7Cadtribes%7C254354&amp;utm_source=Google%20Shopping&amp;utm_campaign=Google%20Merchant%20B&amp;utm_medium=cpc&amp;utm_term=254354&amp;gclid=CjwKCAjwsan5BRAOEiwALzomX8EV-lF_khbAD8QrT8ya8AShBeDV4eWin5nvwz8bzQMSRgCUAHsCrhoCUB4QAvD_BwE</a> ) but I am pretty sure that actuators from aliexpress will work as well.</p> <p>1x 12v to 5v Buck Converter MP1584</p> <p>Arduino sketch</p> <p>int Relay = 4;</p> <p>int Relay2 = 5;</p> <p>DS3231 rtc(A4, A5);</p> <p>Time t;</p> <p>const int OnHour = 13;</p> <p>const int OnMin = 40;</p> <p>const int OffHour = 13;</p> <p>const int OffMin = 41;</p> <p>const int OnHour2 = 13;</p> <p>const int OnMin2 = 42;</p> <p>const int OffHour2 = 13;</p> <p>const int OffMin2 = 43;</p> <p>void setup() {</p> <p>Serial.begin(115200);//Optional</p> <p>rtc.begin();</p> <p>pinMode(Relay, OUTPUT);</p> <p>digitalWrite(Relay, HIGH);</p> <p>pinMode(Relay2, OUTPUT);</p> <p>digitalWrite(Relay2, HIGH);</p> <p>}</p> <p>void loop() {</p> <p>t = rtc.getTime();</p> <p>Serial.print(t.hour);//Optional</p> <p>Serial.print(" hour(s), ");//Optional</p> <p>Serial.print(t.min);//Optional</p> <p>Serial.print(" minute(s)");//Optional</p> <p>Serial.println(" ");//Optional</p> <p>delay (1000);</p> <p>if(t.hour == OnHour &amp;&amp; t.min == OnMin){</p> <p>digitalWrite(Relay,LOW);</p> <p>Serial.println("LIGHT ON");//Optional</p> <p>}</p> <p>else if(t.hour == OffHour &amp;&amp; t.min == OffMin){</p> <p>digitalWrite(Relay,HIGH);</p> <p>Serial.println("LIGHT OFF");//Optional</p> <p>}</p> <p>if(t.hour == OnHour2 &amp;&amp; t.min == OnMin2){</p> <p>digitalWrite(Relay2,LOW);</p> <p>Serial.println("LIGHT ON2");//Optional</p> <p>}</p> <p>else if(t.hour == OffHour2 &amp;&amp; t.min == OffMin2){</p> <p>digitalWrite(Relay2,HIGH);</p> <p>Serial.println("LIGHT OFF2");//Optional</p> <p>}</p> <p>}</p> <p>If you have any questions</p> <p>basementcreationsemail@gmail.com</p> <p><a href="https://cults3d.com/en/users/BasementCreations/creations">https://cults3d.com/en/users/BasementCreations/creations</a></p> Category: DIY

Download Model from prusaprinters

With this file you will be able to print Arduino Automatic Chicken Coop Door with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Arduino Automatic Chicken Coop Door.