0% found this document useful (0 votes)
4 views

Iot Project Report Sarath r

Ito

Uploaded by

mrsarath1311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Iot Project Report Sarath r

Ito

Uploaded by

mrsarath1311
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Project Report

Name SRATH R

College SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY

Program Name INTERNET OF THINGS (IOT)

Project - 1

Name of the Project: BLUETOOTH HOME AUTOMATION

Tools Used:

● arduino uno

● realy

● hc-05 Bluetooth module

● jumper wire

Working Procedure:

INTRODUCTION

● In this project we are going to control the home appliances using Bluetooth module

● we will be using Ardiunoo UNO development board as the microcontroller

● To add Bluetooth functionality,we will be using the HC-05 Bluetooth module

● This will help us to communicate with other Bluetooth device such as smartphone and
exchange message
● between your smartphone and the Ardiuno UNO development board

● We are controlling ac appliances,we requires a relay module as well

● Because Ac appliances work on higher voltage and cannot be directly controlled by Arduino
UNO development board

CIRCUIT CONNECTION

● Connect the TX pin of the HC-05 module to RX pin (pin no 10) of the Ardiuno UNO
board
● Connect the RX pin of the HC-05 module to TX pin (pin no 11) of the Ardiuno UNO
board
● Connect the one of the relays signal pins to the pin number 5 and the other relay
signal pins to the pin number 6 of the Ardiuno UNO board
● Connect the Vcc pins of the Bluetooth module and relay to the vcc of the Arduino
UNO board
● Connect the GND pins of the Bluetooth module and relays to the GN pin of the
Arduino UNO

Learning Outcomes:

● In this module i came to know about whats is arduino uno


● How to use ariuIno it
● What is bluetooth module
● Its types
● how to control it.
● And i can able to give the circuit connections between the arduino board and
bluetooth module
Project - 2

Name of the Project:WIFI APPLICATION CONTROL OF HOME

Tools Used:

HARDWARE

● Arduino Uno

● Esp8266 WiFi Module

● Breadboard and Wires.

SOFTWARE

● Arduino IDE

● Blynk App

Working Procedure:

CONNECTIONS

● ESP TX to Arduino pin 10

● ESP RX to Arduino pin 11

● ESP VCC to Arduino 3V3

● ESP CH_PD to Arduino 3V3.

● ESP GND to Arduino GND

● INSTALING ARDUINO IDE AND LIBRARIES

Install the latest version of Arduino IDE.

● Open Arduino IDE and go to file-> preferences-> in additional board manager URL type -
http://arduino.esp8266.com/stable/package_esp8266...

● Go to tools -> boards -> Board Manager --> and install the esp8266 package found at last.
(optional)

● Extract the blynk library zip file and copy the contents inside library folder in the zip file into -

● user documents--> Arduino --> Libraries

BLYNK APP SETUP

● Download the Blynk App from Play Store and Sign In.
● To Create a New Project Press + icon on the top.

● Give You Project Name. Choose Device as Arduino UNO Connection Type as WiFi and
press Create.

● As soon as you Create an Auth Token will be sent to your Registered e-Mail. You Can Also
send it Later in you Project Setting Page(nut Symbol)--> Devices.

● To add a button press + and select Button.

● Press on the newly created button to edit it. Give it a name and set pin to digital D13.

● Toggle the mode to SWITCH. This will turn ON/OFF the IN-Built LED on the Arduino.

● To control other Pins, Select the Required Pin(D3, D4... etc) in Edit Menu.

Learning Outcomes:

● In this module i came to know about whats is arduino uno

● How to use arduino

● What is ESP 8266 and wifi module

● Its types

● how to control it.

● And i can able to give the circuit connections between the arduino board and
wifi module
Project - 3

Name of the Project:BLUETOOTH AND ULTRASONIC SMART SYSTEM

Tools Used:

● HC-SR04 ultrasonic sensor

● HC-05 Bluetooth module

● Led

● Arduino UNO

● jumper wires

● bread board

Working Procedure:

ULTRASONIC SENSOR WITH ARDUINO UNO

● The HC_SR04 ultrasonic sensor.


● This component is very simple, as it only has 4 pins.
● Firs and the last are power pins Vcc and GND. The middle ones are Trigger pin and Echo pin.
● It's actually very simple as the component is not doing any math or work by itself.
● So, this module is sending ultrasonic waves.
● Than these waves reflect from a surface and come back to the module.
● Arduino is triggering those waves on the trigger pin and than listening for the “echo”.
● Once it receives it, it calculates the distance base on the time spend waiting for the wave to
come back.
● In the code, we are also going to change that value to cm, as it it easier to read.
● The module will be connected to any I/O pins of the arduino. The trigger pin will be output and
the echo pin will be input.

BLUETOOTH MODULE WITH ARDUINO UNO


● connect the TX pin of the HC-05 module to RX pin (pin no 10) of the Arduino UNO board
● connect the RX pin of the HC-05 module to TX pin (pin no 11) of the Arduino UNO board
● connect the one of the relays signal pins to the pin number 5 and the other relay signal pins
to the pin number 6 of the Arduino UNO board
● connect the Vcc pins of the Bluetooth module and relay to the vcc of the Arduino UNO board
● connect the GND pins of the Bluetooth module and relays to the GN pin of the Arduino UNO

COMBINING BOTH ULTRASONIC SENSOR AND BLUETOOTH MODULE

● Now, I've combine both of the codes, so the LED remote and turn it off for 2s when the
distance is less than 15cm.

● I combined all the int variables above the setups


● I combine both setups into one

● I named each loop of each code "bluetooth" and "sesor"

● in the main loop I added those 2 loops

● I added stopping function in the sensor par

PROGRAM

int triggerPin = 7; //triggering on pin 7


int echoPin = 8; //echo on pin 8
int LED = 13; //led pin
int info = 0;//variable for the information comming from the bluetooth module
int state = 0;//simple variable for displaying the state

void setup() { //we will be combinig both setups from the codes

Serial.begin(9600); //we'll start serial comunication, so we can see the distance on the serial monitor

pinMode(triggerPin, OUTPUT); //defining pins


pinMode(echoPin, INPUT);
pinMode(LED, OUTPUT); //defining LED pin
digitalWrite(LED, LOW); //once the programm starts, it's going to turn of the led, as it can be
missleading.

void loop(){ //here we combine both codes to work in the loop


bluetooth();
sensor();
}

void bluetooth() { //loop from the bluetooth code is renamed to "bluetooth" void
if(Serial.available() > 0){ //if there is any information comming from the serial lines...
info = Serial.read();
state = 0; //...than store it into the "info" variable
}
if(info == '1'){ //if it gets the number 1(stored in the info variable...
digitalWrite(LED, HIGH); //it's gonna turn the led on(the on board one)
if(state == 0){ //if the flag is 0, than display that the LED is on and than set that value to 1
Serial.println("LED ON"); //^^that will prevent the arduino sending words LED ON all the time, only
when you change the state
state = 1;
}
}
else if(info == '0'){
digitalWrite(LED, LOW); //else, it's going to turn it off
if(state == 0){
Serial.println("LED OFF");//display that the LED is off
state = 1;
}
}
}
void sensor() { //loop from the sensor code is renamed to the "sensor" void

int duration, distance; //Adding duration and distance

digitalWrite(triggerPin, HIGH); //triggering the wave(like blinking an LED)


delay(10);
digitalWrite(triggerPin, LOW);

duration = pulseIn(echoPin, HIGH); //a special function for listening and waiting for the wave
distance = (duration/2) / 29.1; //transforming the number to cm(if you want inches, you have to
change the 29.1 with a suitable number

Serial.print(distance); //printing the numbers


Serial.print("cm"); //and the unit
Serial.println(" "); //just printing to a new line

//adding for mesuring distance where the led will turn off, even if we tell it to turn off when we chose
so in the app

if(distance <= 15){ //if we get too close, the LED will turn off, that's the method with my RC car, if it
gets too close, it turns off, but that will be in the next instructable :)
digitalWrite(LED, LOW);
Serial.println("TOO CLOSE!!!");
delay(2000);
}
}

Learning Outcomes:

● In this module i came to know about whats is arduino uno



● How to use ardiuno

● What is ULTRASONIC SENSOR and wifi module

● how to control it.

● And i can able to give the circuit connections between the arduino board and ultrasonic
sensor

● And i came to know about the sensor and buzzer

● how it generate ultrasonic wave


Project - 4

Name of the Project:GSM BASED SMART ALARAM SYSTEM

Tools Used:

● Arduino

● PIR Motion Detection Sensor

● SIM 900A (or any other) GSM Module with SIM inserted

● Led

Working Procedure:

● PIR sensor detects motion by sensing the difference in infrared or radiant heat levels emitted
by surrounding objects. The output of the PIR sensor goes high when it detects any motion.
The range of a typical PIR sensor is around 6 meters or about 30 feet.

● For proper operation of PIR sensor, it requires a warm up time of 20 to 60 seconds. This is
required because, the PIR sensor has a settling time during which it calibrates its sensor
according to the environment and stabilizes the infrared detector.

● During this time, there should be very little to no motion in front of the sensor. If the sensor is
not given enough calibrating time, the output of the PIR sensor may not be reliable.

● When the PIR sensor detects any motion, the output of the sensor is high. This is detected by
the Arduino. Arduino then communicates with the GSM module via serial communication to
make a call to the pre programmed mobile number.

● An important point to be noted about PIR sensors is that the output will be high when it
detects motion. The output of the sensor goes low from time to time, even when there is
motion which may mislead the microcontroller into considering that there is no motion.

● This issue must be dealt with in the programming of Arduino by ignoring the low output
signals that have a shorter duration than a predefined time. This is done by assuming that the
motion in front of PIR sensor is present continuously.

PROGRAM

int LED1=12;
int GND1=13;
int LED2=8;
int GND2=9;
int pirOutput=5;
void setup()
{
Serial.begin(9600);
pinMode(LED1,OUTPUT);
pinMode(GND1,OUTPUT);
pinMode(LED2,OUTPUT);
pinMode(GND2,OUTPUT);
pinMode(pirOutput,INPUT);

digitalWrite(pirOutput,LOW);
digitalWrite(GND1,LOW);
digitalWrite(GND2,LOW);
digitalWrite(LED1,LOW);
digitalWrite(LED2,LOW);
delay(15000);
digitalWrite(LED1,HIGH);
}
void loop()
{
if(digitalRead(pirOutput)==HIGH)
{
digitalWrite(LED2,HIGH);
Serial.println("OK");
delay(1000);
Serial.println("ATD+91xxxxxxxxxx;");//add target mobile number in place of xxxxxxxxxx
delay(15000);
Serial.println("ATH");
digitalWrite(LED2,LOW);
delay(1000);
}
}

Learning Outcomes:

● In this module i came to know about whats is arduino uno

● How to use arduino

● What is GSM and wifi module

● how to control it.

● And i can able to give the circuit connections between the arduino board and
GSM

You might also like