Iot Project Report Sarath r
Iot Project Report Sarath r
Name SRATH R
Project - 1
Tools Used:
● arduino uno
● realy
● jumper wire
Working Procedure:
INTRODUCTION
● In this project we are going to control the home appliances using 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
● 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:
Tools Used:
HARDWARE
● Arduino Uno
●
● Esp8266 WiFi Module
●
● Breadboard and Wires.
SOFTWARE
● Arduino IDE
● Blynk App
Working Procedure:
CONNECTIONS
● 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 -
● 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.
● 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:
● Its types
● And i can able to give the circuit connections between the arduino board and
wifi module
Project - 3
Tools Used:
● Led
● Arduino UNO
● jumper wires
● bread board
Working Procedure:
● 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.
PROGRAM
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
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
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
//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:
● And i can able to give the circuit connections between the arduino board and ultrasonic
sensor
Tools Used:
● Arduino
● 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:
● And i can able to give the circuit connections between the arduino board and
GSM