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
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

What's hot

Chapter 1 pdf
Chapter 1 pdfChapter 1 pdf
Chapter 1 pdf
ChAnushaECE
 
Soldatos io t-academy-cosmote-231117-v-final
Soldatos io t-academy-cosmote-231117-v-finalSoldatos io t-academy-cosmote-231117-v-final
Soldatos io t-academy-cosmote-231117-v-final
John Soldatos
 
An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m services
Soumya Kanti Datta
 
Ppt 3 - IOT logic design
Ppt   3 - IOT logic designPpt   3 - IOT logic design
Ppt 3 - IOT logic design
udhayakumarc1
 
Sources of IoT (JNTUK - UNIT 1)
Sources of IoT (JNTUK - UNIT 1)Sources of IoT (JNTUK - UNIT 1)
Sources of IoT (JNTUK - UNIT 1)
FabMinds
 
Logical design of io t
Logical design of io tLogical design of io t
Logical design of io t
Kunal Bangar
 
Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2
NEEVEE Technologies
 
Unit 4
Unit 4Unit 4
IoT heap 1
IoT heap 1IoT heap 1
IoT heap 1
SushrutaMishra1
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologies
pavan penugonda
 
IoT Node-Red Presentation
IoT  Node-Red PresentationIoT  Node-Red Presentation
IoT Node-Red Presentation
The IOT Academy
 
Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network
usman sarwar
 
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
Open Mobile Alliance
 
IoT and m2m
IoT and m2mIoT and m2m
IoT and m2m
pavan penugonda
 
Case studies in io t smart-home
Case studies in io t  smart-homeCase studies in io t  smart-home
Case studies in io t smart-home
vishal choudhary
 
Attacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocolAttacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocol
Cysinfo Cyber Security Community
 
Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.
sayed78
 
Null mumbai-reversing-IoT-firmware
Null mumbai-reversing-IoT-firmwareNull mumbai-reversing-IoT-firmware
Null mumbai-reversing-IoT-firmware
Nitesh Malviya
 
Python urllib
Python urllibPython urllib
Python urllib
udhayakumarc1
 
Domain specific IoT
Domain specific IoTDomain specific IoT
Domain specific IoT
Lippo Group Digital
 

What's hot (20)

Chapter 1 pdf
Chapter 1 pdfChapter 1 pdf
Chapter 1 pdf
 
Soldatos io t-academy-cosmote-231117-v-final
Soldatos io t-academy-cosmote-231117-v-finalSoldatos io t-academy-cosmote-231117-v-final
Soldatos io t-academy-cosmote-231117-v-final
 
An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m services
 
Ppt 3 - IOT logic design
Ppt   3 - IOT logic designPpt   3 - IOT logic design
Ppt 3 - IOT logic design
 
Sources of IoT (JNTUK - UNIT 1)
Sources of IoT (JNTUK - UNIT 1)Sources of IoT (JNTUK - UNIT 1)
Sources of IoT (JNTUK - UNIT 1)
 
Logical design of io t
Logical design of io tLogical design of io t
Logical design of io t
 
Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2
 
Unit 4
Unit 4Unit 4
Unit 4
 
IoT heap 1
IoT heap 1IoT heap 1
IoT heap 1
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologies
 
IoT Node-Red Presentation
IoT  Node-Red PresentationIoT  Node-Red Presentation
IoT Node-Red Presentation
 
Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network
 
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
IoT projects in Eclipse Foundation using LwM2M (IoT World 2017 Workshop)
 
IoT and m2m
IoT and m2mIoT and m2m
IoT and m2m
 
Case studies in io t smart-home
Case studies in io t  smart-homeCase studies in io t  smart-home
Case studies in io t smart-home
 
Attacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocolAttacking and Crashing IoT Devices via Bluetooth LE protocol
Attacking and Crashing IoT Devices via Bluetooth LE protocol
 
Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.
 
Null mumbai-reversing-IoT-firmware
Null mumbai-reversing-IoT-firmwareNull mumbai-reversing-IoT-firmware
Null mumbai-reversing-IoT-firmware
 
Python urllib
Python urllibPython urllib
Python urllib
 
Domain specific IoT
Domain specific IoTDomain specific IoT
Domain specific IoT
 

Similar to IOT beginnners

Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
Amit Kumer Podder
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
DhirajPatel58
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
ssusere5db05
 
Arduino course
Arduino courseArduino course
Arduino course
Ahmed Shelbaya
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
Md. Nahidul Islam
 
ARDUINO Presentation1.pptx
ARDUINO Presentation1.pptxARDUINO Presentation1.pptx
ARDUINO Presentation1.pptx
SourabhSalunkhe10
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
Mujahid Hussain
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
Atit Patumvan
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
Nitesh Malviya
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
Meriem Jaoued
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
Akshat Bijronia
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
Fragiskos Fourlas
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
HebaEng
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
ethannguyen1618
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
Future Insights
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
rajalakshmi769433
 

Similar to IOT beginnners (20)

Arduino
ArduinoArduino
Arduino
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino course
Arduino courseArduino course
Arduino course
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the Arduino
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
ARDUINO Presentation1.pptx
ARDUINO Presentation1.pptxARDUINO Presentation1.pptx
ARDUINO Presentation1.pptx
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshop
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptx
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino Webinar
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdf
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptx
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
 

More from udhayakumarc1

CA introduction
CA  introductionCA  introduction
CA introduction
udhayakumarc1
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
Ppt 11 - netopeer
Ppt   11 - netopeerPpt   11 - netopeer
Ppt 11 - netopeer
udhayakumarc1
 
Ppt 5 -io t levels
Ppt   5 -io t levelsPpt   5 -io t levels
Ppt 5 -io t levels
udhayakumarc1
 
Ppt 1 -io t - intro
Ppt   1 -io t - introPpt   1 -io t - intro
Ppt 1 -io t - intro
udhayakumarc1
 
Computer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- introComputer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- intro
udhayakumarc1
 

More from udhayakumarc1 (6)

CA introduction
CA  introductionCA  introduction
CA introduction
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
Ppt 11 - netopeer
Ppt   11 - netopeerPpt   11 - netopeer
Ppt 11 - netopeer
 
Ppt 5 -io t levels
Ppt   5 -io t levelsPpt   5 -io t levels
Ppt 5 -io t levels
 
Ppt 1 -io t - intro
Ppt   1 -io t - introPpt   1 -io t - intro
Ppt 1 -io t - intro
 
Computer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- introComputer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- intro
 

Recently uploaded

Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 

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
  • 22.
  • 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

  1. Mention device manager for COM ports
  2. Before you show the NB, switch to desktop view and do it together with them