Lavatory Automation System Report Format
Lavatory Automation System Report Format
A PROJECT REPORT
Submitted by
NIDHIN S 711321107076
MITHUN RAAM 711321107114
VINITHKUMAR A S 711321107126
VIKASH B 711321107125
DEPARTMENT OF
ELECTRICAL AND ELECTRONICS ENGINEERING
NOV 2024
2
Abstract
3
TABLE OF CONTENT
4 SIMULATION 13
5 RESULT 15
6 CONCLUSION 16
4
CHAPTER 1
INTRODUCTION
5
1.1 Problem Statement:
1.2 Objective:
To design a smart irrigation system using IoT to monitor soil moisture, air
humidity, and temperature in real time, automate water distribution via a solenoid
valve, and enable remote monitoring and control through the Blynk app. The
system aims to optimize water usage, provide real-time alerts for critical
conditions, and enhance agricultural productivity and sustainability.
6
CHAPTER 2
SYSTEM REQUIREMENTS
7
2.2 Non-Functional Requirements for Smart Irrigation:
1. Reliability:
The system should operate reliably under normal conditions and in the
event of unexpected failures or disruptions.
It should have a low failure rate and be resilient to hardware or software
malfunctions.
The system should have built-in mechanisms for fault detection,
isolation, and recovery to minimize downtime.
2. Energy Efficiency:
The system should optimize energy usage throughout its operation,
including lighting, ventilation, and other components.
It should employ energy-saving features such as motion sensors to
control lighting and ventilation only when necessary.
Energy-efficient components and algorithms should be prioritized to
minimize overall power consumption.
3. Responsiveness:
The system should respond promptly to user inputs and environmental
changes.
It should have low latency in detecting user presence, adjusting settings,
and executing commands.
Responsive feedback mechanisms should be in place to confirm user
actions and provide real-time status updates.
4. Scalability:
The system should be capable of scaling to accommodate varying
numbers of users and lavatory facilities.
It should support modular expansion to add new features or integrate
with additional sensors and devices.
Scalability should be achieved without compromising performance or
reliability.
8
5. Security:
The system should prioritize the security and privacy of user data and
interactions.
It should implement robust authentication and authorization
mechanisms to prevent unauthorized access.
Data transmission and storage should be encrypted to protect sensitive
information from unauthorized disclosure or tampering.
6. Compatibility:
The system should be compatible with a wide range of hardware and
software platforms.
It should support standard communication protocols and interfaces to
facilitate integration with existing building systems and future
upgrades.
Compatibility testing should be conducted to ensure seamless
interoperability with different devices and environments
9
2.3 Hardware Requirements for Lavatory Automation:
1. ESP32 Microcontroller:
The ESP32 serves as the central processing unit, providing Wi-Fi
connectivity and sufficient GPIO pins for sensor interfacing.
Recommended models include Arduino Uno or Arduino Nano for their
versatility and ease of use.
Its low power consumption and dual-core processing capabilities make
it ideal for continuous operation in outdoor environments.
10
5. Relay Module:
A relay module controls the solenoid valve, acting as a switch to
automate water flow based on soil moisture levels.
It should be compatible with the ESP32 and capable of handling the
voltage and current of the solenoid valve.
The relay must have proper isolation to ensure safe operation.
6. Power Supply:
A stable and reliable power supply is essential to power the Arduino
microcontroller, sensors, ventilation fan, and lighting system.
Depending on the specific components used and the lavatory's power
infrastructure, options include batteries, AC adapters, or a combination
of both.
2. Arduino Libraries:
Relevant Arduino libraries need to be installed within the Arduino
IDE to interface with sensors and control external devices.
Libraries such as "DHT sensor library" for DHT11 temperature and
humidity sensor and "Arduino-IRremote" for infrared communication
with motion sensors may be required.
These libraries provide pre-written code and functions to simplify
programming tasks and facilitate interaction with hardware
components.
11
Software tools for calibrating sensors, such as temperature and
humidity sensors, may be necessary to ensure accurate readings.
Calibration software allows users to adjust sensor parameters and
offsets to compensate for environmental variations and improve
measurement accuracy.
4. Programming Languages:
Proficiency in programming languages such as C/C++ is required for
developing code for the Arduino microcontroller.
Knowledge of programming concepts such as variables, functions,
loops, and conditional statements is necessary for writing efficient and
reliable code.
12
CHAPTER 3
IMPLEMENTATION AND WORKING
Circuit diagram:
13
14
3.2 Hardware configuration:
The hardware configuration for the Smart Irrigation System involves the
installation and setup of components to ensure optimal performance in monitoring
and automating irrigation. The configuration includes:
ESP32 Microcontroller: Positioned centrally to connect with all sensors and the
solenoid valve, acting as the main processing and communication hub.
Soil Moisture Sensor: Installed at appropriate depths in the soil to measure
water content accurately, ensuring sensors are placed away from irrigation water
outlets to avoid false readings.
Air Humidity and Temperature Sensor (DHT22): Mounted in a shaded, open
area to provide accurate ambient readings without interference from direct
sunlight or irrigation water.
Water Flow Sensor: Configured in-line with the water supply to monitor flow
rates accurately, ensuring placement is secure to prevent leaks.
Relay Module: Connected to the ESP32 and the solenoid valve to control water
flow automatically based on soil moisture levels.
Solenoid Valve: Installed on the irrigation line to regulate water distribution
efficiently, ensuring proper alignment for seamless operation.
Power Supply: Set up to provide stable and reliable power to all components,
with provisions for backup power or solar energy where needed.
15
3.3 Software Configuration:
16
ARDUINO CODE USED FOR THE EXECUTION :
17
CHAPTER 4
SIMULATION
18
water flow sensors, and solenoid valve functionality. The ESP32 microcontroller
interacts with the simulated components to mimic real-world operations. All data
generated during the simulation is logged to the Blynk Cloud for real-time
monitoring and historical analysis.
19
Validation and Verification:
The simulation results are compared against predefined requirements to validate
the Smart Irrigation System's functionality. Any deviations are analyzed, and
adjustments are made to hardware configurations or software algorithms. Validation
ensures the system meets performance and reliability expectations under simulated
conditions. The use of cloud-stored data streamlines remote testing and iterative
improvements, ensuring the system's readiness for real-world deployment.
20
CHAPTER 5
RESULT
Temperature Sensor:
21
CHAPTER 6
CONCLUSION
Integration of the soil moisture sensor, temperature, and humidity sensors with
the ESP32 microcontroller enables precise and intelligent control, offering
reliability and user convenience. The addition of Blynk Cloud connectivity
supports real-time data logging, remote monitoring, and system control via a
mobile app, enhancing functionality and accessibility.
The system’s modular and scalable design facilitates easy adaptation for diverse
agricultural applications and future expansions. This project highlights the
practicality and effectiveness of IoT-driven automation for water conservation
and sustainable farming, laying a strong foundation for advanced agricultural
technologies.
22