IOT (Internet of Things) : By:Vaibhav, Yash, Nishkarsh, Hardik, Diksha
IOT (Internet of Things) : By:Vaibhav, Yash, Nishkarsh, Hardik, Diksha
IOT (Internet of Things) : By:Vaibhav, Yash, Nishkarsh, Hardik, Diksha
1
intro of iot
▪ IOT-the internet of things describes the network of physical objects
“things”-that are embeded with sensors,software and other
technologies for the purpose of connection and exchanging data with
other devices and systems over the internet.
▪ Simply we can say—
▪ --hardware+software
▪ --control devices
▪ --moniter devices
▪ --analysis data sets
intranet/internet
▪ Intranet –a local or restricted communication network , especially
a private network created using worldwide web software.
--------->
• Public IP Address
(for all over the internet)
• Local IP Address
(for local area)
Embedded system
An embedded system is a combination of a processor, memory ,and
input/output peripheral devices that has a dedicated function within a larger
mechanical or electrical system.
As its name suggests,an embedded system can be thought of as a
computer hardware system having software embedded in it.
Hardware
Proce
Ou
Inp ssing
and tpu
ut Storin
g t
Software
IDE
• An integrated development environment (IDE) is a
software application that provides comprehensive
facilities to computer programmers for software
development. IDE
• An IDE normally consists of at least a source code
editor, build automation tools and a debugger. Pc/laptop
• Embedded programming is used to write instruction
for the microcontroller to perform specific action or Connect
via
task. USB
• We will use arduino IDE for embedded programming
for Arduino boards.
Development
board
Microcontroller:
Microcontrollers can be thought of as tiny computers that are added to any physical object or space to give it a
'brain. ' They contain one or more computer processors, along with memory and programmable input/output
peripherals — all in a single integrated circuit. It is clock driven, register based, accepts input and provides output
after processing it as per the instructions stored in the memory.
Arduino:
Arduino is an open-source electronics platform based on hardware and software.
Arduino Boards are able to read inputs - light on a sensor, a finger on a button - and
turn it into an output - activating a motor, turning on an LED, publishing something
online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board. To do so you use the Programming language (based on
Wiring), and the Arduino software (IDE) based on Processing.
Sensor
A sensor is a device , module , whose
purpose is to detect changes in its
environment and send the information
to other electronics , frequently a
computer
10
Sensor have
three pins
One pin is the ground(gnd), one pin is of
power input i.e vcc and one pin is of data.
SKETCH WRITING
In IDE :The set of instructions or code which we write to gives
instructions to the microcontroller or embedded system is called sketch .
In sketch writing we have to use a IDE software in which we use a
programming language for embedded programming.
In this we have two segments one is void setup() and second is void
loop().
In void setup() the statement is executed only once
In void loop() the statement is for continue execution till the conditional
statement is true.
After compiling / verifying if it doesn’t show any error then we upload it
into our microcontroller or embedded system
int ir_sensor = 2;
int led=3;
void setup() {
SKETCH
pinMode(ir_sensor,INPUT);
pinMode(led,OUTPUT); WRITING
// put your setup code here, to run once:
void loop() {
. if(ir_sensor==HIGH) Led ON when IR
{ sensor detects an
digitalWrite(led,HIGH);
}
object
else
{
digitalWrite(led,LOW);
}
// put your main code here, to run repeatedly:
13
Any questions?
14