This is a simply complicated code that covers what most people would require in a fully automated incubator setup.
As with most controller that are using a 20x4 lcd most of the code is controlling the display or trying to save space. This should according to the compiler fit on a uno but was written on a mega.
The hardware:
4x20 display
keypad 4 button
1307 rtc
dht22 temp/humidity sensor
8 ohm speaker (optional)
5 relays arduino type (optional depending on settings)
micro switchs (optional depending on turner design)
uno or meg
so what does it do:
controls temp, humidity, turner, alarms and more (about 40 options)
link to library for rtc
main project write up including pictures will be posted on backyard chickens web site and linked back to here.
I will add the link when I have added all of the pictures and wiring diagrams there.
updated program please use incmaincode5.ino posted further down
I used a pin that was reserved in case you wanted to use a uno instead of a mega. Also there was a typo on one screen so I will be double checking my work and posting a update in the next few days. If you are using a mega then it shouldn't make much difference
update to fix pin usage for a uno: moved humidity relay to pin 10 to free up A4
added code to make the unit safe while in edit mode.
still looking for a hot spot probe that is plug and play as the DS18B20 requires some programming knowledge. I may just post a second code with this option for more advanced users
gpopl im working on device, thanks again for you job.
bugs found so far:
Clock can set false data as 30/2/2018 next day 00/3/2018 this preaphes are whit the rtc library.
good also are when set the clock by definition show the current data set_minute = constrain(set_minute, 1, 59); let say we are at minute 50 and want to set 52 already start in 50, i didnt find an solution.
missing some function to check the alarms values high lower temp; ex. set alarm high temp = 32Ç and lower 38 and the set_point are 37
i did this to set temp alarm
Hello. I want to start this chicken egg incubator project but i could not get the library working. I am novice on programming and i understand nothing on c++. Someone can help to have all this ds1307 library as .zip file then i can include it to my library folder. Or someone can help me how to have this working? Thanks in advance
Hi
I'm also a beginner but i can read the code, but ist is not so easy to change it.
on the beginning of the code there are the definitions of the Pin's. so i think that is the easy part to change it to your layout. First i try also to use a different display (Oled with I2c protocol) but it is not so easy.
It seems that the programmer didn't follow that project so it would be difficult. I would say to you, buy that display. It is easier.
Can you correct your Picture for the egg turner?
Here are some explanations from the programmer for the egg turner function.
DANILOOLIVEIRA:
Olá ... referente ao esquema elétrico fiquei na duvida de como montar ...Alguém consegui ?
Muito Obrigado
I cant read it (because Pourtoguese, i'm German), but i use google translator.
Wiring of the pins is written in the code, for the relais it must be clear what you have to do, other wise it could be to dangerous (high voltage)
C:\Users\Onsepro\Documents\Arduino\libraries\EEPROM\EEPROM.cpp:24:19: fatal error: debug.h: No such file or directory
Multiple libraries were found for "EEPROM.h" #include "debug.h"
^
compilation terminated.
Used: C:\Users\Onsepro\Documents\Arduino\libraries\EEPROM
Multiple libraries were found for "DHT.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\DHT-sensor-library-master
Multiple libraries were found for "DS1307.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\RTC_DS1307-master
Multiple libraries were found for "Wire.h"
Used: C:\Users\Onsepro\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\LiquidCrystal_I2C-master
exit status 1
Error compiling for board Arduino Due (Programming Port).
C:\Users\Onsepro\Documents\Arduino\libraries\EEPROM\EEPROM.cpp:24:19: fatal error: debug.h: No such file or directory
Multiple libraries were found for "EEPROM.h" #include "debug.h"
^
compilation terminated.
Used: C:\Users\Onsepro\Documents\Arduino\libraries\EEPROM
Multiple libraries were found for "DHT.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\DHT-sensor-library-master
Multiple libraries were found for "DS1307.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\RTC_DS1307-master
Multiple libraries were found for "Wire.h"
Used: C:\Users\Onsepro\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire
Not used: C:\Users\Onsepro\Documents\Arduino\libraries\Wire-master
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\Onsepro\Documents\Arduino\libraries\LiquidCrystal_I2C-master
exit status 1
Error compiling for board Arduino Due (Programming Port).
Can I have the link of libraries used in this project? I'm interested in making prototype of this, I have the hardwares but I don't know where I can find the libraries. Thanks in advance.
Can I have the link of libraries used in this project? I'm interested in making prototype of this, I have the hardwares but I don't know where I can find the libraries. Thanks in advance.
Hi, for all the people trying to copy this project and failing, it is expected. the code is not tailored towards an individual with a different setup. though the OP states in code that he has added many features we have to accept the fact that it is not beginner friendly.
Fortunately i have spent a good amount of time on this project. almost a year. just because it was my passion... i have found that the best way to recreate this project is to do it on your own while getting inspiration from the code.
I have set up a discord server where i can give you sufficient info about this project and we can solve the problems that are going to occur in the future... it is also a place for beginners to discuss ideas...i want people to produce real open source material regarding incubators. making incubators should not be this hard.
here's my discord link. drop by and say hi and ill try to help you out as much as i can.
I have also succeded in recreating this project. here is the video: