Hi guys/gals!
I am new to arduino and coding in general. Im been trying to complete my project but unfortunately im running out of time and its starting to seem a little out of my reach. My project is an Arduino Chicken Coop.
Here are the list of materials:
Arduino Mega 2560 R3 http://www.bitstoc.com/index.php?route=product/product&product_id=75
GSM Module Sim900 Blog - BITSTOC Electronics
Keypad 4x4 Matrix Blog - BITSTOC Electronics
Servo Motor TowerPro SG5010 (modified for continuous rotation) BITSTOC Electronics Parts Supply Cebu Arduino Raspberry Pi IoT Robotics Education
Servo Motor TowerPro SG5010 (standard) BITSTOC Electronics Parts Supply Cebu Arduino Raspberry Pi IoT Robotics Education
Ultrasonic Sensor HC-SR04 Blog - BITSTOC Electronics
Ultrasonic Sensor HC-SR04
DC 12V 3A Fan
Relay (for the fan) not bought
Incandescent Bulb not bought
Relay (for the bulb) not bought
DHT-11 Humidity Sensor [Blog - BITSTOC Electronics](BITSTOC Electronics Parts Supply Cebu Arduino Raspberry Pi IoT Robotics Education?
route=product/product&search=dht&product_id=83)
LCD 2x16 Character - white on blue backlit 5V BITSTOC Electronics Parts Supply Cebu Arduino Raspberry Pi IoT Robotics Education
RTC Module - DS1307 Blog - BITSTOC Electronics
Switching Power Supply - will use this to power everything, i dont know which pins to be used
http://www.gigahertz.com.ph/desktop-components/powersupply/trendsonic-lc-8600btx-600w.html
English is not my native language. I will try my best to explain what I'm trying to accomplish.
Door will open early in the morning and will close in the evening, I'm using a modified servo for this.
The feeder will dispense feeds in the morning and also in the afternoon. The user can input what time the door opens or closes or the feeder dispenses through the 4x4 keypad.For the feeder settings the user must input the number of chickens, so it can dispense the corresponding amount.If there are no inputs today, the previous settings are to used, if there are new inputs the previous are to be replaced. Water level and Food levels are determined using Ultrasonic Sensors, If the level is low it will send sms using gsm900 module. If the temperature inside the coop is too hot , the fan will turn on and if its in the normal range temp it will turn off, if the temperature is too cold the incandescent bulb will turn on, the bulb will turn off if the temp is in normal range, I will be using Heat Index for this. I want to able to open the the door or close it, or to dispense feeds by sending sms to the gsm module too.
From the start the 2X16 LCD should display
Month/Day/Year
Hours/Mins/Secs
However if any key is pressed it will will proceed to this
Enter Password:
After that
Welcome User
Enter Option:
if 1 is pressed, lcd will print Chicken Feeder, press 1 for Feed Am or press 2 for Feed Pm after input lcd will print settings saved
if 2 is pressed, lcd will print Coop Door, press 1 for Door Am or press 2 for Door Pm after input lcd print settings saved
if 3 is pressed View Reading, press 1 for for Food Level or press 2 for Water Level
if 4 is pressed Month/Day/Year
Hours/Mins/Secs
For opening the door here's my code
#include <Servo.h>
Servo myservo;
void setup()
{
myservo.attach(8);
}
void loop() {
myservo.write(0);
delay(10000);
myservo.detach();
}
for closing the door just replaced 0 with 180 in the myservo.write
the door works like this Chicken Coop Door Lock - YouTube
the feeder works like this - YouTube
Please post any questions and pricing estimates here or PM me with them. We can pay by PayPal.
Ive attached my incomplete code below. Due to some editing the code is messy and there are some part of the codes and libraries that arent supposed to be included.
Thanks in advance!
PROGRAM.ino (3.36 KB)