Vinita Kushwaha 1910083004: Meerabai Institute of Technology
Vinita Kushwaha 1910083004: Meerabai Institute of Technology
On
“INTERNET OF THING”
ELECTRONICS AND
COMMUNICATION ENGINEERING
Submitted By:
Vinita Kushwaha
1910083004
Certificate
Content
1. Introduction of IOT
• How internet of things works ?
• Features of IOT
2. Arduino
• Led blink
• IR sensor
•
• Ultra sonic sensor
3. BLYNK APP
• Making of new project
4. THINGSPEAK
5. PROJECT
• Home automation
What is an Internet of Things (IoT)
Let's us look closely at our mobile device which contains GPS Tracking, Mobile Gyroscope,
Adaptive brightness, Voice detection, Face detection etc. These components have their own
individual features, but what about if these all communicate with each other to provide a better
environment? For example, the phone brightness is adjusted based on my GPS location or my
direction.
Connecting everyday things embedded with electronics, software, and sensors to internet
enabling to collect and exchange data without human interaction called as the Internet of Things
(IoT).
The term "Things" in the Internet of Things refers to anything and everything in day to day life
which is accessed or connected through the internet.
IoT is an advanced automation and analytics system which deals with artificial intelligence,
sensor, networking, electronic, cloud messaging etc. to deliver complete systems for the product
or services. The system created by IoT has greater transparency, control, and performance.
As we have a platform such as a cloud that contains all the data through which we connect all the
things around us. For example, a house, where we can connect our home appliances such as air
conditioner, light, etc. through each other and all these things are managed at the same platform.
Since we have a platform, we can connect our car, track its fuel meter, speed level, and also track
the location of the car.
If there is a common platform where all these things can connect to each other would be great
because based on my preference, I can set the room temperature. For example, if I love the room
temperature to to be set at 25 or 26-degree Celsius when I reach back home from my office, then
according to my car location, my AC would start before 10 minutes I arrive at home. This can be
done through the Internet of Things (IoT).
(architecture). However, the key concept of there working are similar. The entire working
process of IoT starts with the device themselves, such as smartphones, digital watches, electronic
appliances, which securely communicate with the IoT platform. The platforms collect and
analyze the data from all multiple devices and platforms and transfer the most valuable data with
applications to devices.
Features of IOT
The most important features of IoT on which it works are connectivity, analyzing, integrating,
active engagement, and many more. Some of them are listed below:
Connectivity: Connectivity refers to establish a proper connection between all the things of IoT
to IoT platform it may be server or cloud. After connecting the IoT devices, it needs a high speed
messaging between the devices and cloud to enable reliable, secure and bi-directional
communication.
Analyzing: After connecting all the relevant things, it comes to real-time analyzing the data
collected and use them to build effective business intelligence. If we have a good insight into
data gathered from all these things, then we call our system has a smart system.
Integrating: IoT integrating the various models to improve the user experience as well.
Artificial Intelligence: IoT makes things smart and enhances life through the use of data. For
example, if we have a coffee machine whose beans have going to end, then the coffee machine
itself order the coffee beans of your choice from the retailer.
Sensing: The sensor devices used in IoT technologies detect and measure any change in the
environment and report on their status. IoT technology brings passive networks to active
networks. Without sensors, there could not hold an effective or true IoT environment.
Active Engagement: IoT makes the connected technology, product, or services to active
engagement between each other.
Endpoint Management: It is important to be the endpoint management of all the IoT system
otherwise, it makes the complete failure of the system. For example, if a coffee machine itself
order the coffee beans when it goes to end but what happens when it orders the beans from a
retailer and we are not present at home for a few days, it leads to the failure of the IoT system.
So, there must be a need for endpoint management.
What is Arduino?
Over the years Arduino has been the brain of thousands of projects, from everyday objects to
complex scientific instruments. A worldwide community of makers - students, hobbyists, artists,
programmers, and professionals - has gathered around this open-source platform, their
contributions have added up to an incredible amount of accessible knowledge that can be of great
help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping,
aimed at students without a background in electronics and programming. As soon as it reached a
wider community, the Arduino board started changing to adapt to new needs and challenges,
differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D
printing, and embedded environments. All Arduino boards are completely open-source,
empowering users to build them independently and eventually adapt them to their particular
needs. The software, too, is open-source, and it is growing through the contributions of users
worldwide.
Why Arduino?
Thanks to its simple and accessible user experience, Arduino has been used in thousands of
different projects and applications. The Arduino software is easy-to-use for beginners, yet
flexible enough for advanced users. It runs on Mac, Windows, and Linux. Teachers and students
use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get
started with programming and robotics. Designers and architects build interactive prototypes,
musicians and artists use it for installations and to experiment with new musical instruments.
Makers, of course, use it to build many of the projects exhibited at the Maker Faire, for example.
Arduino is a key tool to learn new things. Anyone - children, hobbyists, artists, programmers -
can start tinkering just following the step by step instructions of a kit, or sharing ideas online
with other members of the Arduino community.
There are many other microcontrollers and microcontroller platforms available for physical
computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many
others offer similar functionality. All of these tools take the messy details of microcontroller
programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems:
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void setup()
{
pinMode(13, OUTPUT); // Pin 13 has an LED connected on most Arduino
boards:
pinMode(ProxSensor,INPUT); //Pin 2 is connected to the output of proximity
sensor
Serial.begin(9600);
}
void loop()
{
if(digitalRead(ProxSensor)==HIGH) //Check the sensor output
{
digitalWrite(13, HIGH); // set the LED on
}
else
{
digitalWrite(13, LOW); // set the LED off
}
inputVal = digitalRead(ProxSensor);
Serial.println(inputVal);
delay(1000); // wait for a second
}
ULTRASONIC SENSOR
CODE-:
// defines pins numbers
const int trigPin = 9;
const int echoPin = 10;
// defines variables
long duration;
int distance;
void setup() {
pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output
pinMode(echoPin, INPUT); // Sets the echoPin as an Input
Serial.begin(9600); // Starts the serial communication
}
void loop() {
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
1. Hardware
The Blynk App is a well designed interface builder. It works on both iOS and Android,
Let’s get you started in 5 minutes (reading doesn’t count!). We will switch on an LED connected
to your Arduino using the Blynk App on your smartphone.
Connect an LED as shown here:
1. Create a Blynk Account
After you download the Blynk App, you’ll need to create a New Blynk account. This account is
separate from the accounts used for the Blynk Forums, in case you already have one.
We recommend using a real email address because it will simplify things later
4. Auth Token
Auth Token is a unique identifier which is needed to connect your hardware to your
smartphone. Every new project you create will have its own Auth Token. You’ll get Auth Token
automatically on your email after project creation. You can also copy it manually. Click on
devices section and selected required device :
CODE-
#define BLYNK_PRINT SwSerial
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleStream.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "2957944d79664ca0b994591d6b811a4a";
void setup()
{
// Debug console
SwSerial.begin(9600);
ThingSpeak™ is an IoT analytics platform service that allows you to aggregate, visualize and
analyze live data streams in the cloud. ThingSpeak provides instant visualizations of data posted
by your devices to ThingSpeak. With the ability to execute MATLAB® code in ThingSpeak you
can perform online analysis and processing of the data as it comes in. ThingSpeak is often used
for prototyping and proof of concept IoT systems that require analytics.
Internet of Things (IoT) describes an emerging trend where a large number of embedded devices
(things) are connected to the Internet. These connected devices communicate with people and other
things and often provide sensor data to cloud storage and cloud computing resources where the
data is processed and analyzed to gain important insights. Cheap cloud computing power and
increased device connectivity is enabling this trend.
IoT solutions are built for many vertical applications such as environmental monitoring and
control, health monitoring, vehicle fleet monitoring, industrial monitoring and control, and home
automation.
At a high level, many IoT systems can be described using the diagram below:
On the left, we have the smart devices (the “things” in IoT) that live at the edge of the network.
These devices collect data and include things like wearable devices, wireless temperatures sensors,
heart rate monitors, and hydraulic pressure sensors, and machines on the factory floor.
In the middle, we have the cloud where data from many sources is aggregated and analyzed in real
time, often by an IoT analytics platform designed for this purpose.
The right side of the diagram depicts the algorithm development associated with the IoT
application. Here an engineer or data scientist tries to gain insight into the collected data by
performing historical analysis on the data. In this case, the data is pulled from the IoT platform
into a desktop software environment to enable the engineer or scientist to prototype algorithms
that may eventually execute in the cloud or on the smart device itself.
An IoT system includes all these elements. ThingSpeak fits in the cloud part of the diagram and
provides a platform to quickly collect and analyze data from internet connected sensors.
• Easily configure devices to send data to ThingSpeak using popular IoT protocols.
• Visualize your sensor data in real-time.
• Aggregate data on-demand from third-party sources.
• Use the power of MATLAB to make sense of your IoT data.
• Run your IoT analytics automatically based on schedules or events.
• Prototype and build IoT systems without setting up servers or developing web software.
• Automatically act on your data and communicate using third-party services like Twilio® or
Twitter®.