SlideShare a Scribd company logo
IOT
writing IoT firmware, software, and OS’s for
IoT devices.
There’s 3 distinct parts to any legitimate
IoT product
Wanted to master it
1. Software
2. Hardware
3. Network
First, buy an arduino
• Some cool sensors/lights/led screens or
whatever floats your boat.
• It’s not about building cool stuff, it’s about
learning (both are possible at the same time!).
• If familiar move on to TI sensor tag
Network part
• Most important part.
• The more efficient your data transfers are
from device to device to server to device and
everything in between, the smaller and faster
your device can be.
Concepts to master:
• IoT is the convergence of like everything in tech. To
master IoT, you basically need to master computers. Is
that possible?
• Operating Systems/Firmware
• Printed Circuit Board Design
• Cloud/IoT Network Architecture
• C/C++
• Pretty much everything full-stack related. Backend
programming, mobile programming, machine
learning/AI, big data/analysis, cloud computing.
EMBEDDED SYSTEM (Hardware +
Software)
Program development process in
embedded system
Super-loop Approach
• while(1) { }
• for(;;)
Meet Arduino Uno
What is an Arduino?
Features
• 14 Digital I/O pins
• 6 Analogue inputs
• 6 PWM pins
• USB serial
• 16MHz Clock speed
• 32KB Flash memory
• 2KB SRAM
• 1KB EEPROM
Getting Started
• Check out: http://arduino.cc/en/Guide/HomePage
1. Download & install the Arduino environment (IDE)
(if needed)
2. Connect the board to your computer via the USB cable
3. If needed, install the drivers (if needed)
4. Launch the Arduino IDE
5. Select your board
6. Select your serial port
7. Open the blink example
8. Upload the program
The Arduino IDE
The main features you need to know about are:
• Code area: This is where you will type all your
code
• Info panel: This will show any errors during
compiling or uploading code to your Arduino
• Verify: This allows you to compile your code to
code the Arduino understands. Any mistakes you
have made in the syntax of your code will be
show in the info panel
• Upload: This does the same as verify but will
then send your code to your Arduino if the code
is verified successfully
• Serial Monitor: This will open a window that
allows you to send text to and from an Arduino.
We will use this feature in later lectures.
Before we begin coding
Structure of an Arduino “sketch”
//pins can be thought of as global variables
void setup()
{
// put your setup code here, to run once:
}
void loop() // equivalent to while(1) { }
{
// put your main code here, to run
repeatedly:
}
• setup : It is called only when the Arduino is
powered on or reset. It is used to initialize
variables and pin modes
• loop : The loop functions runs continuously till
the device is powered off. The main logic of
the code goes here. Similar to while (1) for
micro-controller programming.
Minimum code
• A pin on arduino can be set as input or output
by using pinMode function.
• pinMode(13, OUTPUT); // sets pin 13 as
output pin
• pinMode(13, INPUT); // sets pin 13 as input
pin
PinMode
• digitalWrite(13, LOW); // Makes the output
voltage on pin 13 , 0V
• digitalWrite(13, HIGH); // Makes the output
voltage on pin 13 , 5V
• int buttonState = digitalRead(2); // reads the
value of pin 2 in buttonState
Reading/writing digital values
• What is analog ?
• It is continuous range of voltage values (not
just 0 or 5V)
• Why convert to digital ?
• Because our microcontroller only understands
digital.
Analog to Digital Conversion
ADC in Arduino Uno
Converting Analog Value to Digital
• The Arduino Uno board contains 6 pins for
ADC
• 10-bit analog to digital converter
• This means that it will map input voltages
between 0 and 5 volts into integer values
between 0 and 1023
ADC in Arduino
• analogRead(A0); // used to read the analog
value from the pin A0
• analogWrite(2,128);//Used to create 50% duty
cycle
Reading/Writing Analog Values
IOT beginnners
Input/Output
Image from Theory and Practice of Tangible User Interfaces at UC Berkley
Serial Communication
Serial Communication
• Compiling turns your program into
binary data (ones and zeros)
• Uploading sends the bits through
USB cable to the Arduino
• The two LEDs near the USB
connector blink when data is
transmitted
• RX blinks when the Arduino is
receiving data
• TX blinks when the Arduino is
transmitting data
Some Commands
• Serial.begin()
- e.g., Serial.begin(9600)
• Serial.print() or Serial.println()
- e.g., Serial.print(value)
// These constants won't change. They're used to give names to the pins used:
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
const int analogOutPin = 9; // Analog output pin that the LED is attached to
int sensorValue = 0; // value read from the pot
int outputValue = 0; // value output to the PWM (analog out)
void setup() {
Serial.begin(9600); // initialize serial communications at 9600 bps:
}
void loop() {
sensorValue = analogRead(analogInPin); // read the analog in value:
outputValue = map(sensorValue, 0, 1023, 0, 255); // map it to the range of the analog out:
analogWrite(analogOutPin, outputValue); // change the analog out value:
Serial.print("sensor = " ); // print the results to the serial monitor:
Serial.print(sensorValue);
Serial.print("t output = ");
Serial.println(outputValue);
// delay(2000); // wait 2 seconds before the next loop for the analog-to-digital converter to settle after the last reading:
}
ADC Example
PIR Sensor Interfacing
• used for motion detection
• detect the Infrared waves emitting from a particular
object
• human or animal body emits heat energy in a form of
infrared radiation
• made of pyro-electric materials
• when this material is exposed to heat then, it
generates energy
PIR Sensor Interfacing
• consists a specially designed cover named
Fresnel lens, which focuses the infrared
signals onto the pyroelectric sensor.
PIR Sensor Interfacing
PIR Sensor Interfacing
int sensor=7; //The output of PIR sensor connected to pin 7
int sensor_value; //variable to hold read sensor value
void setup()
{
pinMode(sensor,INPUT); // configuring pin 7 as Input
Serial.begin(9600); // To show output value of sensor in serial monitor
}
void loop()
{
sensor_value=digitalRead(sensor); // Reading sensor value from pin 7
Serial.println(sensor_value); // Printing output to serial monitor
delay(500);
}
PIR Sensor Interfacing
Cloud Platforms for Internet of Things
(IoT)
• Thingworx 8 IoT Platform
Cloud Platforms for Internet of Things
(IoT)
• Microsoft Azure IoT Suite
Cloud Platforms for Internet of Things
(IoT)
• Google Cloud’s IoT Platform
• Pricing on Google Cloud is done on a per-
minute basis, which is cheaper than other
platforms.
Cloud Platforms for Internet of Things
(IoT)
• IBM Watson IoT Platform
Cloud Platforms for Internet of Things
(IoT)
• AWS IoT Platform
• Amazon made it much easier for developers to
collect data from sensors and Internet-
connected devices. They help you collect and
send data to the cloud and analyze that
information to provide the ability to manage
devices.
IoT protocols
• Divided in terms of the role they play within
the network.
• Communications (Wi-Fi, Bluetooth),
• Data transmission (MQTT, CoAP, XMPP),
• Security (DTLS), and
• Device management as well as telemetry
MQTT
• Message Queuing Telemetry Transport
• Lightweight messaging protocol that was
developed by IBM and first released in 1999.
• It uses the pub/sub pattern and translates
messages between devices, servers, and
applications.
CoAP
• Which easily translates to HTTP for integration with the existing
Web
• Specialized web transfer protocol for use with constrained nodes
and constrained networks in the Internet of Things.
• CoAP is designed to enable simple, constrained devices to join
the IoT even through constrained networks with low bandwidth
and low availability. The Constrained Application Protocol (CoAP) is
a specialized web transfer protocol for use with constrained nodes
and constrained (e.g., low-power, lossy) networks.
• The nodes often have 8-bit microcontrollers with small amounts of
ROM and RAM, while constrained networks such as IPv6 over Low-
Power Wireless Personal Area Networks (6LoWPANs) often have
high packet error rates and a typical throughput of 10s of kbit/s.
• The protocol is designed for machine- to-machine (M2M)
applications such as smart energy and building automation.

More Related Content

PDF
An IoT gateway centric architecture to provide novel m2m services
Soumya Kanti Datta
 
PDF
Secure IOT Gateway
LF Events
 
PPTX
From IoT Central to IoT Hub
Marco Parenzan
 
PDF
Iot gateways march 2015
sgadgil2002
 
PDF
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
Open Mobile Alliance
 
PDF
Kura M2M IoT Gateway
Eurotech
 
PDF
Eclipse kura in industry 4.0 david woodard
Eurotech
 
PDF
Open Source M2M IoT Gateways
Eurotech
 
An IoT gateway centric architecture to provide novel m2m services
Soumya Kanti Datta
 
Secure IOT Gateway
LF Events
 
From IoT Central to IoT Hub
Marco Parenzan
 
Iot gateways march 2015
sgadgil2002
 
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
Open Mobile Alliance
 
Kura M2M IoT Gateway
Eurotech
 
Eclipse kura in industry 4.0 david woodard
Eurotech
 
Open Source M2M IoT Gateways
Eurotech
 

What's hot (20)

PDF
Embedded system & IoT Course | certification Program | Learn and Build
Learn and Build
 
PPTX
Catching the Internet of Things (IoT) Wave
Chuck Petras
 
PPTX
Internet of Things - concepts
Hariharan Ramasamy
 
PDF
Real World IoT Architectures and Projects with Eclipse IoT
Eurotech
 
PDF
Developing Interoperable Components for an Open IoT Foundation
Eurotech
 
PDF
NEXCOM Industry 4.0 Solution Map and Topology
Eric Lo
 
PDF
Track 4 session 6 - st dev con 2016 - samsung artik
ST_World
 
PPTX
Unit 4
Mayura shelke
 
PPTX
Creating end-to-end IoT applications with Eclipse Kura & Solair IoT Platform
Solair
 
PDF
System design of multiprotocol iot
Dev Bhattacharya
 
PDF
L’IoT industriale e i vantaggi competitivi della trasformazione digitale
Eurotech
 
PDF
Device Management for OSGi IoT Gateways
Eurotech
 
PDF
Industrial IoT in a Nutshell
Andri Yadi
 
PDF
IoT Solutions Made Simple with Everyware IoT
Eurotech
 
PPTX
Андрій Озгович “IoT Cypress solution. Low cost, low power” {R0boCamp}
Lviv Startup Club
 
PDF
Internet of Things - Advantech IoT Gateway Starter Kit
Advantech Europe E-IOT Business Group
 
PDF
IoT and connected devices: an overview
Pascal Bodin
 
PPTX
IBM IoT Architecture and Capabilities at the Edge and Cloud
Pradeep Natarajan
 
PDF
Track 3 session 2 - st dev con 2016 - arrow - identifying business challeng...
ST_World
 
PPTX
Null mumbai-iot-workshop
Nitesh Malviya
 
Embedded system & IoT Course | certification Program | Learn and Build
Learn and Build
 
Catching the Internet of Things (IoT) Wave
Chuck Petras
 
Internet of Things - concepts
Hariharan Ramasamy
 
Real World IoT Architectures and Projects with Eclipse IoT
Eurotech
 
Developing Interoperable Components for an Open IoT Foundation
Eurotech
 
NEXCOM Industry 4.0 Solution Map and Topology
Eric Lo
 
Track 4 session 6 - st dev con 2016 - samsung artik
ST_World
 
Creating end-to-end IoT applications with Eclipse Kura & Solair IoT Platform
Solair
 
System design of multiprotocol iot
Dev Bhattacharya
 
L’IoT industriale e i vantaggi competitivi della trasformazione digitale
Eurotech
 
Device Management for OSGi IoT Gateways
Eurotech
 
Industrial IoT in a Nutshell
Andri Yadi
 
IoT Solutions Made Simple with Everyware IoT
Eurotech
 
Андрій Озгович “IoT Cypress solution. Low cost, low power” {R0boCamp}
Lviv Startup Club
 
Internet of Things - Advantech IoT Gateway Starter Kit
Advantech Europe E-IOT Business Group
 
IoT and connected devices: an overview
Pascal Bodin
 
IBM IoT Architecture and Capabilities at the Edge and Cloud
Pradeep Natarajan
 
Track 3 session 2 - st dev con 2016 - arrow - identifying business challeng...
ST_World
 
Null mumbai-iot-workshop
Nitesh Malviya
 
Ad

Similar to IOT beginnners (20)

PPTX
Arduino
LetzkuLetz Castro
 
PPTX
Arduino Programming Familiarization
Amit Kumer Podder
 
PPTX
arduino and its introduction deep dive ppt.pptx
SruSru1
 
PPTX
B1_25Jan21.pptx
DhirajPatel58
 
PDF
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
PPTX
Arduino course
Ahmed Shelbaya
 
PPTX
Introduction to the Arduino
Wingston
 
PPTX
Internet of Things prescribed by University
Sanjay Kumar
 
PDF
Introduction of Arduino Uno
Md. Nahidul Islam
 
PPTX
ARDUINO Presentation1.pptx
SourabhSalunkhe10
 
PPTX
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
PPTX
Introduction to Arduino Microcontroller
Mujahid Hussain
 
PDF
Iot for smart agriculture
Atit Patumvan
 
PPTX
Module-4 Embedded target boards and interfacing.pptx
BEVARAVASUDEVAAP1813
 
PDF
Device Operation using PC by Arduino (1).pdf
sampathiraopujitha
 
PPT
Arduino wk2
Meriem Jaoued
 
PPT
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 
PPT
Arduino is an open-source electronics platform that has an easy-to-use physic...
ssuseraa8a48
 
PPTX
Introduction to Arduino.pptx
Akshat Bijronia
 
PPTX
Introduction to Arduino Webinar
Fragiskos Fourlas
 
Arduino Programming Familiarization
Amit Kumer Podder
 
arduino and its introduction deep dive ppt.pptx
SruSru1
 
B1_25Jan21.pptx
DhirajPatel58
 
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
Arduino course
Ahmed Shelbaya
 
Introduction to the Arduino
Wingston
 
Internet of Things prescribed by University
Sanjay Kumar
 
Introduction of Arduino Uno
Md. Nahidul Islam
 
ARDUINO Presentation1.pptx
SourabhSalunkhe10
 
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Iot for smart agriculture
Atit Patumvan
 
Module-4 Embedded target boards and interfacing.pptx
BEVARAVASUDEVAAP1813
 
Device Operation using PC by Arduino (1).pdf
sampathiraopujitha
 
Arduino wk2
Meriem Jaoued
 
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 
Arduino is an open-source electronics platform that has an easy-to-use physic...
ssuseraa8a48
 
Introduction to Arduino.pptx
Akshat Bijronia
 
Introduction to Arduino Webinar
Fragiskos Fourlas
 
Ad

More from udhayakumarc1 (8)

PPTX
CA introduction
udhayakumarc1
 
PPTX
Python urllib
udhayakumarc1
 
PPTX
Ppt 11 - netopeer
udhayakumarc1
 
PPTX
Ppt 3 - IOT logic design
udhayakumarc1
 
PPTX
Ppt 5 -io t levels
udhayakumarc1
 
PPTX
Ppt 1 -io t - intro
udhayakumarc1
 
PPTX
IOT beginnners
udhayakumarc1
 
PPTX
Computer Architecture and Organiaztion- intro
udhayakumarc1
 
CA introduction
udhayakumarc1
 
Python urllib
udhayakumarc1
 
Ppt 11 - netopeer
udhayakumarc1
 
Ppt 3 - IOT logic design
udhayakumarc1
 
Ppt 5 -io t levels
udhayakumarc1
 
Ppt 1 -io t - intro
udhayakumarc1
 
IOT beginnners
udhayakumarc1
 
Computer Architecture and Organiaztion- intro
udhayakumarc1
 

Recently uploaded (20)

PDF
Slides: PDF Eco Economic Epochs for World Game (s) pdf
Steven McGee
 
PDF
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
PPT
Transformaciones de las funciones elementales.ppt
rirosel211
 
PPTX
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
PPTX
Different Generation Of Computers .pptx
divcoder9507
 
PPTX
ppt lighfrsefsefesfesfsefsefsefsefserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrt.pptx
atharvawafgaonkar
 
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
PPTX
How tech helps people in the modern era.
upadhyayaryan154
 
PDF
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
PDF
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
PDF
LB# 820-1889_051-7370_C000.schematic.pdf
matheusalbuquerqueco3
 
PDF
Latest Scam Shocking the USA in 2025.pdf
onlinescamreport4
 
PDF
PDF document: World Game (s) Great Redesign.pdf
Steven McGee
 
PPTX
办理方法西班牙假毕业证蒙德拉贡大学成绩单MULetter文凭样本
xxxihn4u
 
PDF
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
PPTX
谢尔丹学院毕业证购买|Sheridan文凭不见了怎么办谢尔丹学院成绩单
mookxk3
 
PPTX
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
PPTX
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
PPTX
Generics jehfkhkshfhskjghkshhhhlshluhueheuhuhhlhkhk.pptx
yashpavasiya892
 
PDF
DNSSEC Made Easy, presented at PHNOG 2025
APNIC
 
Slides: PDF Eco Economic Epochs for World Game (s) pdf
Steven McGee
 
Data Protection & Resilience in Focus.pdf
AmyPoblete3
 
Transformaciones de las funciones elementales.ppt
rirosel211
 
dns domain name system history work.pptx
MUHAMMADKAVISHSHABAN
 
Different Generation Of Computers .pptx
divcoder9507
 
ppt lighfrsefsefesfesfsefsefsefsefserrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrt.pptx
atharvawafgaonkar
 
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
APNIC
 
How tech helps people in the modern era.
upadhyayaryan154
 
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
KIPER4D situs Exclusive Game dari server Star Gaming Asia
hokimamad0
 
LB# 820-1889_051-7370_C000.schematic.pdf
matheusalbuquerqueco3
 
Latest Scam Shocking the USA in 2025.pdf
onlinescamreport4
 
PDF document: World Game (s) Great Redesign.pdf
Steven McGee
 
办理方法西班牙假毕业证蒙德拉贡大学成绩单MULetter文凭样本
xxxihn4u
 
The Internet of Things (IoT) refers to a vast network of interconnected devic...
chethana8182
 
谢尔丹学院毕业证购买|Sheridan文凭不见了怎么办谢尔丹学院成绩单
mookxk3
 
Unlocking Hope : How Crypto Recovery Services Can Reclaim Your Lost Funds
lionsgate network
 
Artificial-Intelligence-in-Daily-Life (2).pptx
nidhigoswami335
 
Generics jehfkhkshfhskjghkshhhhlshluhueheuhuhhlhkhk.pptx
yashpavasiya892
 
DNSSEC Made Easy, presented at PHNOG 2025
APNIC
 

IOT beginnners

  • 1. IOT writing IoT firmware, software, and OS’s for IoT devices. There’s 3 distinct parts to any legitimate IoT product Wanted to master it 1. Software 2. Hardware 3. Network
  • 2. First, buy an arduino • Some cool sensors/lights/led screens or whatever floats your boat. • It’s not about building cool stuff, it’s about learning (both are possible at the same time!). • If familiar move on to TI sensor tag
  • 3. Network part • Most important part. • The more efficient your data transfers are from device to device to server to device and everything in between, the smaller and faster your device can be.
  • 4. Concepts to master: • IoT is the convergence of like everything in tech. To master IoT, you basically need to master computers. Is that possible? • Operating Systems/Firmware • Printed Circuit Board Design • Cloud/IoT Network Architecture • C/C++ • Pretty much everything full-stack related. Backend programming, mobile programming, machine learning/AI, big data/analysis, cloud computing.
  • 6. Program development process in embedded system
  • 9. What is an Arduino? Features • 14 Digital I/O pins • 6 Analogue inputs • 6 PWM pins • USB serial • 16MHz Clock speed • 32KB Flash memory • 2KB SRAM • 1KB EEPROM
  • 10. Getting Started • Check out: http://arduino.cc/en/Guide/HomePage 1. Download & install the Arduino environment (IDE) (if needed) 2. Connect the board to your computer via the USB cable 3. If needed, install the drivers (if needed) 4. Launch the Arduino IDE 5. Select your board 6. Select your serial port 7. Open the blink example 8. Upload the program
  • 11. The Arduino IDE The main features you need to know about are: • Code area: This is where you will type all your code • Info panel: This will show any errors during compiling or uploading code to your Arduino • Verify: This allows you to compile your code to code the Arduino understands. Any mistakes you have made in the syntax of your code will be show in the info panel • Upload: This does the same as verify but will then send your code to your Arduino if the code is verified successfully • Serial Monitor: This will open a window that allows you to send text to and from an Arduino. We will use this feature in later lectures.
  • 12. Before we begin coding
  • 13. Structure of an Arduino “sketch” //pins can be thought of as global variables void setup() { // put your setup code here, to run once: } void loop() // equivalent to while(1) { } { // put your main code here, to run repeatedly: }
  • 14. • setup : It is called only when the Arduino is powered on or reset. It is used to initialize variables and pin modes • loop : The loop functions runs continuously till the device is powered off. The main logic of the code goes here. Similar to while (1) for micro-controller programming. Minimum code
  • 15. • A pin on arduino can be set as input or output by using pinMode function. • pinMode(13, OUTPUT); // sets pin 13 as output pin • pinMode(13, INPUT); // sets pin 13 as input pin PinMode
  • 16. • digitalWrite(13, LOW); // Makes the output voltage on pin 13 , 0V • digitalWrite(13, HIGH); // Makes the output voltage on pin 13 , 5V • int buttonState = digitalRead(2); // reads the value of pin 2 in buttonState Reading/writing digital values
  • 17. • What is analog ? • It is continuous range of voltage values (not just 0 or 5V) • Why convert to digital ? • Because our microcontroller only understands digital. Analog to Digital Conversion
  • 20. • The Arduino Uno board contains 6 pins for ADC • 10-bit analog to digital converter • This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023 ADC in Arduino
  • 21. • analogRead(A0); // used to read the analog value from the pin A0 • analogWrite(2,128);//Used to create 50% duty cycle Reading/Writing Analog Values
  • 23. Input/Output Image from Theory and Practice of Tangible User Interfaces at UC Berkley
  • 25. Serial Communication • Compiling turns your program into binary data (ones and zeros) • Uploading sends the bits through USB cable to the Arduino • The two LEDs near the USB connector blink when data is transmitted • RX blinks when the Arduino is receiving data • TX blinks when the Arduino is transmitting data
  • 26. Some Commands • Serial.begin() - e.g., Serial.begin(9600) • Serial.print() or Serial.println() - e.g., Serial.print(value)
  • 27. // These constants won't change. They're used to give names to the pins used: const int analogInPin = A0; // Analog input pin that the potentiometer is attached to const int analogOutPin = 9; // Analog output pin that the LED is attached to int sensorValue = 0; // value read from the pot int outputValue = 0; // value output to the PWM (analog out) void setup() { Serial.begin(9600); // initialize serial communications at 9600 bps: } void loop() { sensorValue = analogRead(analogInPin); // read the analog in value: outputValue = map(sensorValue, 0, 1023, 0, 255); // map it to the range of the analog out: analogWrite(analogOutPin, outputValue); // change the analog out value: Serial.print("sensor = " ); // print the results to the serial monitor: Serial.print(sensorValue); Serial.print("t output = "); Serial.println(outputValue); // delay(2000); // wait 2 seconds before the next loop for the analog-to-digital converter to settle after the last reading: } ADC Example
  • 28. PIR Sensor Interfacing • used for motion detection • detect the Infrared waves emitting from a particular object • human or animal body emits heat energy in a form of infrared radiation • made of pyro-electric materials • when this material is exposed to heat then, it generates energy
  • 29. PIR Sensor Interfacing • consists a specially designed cover named Fresnel lens, which focuses the infrared signals onto the pyroelectric sensor.
  • 31. PIR Sensor Interfacing int sensor=7; //The output of PIR sensor connected to pin 7 int sensor_value; //variable to hold read sensor value void setup() { pinMode(sensor,INPUT); // configuring pin 7 as Input Serial.begin(9600); // To show output value of sensor in serial monitor } void loop() { sensor_value=digitalRead(sensor); // Reading sensor value from pin 7 Serial.println(sensor_value); // Printing output to serial monitor delay(500); }
  • 33. Cloud Platforms for Internet of Things (IoT) • Thingworx 8 IoT Platform
  • 34. Cloud Platforms for Internet of Things (IoT) • Microsoft Azure IoT Suite
  • 35. Cloud Platforms for Internet of Things (IoT) • Google Cloud’s IoT Platform • Pricing on Google Cloud is done on a per- minute basis, which is cheaper than other platforms.
  • 36. Cloud Platforms for Internet of Things (IoT) • IBM Watson IoT Platform
  • 37. Cloud Platforms for Internet of Things (IoT) • AWS IoT Platform • Amazon made it much easier for developers to collect data from sensors and Internet- connected devices. They help you collect and send data to the cloud and analyze that information to provide the ability to manage devices.
  • 38. IoT protocols • Divided in terms of the role they play within the network. • Communications (Wi-Fi, Bluetooth), • Data transmission (MQTT, CoAP, XMPP), • Security (DTLS), and • Device management as well as telemetry
  • 39. MQTT • Message Queuing Telemetry Transport • Lightweight messaging protocol that was developed by IBM and first released in 1999. • It uses the pub/sub pattern and translates messages between devices, servers, and applications.
  • 40. CoAP • Which easily translates to HTTP for integration with the existing Web • Specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. • CoAP is designed to enable simple, constrained devices to join the IoT even through constrained networks with low bandwidth and low availability. The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained (e.g., low-power, lossy) networks. • The nodes often have 8-bit microcontrollers with small amounts of ROM and RAM, while constrained networks such as IPv6 over Low- Power Wireless Personal Area Networks (6LoWPANs) often have high packet error rates and a typical throughput of 10s of kbit/s. • The protocol is designed for machine- to-machine (M2M) applications such as smart energy and building automation.

Editor's Notes

  • #13: Mention device manager for COM ports
  • #14: Before you show the NB, switch to desktop view and do it together with them