Incubator-Set-up
Incubator-Set-up
Incubator-Set-up
Gather and understand the components you'll need for the project. These include:
Break down the system into manageable modules for better understanding:
1. Connect the LCD's SDA and SCL pins to the Arduino’s respective I2C pins (e.g., A4 for SDA and A5 for
SCL on an Uno).
2. Power the LCD with 5V and GND.
Arduino: 5V
Fan: 12V
Bulb and Motor: 220V through relays.
Using software like Fritzing, Tinkercad, or manual drawing, map the connections. Include:
1. Power connections.
2. Sensor connections.
3. Relay modules.
4. High-voltage devices.
5. LCD and Arduino connections.
SET-UP
Here is a sample Arduino program for your Automatic Arduino-Controlled Incubator. This
program includes temperature and humidity monitoring, relay control for the bulb, fan, and
stepper motor, and LCD display functionality.
Assumptions:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DHT.h>
#define DHTPIN 2
// Define LCD
LiquidCrystal_I2C lcd(0x27, 16, 2); // Adjust the I2C address (0x27 or 0x3F)
// Relay pins
// Thermistor parameters
void setup() {
Serial.begin(9600);
dht.begin();
// Initialize LCD
lcd.begin();
lcd.backlight();
pinMode(bulbRelay, OUTPUT);
pinMode(fanRelay, OUTPUT);
pinMode(motorRelay, OUTPUT);
digitalWrite(bulbRelay, LOW);
digitalWrite(fanRelay, LOW);
digitalWrite(motorRelay, LOW);
// Welcome message
lcd.setCursor(0, 0);
lcd.print("Incubator Ready");
delay(2000);
lcd.clear();
void loop() {
lcd.setCursor(0, 0);
lcd.print("Temp: ");
lcd.print(temperature, 1);
lcd.print("C");
lcd.setCursor(0, 1);
lcd.print("Humidity: ");
lcd.print(humidity, 1);
lcd.print("%");
} else {
if (millis() % 3600000 < 5000) { // Activate motor for 5 seconds every hour
digitalWrite(motorRelay, HIGH);
} else {
digitalWrite(motorRelay, LOW);
}
// Delay for stability
delay(2000);
float readThermistor() {
float steinhart;
return steinhart;
}
PROJECT KEY POINTS:
Key Points:
1. Temperature Control:
o The bulb turns on when the temperature drops below the minimum threshold and
turns off when it exceeds the maximum.
2. Fan Control:
o The fan activates if the temperature exceeds the fan threshold.
3. Motor Control:
o The motor turns on periodically to simulate egg turning.
4. LCD:
o Displays real-time temperature and humidity data.