Arduino Nano Based Weather Monitoring System with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano microcontroller interfaced with a KY-015 DHT11 temperature and humidity sensor, a rain sensor, and an LCD Display 16x4 with I2C interface. The circuit is designed to monitor environmental conditions such as temperature, humidity, and rainfall, and display the data on the LCD screen. The Arduino Nano serves as the central processing unit, reading sensor data and controlling the display output.
Component List
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2 to D13, VIN, 5V, A0 to A7, AREF, 3V3.
- Purpose: Acts as the central processing unit for the circuit, interfacing with sensors and the LCD display.
KY-015 DHT11 Temperature and Humidity Sensor
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: 5V, S (Signal), GND.
- Purpose: Measures ambient temperature and humidity.
Rain Sensor
- Description: A sensor that detects rainwater by measuring the resistance between two tracks.
- Pins: AO (Analog Output), DO (Digital Output), GRD, VCC.
- Purpose: Detects rainfall and provides a digital output.
LCD Display 16x4 I2C
- Description: A 16x4 character LCD display with an I2C interface.
- Pins: SCL, SDA, VCC, GND.
- Purpose: Displays the sensor data and other information.
Wiring Details
Arduino Nano
- GND connected to:
- LCD Display 16x4 I2C GND
- KY-015 DHT11 GND
- Rain Sensor GRD
- D2 connected to KY-015 DHT11 S (Signal)
- D3 connected to Rain Sensor DO (Digital Output)
- 5V connected to:
- LCD Display 16x4 I2C VCC
- KY-015 DHT11 5V
- Rain Sensor VCC
- A4 (SDA) connected to LCD Display 16x4 I2C SDA
- A5 (SCL) connected to LCD Display 16x4 I2C SCL
KY-015 DHT11 Temperature and Humidity Sensor
- 5V connected to Arduino Nano 5V
- S (Signal) connected to Arduino Nano D2
- GND connected to Arduino Nano GND
Rain Sensor
- DO (Digital Output) connected to Arduino Nano D3
- GRD connected to Arduino Nano GND
- VCC connected to Arduino Nano 5V
LCD Display 16x4 I2C
- SCL connected to Arduino Nano A5
- SDA connected to Arduino Nano A4
- VCC connected to Arduino Nano 5V
- GND connected to Arduino Nano GND
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes
- The provided code is a template and does not contain any functional code to operate the circuit. The setup and loop functions are placeholders for the user to fill in with the appropriate initialization and operational code.
- The code for the Arduino Nano should be expanded to initialize the I2C interface, read data from the DHT11 sensor and the rain sensor, and display the information on the LCD screen.
- Proper libraries for the DHT11 sensor and the LCD display should be included and utilized within the code.
- The code should include error handling to manage any potential communication issues with the sensors or the display.