IoT BASED HOME
AUTOMATION SOLUTION
Project Guide:- JAYALAXMI N.DHANYAL
Submitted By :- KUSHALL SHARMA
Second Year Student of GOVERNMENT COLLEGE OF ENGINEERING NAGPUR.
CONTENTS
WEEK WISE CONCEPTS LEARNED
• C programming
• IoT(Internet of Things)
• Embedded Systems
• Microcontroller
PROJECT
Design
Overview Objective Simulation Conclusion
Elements
C Programming (WEEK 1)
It is a general-purpose language , even though it is applied and used
effectively in various specific domains.
Structure of a Simple C program
Topics Learnt in C
Data type(char, int, float, double)
Modifier and Qualifier
Conditionals & Loops
Operators
Arrays & Pointers
Strings
Function
Storage classes
Pre-processor
INTERNET OF THINGS (IoT)
The Internet of things describes physical objects with sensors, processing
ability, software and other technologies that connect and exchange data
with other devices and systems over the Internet or other communications
networks.
INTERNET OF THINGS (IoT)
Applications Examples
HealthCare Wearable Health Monitors
Automobile Smart Cars
Logistic and Transport Smart buildings
Business Home Automations
EMBEDDED SYSTEMS
An embedded system is a combination of computer hardware and
software designed for a specific function
Embedded systems use the communication ports to transmit data between
the processor and peripheral devices -- often, other embedded systems --
using a communication protocol
Generally they comprise of a processor , power supply , memory and
communication ports.
Embedded System Structure
EMBEDDED SYSTEMS
Examples
CAT Scanners
Implanted Heart monitors
Electric Vehicles
Household appliances
MICROCONTROLLER
ADC block & DAC block
Timers and Counters
PWM
Processor, memory and I/O ports
Micro processor vs Micro Controller
RAM , ROM and Its types.
PROJECT
Overview
This Project provides IoT based home automation solutions using Arduino
UNO Board in picsimlab Simulator.
To Remotely Control the device we use a app named Blynk IoT.
We automated the Garden lights where they brighten according to
Sunlight
Temperature control System is automated.
Last and not least the Water tank is automated by controlling the inlet and
outlet valve respectively.
PROJECT
Objectives
Connect all the discussed home appliances to Arduino(Picsimlab) and
integrate it with Blynk IoT app and cloud.
Obtain critical notifications regarding temperature and water tank on the
Blynk IoT app.
Check the real time status of Temperature and Water level on The blynk IoT
app.
To Control garden lights automatically.
NEED FOR HOME AUTOMATION
If we focus on our daily life schedules there are many devices which are
not monitored , as we move to office , colleges and other places.
Thus to avoid such negligence and also to protect our houses from any
incident we can use automation.
We can control many home devices using automation few of them are
covered in this project.
ARDUINO UNO
Arduino UNO is a microcontroller board based on the ATmega328P.
It has 14 digital input/output pins 6 can be used as PWM outputs , 6
analogue I/O pins , a 16 MHz ceramic resonator, A usb connection, a
power jack an ICSP header and a reset button.
Arduino UNO board can be programmed using various IDEs we used
Arduino IDE for this project.
PICSIMLAB AND BLYNK IoT APP
Picsimlab is an open source real time emulator of development boards with
integrated MPLABX/avr-gdb debugger.
It has integration with Arduino ide for programming the board’s
microcontroller.
Blynk is an IoT platform for iOS or Android smartphones that is used to
control Arduino via internet.
We understood how to create new template , how to add a new device ,
how to add and select data stream.
How to create icon and include Blynk library.
LDR LIGHT DEPENDENT RESISTOR
LDRs are tiny light-sensing devices also known as photoresistors.
An LDR is a resistor whose resistance changes as the amount of light falling
on it changes.
The resistance of the LDR decreases with an increase in light intensity. This
property allows us to use them for making light sensing circuits.
The led lights are connected to the LDR via ADC. The ADC converts the
analog input by the LDR into its equivalent digital form which is converted
later by certain formula fro 0 to 255 as upper bound. Based on that we
glow the LED.
GARDEN LIGHTS CONTROL
The properties of LDR sensors are applied to accomplish the controlling of
garden lights.
During the day the outdoor light is maximum so the LDR sensor detects the
light and the garden light is turned off.
Whereas at the night the outdoor light is very low so the LDR sensor detects
the light and the light is turned ON.
TEMPERATURE SENSOR
The temperature is recorded using LM35 Sensor which reads analog values.
The value is converted into binary value and the later actual temperature is
calculated using the obtained value of voltage.
This sensor doesn’t requires any external calibration to provide accuracies
in result.
TEMPERATURE CONTROL SYSTEM
The temperature control system consist of heating resistor, an LM35
temperature sensor, and a cooler.
Analog value of temperature is obtained from the temperature sensor LM35
and display it on CLCD after converting it into digital value using ADC.
Control the temperature of the system by turning ON/ OFF the heater and
cooler through the BLYNK IoT app.
The feature of this system is that as the temperature reaches 35 degree
Celsius heater turns off automatically to avoid more heating. The
notification of the same is displayed in the terminal of Blynk IoT.
WATER INLET AND OUTLET VALVE CONTROL
Read the volume of the water in the tank through Serial Communication
and display it on the CLCD.
control the volume of the water in the tank by controlling the inlet and
outlet valve, by sending commands through serial communication. Display
the volume of water in the tank on the CLCD and also on Blynk IoT app.
Here the main feature is that as soon the tank is full the inlet valve is turned
off and when the water level in the tank is below 2000 Litres the inlet valve is
turned on automatically and the notification for same is provided on the
terminal of Blynk App.
SIMULATION IMAGE
CONCLUSION
Using BLYNK IoT application and Picsimlab simulator, We simulated home
automation, where LED, temperature system, Serial tank resembles Light,
Heater, Cooler and Water tank in real time.
CLCD acts like a dash board used for displaying the events, Widgets from
Blynk Iot app like button widgets are used to control heater, cooler and
inlet valve, outlet valve.
Gauge widgets to display the temperature and volume of the water.
Hence the project provides perfect solution for Home automation.