Arduino UNO-Based Smart Climate Control System with I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with various components including a 16x2 I2C LCD, a DHT 11 sensor, a fan, a humidifier, and an L298N DC motor driver. The circuit is designed to control the fan and humidifier based on sensor readings and display relevant information on the LCD.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
Fan
- Description: A simple DC fan.
- Pins: GND, 5V
DHT 11
- Description: A digital temperature and humidity sensor.
- Pins: VCC, GND, DATA
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
Humidifier
- Description: A device that adds moisture to the air.
- Pins: GND, 5V
Wiring Details
Arduino UNO
- Vin: Connected to 5V pin of L298N DC motor driver and VCC pin of DHT 11.
- GND: Connected to GND pins of L298N DC motor driver, DHT 11, Humidifier, and 16x2 I2C LCD.
- 5V: Connected to VCC pin of 16x2 I2C LCD.
- A4: Connected to SDA pin of 16x2 I2C LCD.
- A5: Connected to SCL pin of 16x2 I2C LCD.
- D11: Connected to IN2 pin of L298N DC motor driver.
- D10: Connected to IN1 pin of L298N DC motor driver.
- D9: Connected to ENA pin of L298N DC motor driver.
- D7: Connected to DATA pin of DHT 11.
16x2 I2C LCD
- VCC: Connected to 5V pin of Arduino UNO.
- GND: Connected to GND pin of Arduino UNO.
- SDA: Connected to A4 pin of Arduino UNO.
- SCL: Connected to A5 pin of Arduino UNO.
Fan
- GND: Connected to OUT1 pin of L298N DC motor driver.
- 5V: Connected to OUT2 pin of L298N DC motor driver.
DHT 11
- VCC: Connected to Vin pin of Arduino UNO.
- GND: Connected to GND pin of Arduino UNO.
- DATA: Connected to D7 pin of Arduino UNO.
L298N DC Motor Driver
- 5V: Connected to Vin pin of Arduino UNO.
- GND: Connected to GND pin of Arduino UNO.
- IN2: Connected to D11 pin of Arduino UNO.
- IN1: Connected to D10 pin of Arduino UNO.
- ENA: Connected to D9 pin of Arduino UNO.
- OUT1: Connected to GND pin of Fan.
- OUT2: Connected to 5V pin of Fan.
- 12V: Connected to 5V pin of Humidifier.
Humidifier
- GND: Connected to GND pin of Arduino UNO.
- 5V: Connected to 12V pin of L298N DC motor driver.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)