SlideShare une entreprise Scribd logo
1  sur  40
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.

Contenu connexe

Tendances

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-finalJohn 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 servicesSoumya Kanti Datta
 
Ppt 3 - IOT logic design
Ppt   3 - IOT logic designPpt   3 - IOT logic design
Ppt 3 - IOT logic designudhayakumarc1
 
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 tKunal Bangar
 
Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2Internet of Things Protocol - Session 2
Internet of Things Protocol - Session 2NEEVEE Technologies
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiespavan penugonda
 
IoT Node-Red Presentation
IoT  Node-Red PresentationIoT  Node-Red Presentation
IoT Node-Red PresentationThe 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
 
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-homevishal 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 protocolCysinfo 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-firmwareNitesh Malviya
 

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

Similaire à IOT beginnners

Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming FamiliarizationAmit Kumer Podder
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfssusere5db05
 
Introduction to the Arduino
Introduction to the ArduinoIntroduction to the Arduino
Introduction to the ArduinoWingston
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agricultureAtit Patumvan
 
Null mumbai-iot-workshop
Null mumbai-iot-workshopNull mumbai-iot-workshop
Null mumbai-iot-workshopNitesh Malviya
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 
Introduction to Arduino.pptx
Introduction to Arduino.pptxIntroduction to Arduino.pptx
Introduction to Arduino.pptxAkshat Bijronia
 
Introduction to Arduino Webinar
Introduction to Arduino WebinarIntroduction to Arduino Webinar
Introduction to Arduino WebinarFragiskos Fourlas
 
introductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfintroductiontoarduino-111120102058-phpapp02.pdf
introductiontoarduino-111120102058-phpapp02.pdfHebaEng
 
teststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxteststststststLecture_3_2022_Arduino.pptx
teststststststLecture_3_2022_Arduino.pptxethannguyen1618
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Future Insights
 

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

Plus de udhayakumarc1

Computer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- introComputer Architecture and Organiaztion- intro
Computer Architecture and Organiaztion- introudhayakumarc1
 

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

Dernier

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Dernier (20)

Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

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.

Notes de l'éditeur

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