You are on page 1of 34

IOT Maj.

PROJECT

IOT CONTROLLED SMART HOME

DONE BY: Parv Arora(179403041)


What is IOT Home Automation?

● ‘Internet of Things’ is an umbrella term used for all technologies that enable the
connection of a device to the Internet.The Internet of Things (IoT) describes the
network of physical objects—“things”—that are embedded with sensors, software,
and other technologies for the purpose of connecting and exchanging data with
other devices and systems over the internet.
● In a simple example, consider a smart kettle. The kettle can be programmed to
automatically turn off once it reaches a specific temperature. It might also send a
notification to the user on the same.
● Now apply the same concept to the entire home and all the devices present. That is smart
home powered by IoT. Instead of manually going up to the device and taking action, those
actions can be taken at the press of a button.
● These days, most smart IoT home automation devices allow you to control them via an
app or even via voice commands.
WHY IOT?

● Ability to remotely monitor and control devices for peace of mind.

● Improve energy efficiency of household devices.

● Extends lifecycle for products, through the ability to update.

● Ability to integrate multiple connected products for improved customer


experience.

● Ability for products to manage themselves.


Problem Statement
IoT controlled smart home

1. Your Home should maintain an optimum temperature for your pets. And
Setup a Google assistant applet from IFTTT to trigger a web request which
will update a field in ThingSpeak cloud. Then read the data from ThingSpeak
cloud using arduino to control the appliances in your home from anywhere
in the world.
Ex:- From your mobile phone, if you say- “ok google” Turn on the light”
from anywhere, it should turn on the light in your home.

2. Voice controlled robot using Arduino / Application Controlled


i. Robot should be controlled by the given voice commands from the
phone. The voice is transferred from the mobile phone application to
the Bluetooth module connected to the Arduino.
ii. Based on the commands for ex: If we say “10 forward” the robot
should move 10 centimetres forward.
iii. Without using ultrasonic Sensor.
EXPLANATION 1
This project is based on Home Automation System , in which a
house will always maintain a specific temperature for Pets and a
command from the Google Assistant will switch on the lights in the
house .
In order to achieve that we need to do the following steps :

1. Put a Temp. sensor in House Automation Unit to regularly Check the


Home.
Temp.(Say Between 26 to 29 degree Celsius).

2. Create a trigger using IFTTT which will receive the command


from the Google Assistant and also create an action which will
send the data to the cloud using WEBHOOOKS .

3. Get the value from the cloud to the Arduino using the API key and
BLOCK DIAGRAM
Temp > Optimum Range Temp. Check Temp < Optimum Range

Cooling On Optimum Temp Reached Cooling Cut Off

GOOGLE ASSISTANT IFTTT WEBHOOKS

RELAY GET VALUE FROM THINGSPEAK


CLOUD TO ARDUINO

LIGHTS ON/OFF
CIRCUIT
COMPONENTS REQUIRED
● The Arduino Uno is an open-source microcontroller board based
on the Microchip ATmega328P microcontroller and developed by
Arduino.cc. The board is equipped with sets of digital and analog

Arduino Uno with input/output (I/O) pins that may be interfaced to various

01
expansion boards (shields) and other circuits.The board has 14
digital I/O pins (six capable of PWM output), 6 analog I/O pins,
cable and is programmable with the Arduino IDE (Integrated
Development Environment), via a type B USB cable] It can be
powered by the USB cable or by an external 9-volt battery, though
it accepts voltages between 7 and 20 volts.

● Microcontroller: Microchip ATmega328P


● Operating Voltage: 5 Volts
● Input Voltage: 7 to 20 Volts
● Flash Memory: 32 KB of which 0.5 KB used by
bootloader

● Clock Speed:16 MHz SRAM: 2 KB EEPROM: 1 KB

● UART: 1
● I2C: 1 ● Length: 68.6 mm
● SPPI: 1
● Digital I/O Pins: 14 (of which 6 can provide PWM output) ● Width: 53.4 mm
● Analog Input Pins: 6
● DC Current per I/O Pin: 20 mA
● DC Current for 3.3V Pin: 50 mA ● Weight: 25 g
● The ESP8266 is a low-cost Wi-Fi microchip, with
● Donec risus dolor porta venenatis

01 Lorem ipsum dolor sit amet at nec at adipiscing ● aPharetra


full TCP/IP
luctus felis stack and microcontroller

Esp8266(Wi-Fi ●
capability, produced by Espressif Systems in
Proin in tellus felis volutpat

02 Shanghai, China. This small module allows


Module) microcontrollers to connect to a Wi-Fi network
and make simple TCP/IP connections using
Hayes-style commands.
○ VCC, Voltage (+3.3 V; can handle up to 3.6 V)

○ GND, Ground (0 V)

○ RX, Receive data bit X

○ TX, Transmit data bit X

○ RST, Reset

○ CH_PD, Chip power-down

○ GPIO 0, General-purpose input/output No. 0

○ GPIO 2, General-purpose input/output No. 2


● 2-Channel 5V Relay Module is a relay interface
board, it can be controlled directly by a wide range
5v Relay two of microcontrollers such as Arduino, AVR, PIC,
03 ARM and so on. It uses a low level triggered control
channel signal (3.3-5VDC) to control the relay. Triggering the
relay operates the normally open or normally
closed contacts.

● Relay Module; Model : JQC-3FF-S-Z, 2 Channel

● Voltage to operate: 5V D

● Color : Blue Relays on a black PCB

● Load : 10A, AC 250V/ 15A, 125V


● The LM35 is a linear temperature sensor that
(Temp. Sensor) output a voltage proportional to the temperature
04 value. ... For example, if the LM35 outputs a
LM35 voltage of 345 mV, that means we have a
temperature value of 34.5ºC.

● +5VDC of power

● analog voltage output

● output of 1 millivolt per 0.1°C (10mV per degree)


230v bulb along with ● Compact fluorescent lamps (CFL), commonly known as
energy-saving lamps are identified by their fluorescent tube
holder , Wires and Jumper
05 cables
bent onto itself or even wrapped. These bulbs use less
energy than traditional incandescent bulbs
● Jumper wires are used for making connections between
items on your breadboard and your Arduino's header pins.

● Get a normal 9 watt CFL or LED Bulb,Some wires and Jumper Cables

● Jumper Wires
Stepper Motors

● 1 × Arduino UNO board

● 1 × small bipolar stepper Motor as shown in


the image given below
ADVANTAGES

● Energy Efficient

● Hands-free convenience

● Enhanced Security

● Save Time with Automated Tasks

● Customization
DISADVANTAGES

● Cost

● Internet Reliance

● Setup and Configuration

● More Technical Security Threats

● Different Protocols (Z-Wave, Zigbee etc.)


CODE
● LIBRARIES

● &

● FUNCTION
● #include <SoftwareSerial.h> //Library for serial connection with ESP
● #include <LiquidCrystal.h> //Librarey for LCD display
● Pin D2 -D 7 are for LCD (D = Digital)
● Pin D10 is for 5v relay 2 channel
● Pin A3 for temp reading( A= Analogue )
● WiFi_SSID,WiFi_Pass, String sendData, Output are global string
● Serial.begin (9600) = Baud Rate /Bits per second
● void Loop = Function that keeps the process going
● ROOM_TEMP();//Room Temperature Check-up function call
● lcd.print() = prints the Things inside its parentheses
● lcd.clear() = clears the LCD screen

● Condition if Light = 0 then light is switched off


if Light = 1 then light is switched on
● ESP voice()

● ESP.available()=Get the number of bytes (characters) available for reading from the serial port
● Temp Check Function void ROOM_TEMP()

● gets Input from A3 Pin

● Temp * .4882 to convert milivolt reading into Degree Celcius


EXPLANATION 2
This project is based on Robot Car Movement , in which a
the arduino is connected to phone through Bluetooth HC-05 Module

1. Taking A pre planned tyre Radius i.e 1.27 cm for the circumference to be
8cm.

2. Calculating the Steps per Revolution of Stepper Motor to reolve the Tyre to
a specific angle (i.e 45*, 90* etc).

3. Turning Two Wheeler car Left or Right by rotating tyres clock wise and
anti clock wise
COMPONENTS REQUIRED
● The Arduino Uno is an open-source microcontroller board based
on the Microchip ATmega328P microcontroller and developed by
01 Arduino Uno Arduino.cc. The board is equipped with sets of digital and
analog input/output (I/O) pins that may be interfaced to various
expansion boards (shields) and other circuits.

● Donec risus dolor porta venenatis

02 HC-05 Module ●

Pharetra luctus felis
Proin in tellus felis volutpat

● A Stepper Motor or a step motor is a brushless,


synchronous motor, which divides a full rotation into a
03 Stepper Motors number of steps. Unlike a brushless DC motor, which
rotates continuously when a fixed DC voltage is applied
to it, a step motor rotates in discrete step angles.

04 Jumper Cables ● To Connect Arduino to components


HC-05 Module

● RX (Pin 0) ———> TX

● TX (Pin 1) ———> RX

● 5V ———> VCC

● GND ———> GND


CODE
● LIBRARIES

● &

● FUNCTION
THANK YOU
Certificate

You might also like