SlideShare uma empresa Scribd logo
1 de 37
Ardiuno and the IoT
Or
How I learned to stop worrying and love the Internet of
Things
What's this
“Internet of Things” thing?
Networking physical “things” into an information system that
can be read, modified and interpreted to provide value.
“It is not enough to say I am going
to Internet-connect the water
cooler.”
"I’m going to Internet-connect a
tractor.”
Chad Jones
VP of product strategy for Xively
Device to Device (D2D), Machine to Machine (M2M),
Web of Things (WoT), thingernet
GE's Industrial Internet, Cisco's Internet of Everything
Today's Internet of Things deployments are silos of
proprietary or pseudo-open tech leading to an
Internet of Nothing
IoT a.k.a.
Largest Technology Market Ever
“1 Trillion devices by
2025”
“…will surpass the
mobile phone
market…”
“Market impact $4.5
Trillion by 2020”
“25 billion devices by
2020…”
The Hype
Xively
IoT Primitives
Sensors and Actuators
Flow Rate Pressure Locked/
Unlocked
Location Use/Control
Full/Empty
Open/
Closed
Weight On/Off Hot/Cold
Xively
Xively
Use your PaaS of Choice:
EVO Things, linkafy, Xively,
Google App Engine, Heroku, etc
Or
AWS, Nitrous.IO, Twitter, etc
Or
etc etc etc
How can I too contribute to the
glut of Silos?
•Started 2005
•Open-source electronics
prototyping platform
•Open-source hardware
•Open-source software
•Hardware based on 8-bit Atmel
AVR microcontroller or 32-bit
Atmel ARM
•Popular in the maker
community
Arduino 101
51 Flavours and counting
•Uno is current “standard”, uses ATMega328 < $20
•Leonardo uses ATMega32u4 < $18
•Mini/Nano uses Atmega328P < $5
http://www.ebay.com/sch/i.html?_nkw=arduino+mini+328
ATmega328 @ 16MHz
Flash Memory: 32 KB (2 KB boot loader); SRAM: 2 KB, EEPROM: 1 KB
8 Analog (3 PWM) and 14 Digital IO pins
No built-in USB circuitry, use an FTDI cable to program
DC input 5V up to 12V
What Can You Do?
•Sensors ( to sense stuff )
Push buttons, touch pads, tilt switches.
Variable resistors (eg. volume knob / sliders)
Photoresistors (sensing light levels)
Thermistors (temperature)
Ultrasound (proximity range finder)
•Actuators ( to do stuff )
Lights, LEDs, LCDs
Motors
Speakers
Lasers
•Interface between real and digital worlds
Arduino
IDE
http://www.arduino.cc/en/Guide/Environment
•Integrated
Development
Environment (IDE)
•All-in-one
programming tool with
built in compiler
•Arduino language is
C-like
Compile
Upload
to Board Save
Messages
Serial
Monitor
Hello Blinky World
Cadmium-Sulfide
Photoresistor
•Cheap. 20Pcs $1.68 on eBay
•w/ free shipping
•Light Resistance 45-140KΩ
•Dark resistance 10MΩ
•Use a 10K pulldown resistor to ground
DHT11 Temperature and
Humidity Sensor
•Cheap. $1.50 on eBay w/ free shipping
•Slow. 2 Hz max sampling rate
•0-50°C temperature ±2°C accuracy
•20-80% humidity 5% accuracy
•Use a 10K pullup from the data pin to VCC
HC-SR04 Ultrasonic Sensor
•Cheap. $1.50 on eBay w/ free shipping
•2cm~500 cm resolution : 0.3 cm
•Trig to any digital output
•Echo to any digital input
•Pulse Trig, read echo, calculate distance
•Pace of Sound = 1 / Speed of Sound =
•1 / 0.03435 = 29.1 ųs/cm
Ethernet Shield
•Expensive. $45/each. Ouch
•RJ45 Ethernet jack
•SPI Bus
•10/100Mbps
•http://arduino.cc/en/Reference/Ethernet
Wi-Fi Shield
•Expensive. $85/each. Wow
•802.11b/g
•WEP and WPA2
•Connection with Arduino on SPI port
•Onboard micro-SD card slot
•http://arduino.cc/en/Main/ArduinoWiFiShield
CC3000 Wi-Fi
Expensive. $35/each on breakout board with chip antenna
802.11b/g, open/WEP/WPA/WPA2 security, TKIP & AES
Built in TCP/IP stack with a "BSD socket" interface
Can connect to an access point but it cannot be an access point.
SSID scanning, connection, DHCP, DNS lookup, ping,
UDP/TCP client & TCP server connections. Up to 4 concurrent sockets
SPI Interface
http://learn.adafruit.com/adafruit-cc3000-wifi
XBee Radios
•Expensive. $20+/each
•2.4GHz 802.15.4
•ZigBee wireless networking protocol
•3.3V; 250Kbps; ~120m range
•6 analog input pins
•8 digital IO pins
433Mhz RF Transmitter +
Receiver Module
lCheap. $1.28/set on eBay w/ free shipping
l~20-200m LOS; 4Kbps
lNoisy, interference from door bell, garage openers, cordless phone
lEasy to use with VirtualWire Library
lhttps://www.youtube.com/watch?v=3Rs3SJBsiYE
lhttp://www.airspayce.com/mikem/arduino/VirtualWire/
Other cheap modules are:
315/330MHz,
2.4GHz
FCC regulates 433MHz:
~no more than 10 minutes
on every hour
http://xively.com
2007 Pachube → 2012 Cosm → 2013 Xively
https://xively.com/dev/tutorials/
REST
GET returns:
{"id":"temperature",
"current_value":"73",
"at":"2014-03-25T16:23:51.882164Z",
"max_value":"26214.0",
"min_value":"0.0",
"unit":{"symbol":"F","label":"Fahrenheit"},"version":"1.0.0"}
https://xively.com/dev/docs/api/quick_reference/api_resources/
Create POST
Read GET
Update PUT
Delete DELETE
•YouTube
Microcontrollers
https://www.youtube.com/results?search_q
uery=microcontroller%20playlist
IoT
https://www.youtube.com/results?search_q
uery=internet%20of%20things
http://opensourcehardwaregroup.com/thearduinocourse/

Mais conteúdo relacionado

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

How I learned to stop worrying and love the Internet of Things