SlideShare a Scribd company logo
1 of 30
DIY Wireless Sensor Networks
18 Nov 2013, 9:00am, Dreamforce
Reid Carlberg, Salesforce.com, Director - Evangelism
@ReidCarlberg(Link)

Update: 30 Jan 2014 (a)
Safe harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties
materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results
expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be
deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other
financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any
statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new
functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our
operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any
litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our
relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our
service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to
larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is
included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent
fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor
Information section of our Web site.
Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently
available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions
based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these
forward-looking statements.
We’re Building a Wireless Sensor Network

REST API
XBee
Streaming API
Node JS

http://github.com/ReidCarlberg/DF13_WirelessSensorNetwork
Hands on making is the best way to learn
connected device app development.
Arduino – Open Source Prototyping Board.
ATmega328 Controller
32k of RAM
Easy to program (~C++)
No SSL.
Arduino Classes here Tues & Thurs
XBee
Cheap, easy
Serial communication
Self configuring
Stop by the Etherios table to learn more!
Raspberry Pi
Single board computer
Education focused
Runs Linux/Python/Node
Network Aware
SSL Capable
Salesforce Platform
APIs make it dead easy
Free developer edition
We all know how to use it
Bill Of Materials
Arduino Experimenter’s Kit: $85
Arduino XBee Shield: $25

XBee Pro Series 1 (2): $76
Raspberry Pi Starter Pack: $105
Xbee Adapter Kit: $10
Salesforce Developer Edition: FREE
9V Battery: $2
Total: $303
Breadboards
+/- conduct up and down.
#’s conduct side to side
A,b,c,d,e, etc don’t matter
Voltage goes to + (red)
Ground goes to – (blue)
Put component leads in different #
rows – up and down, not side to side
Wires
Red or Orange – Positive
Black or Green – Negative
Otherwise doesn’t matter
Polarity Sometimes Matters
Positive is voltage in.
Negative is voltage out.
Matters on: LED, TMP36

Doesn’t matter on: RESISTORS,
PIEZO

On an LED, the long lead
is POSITIVE.
Know Your Voltage
3.3V or 5.0V
Everything today is 5.0V
safe.
**Connect to 5V
Get Everything Out
It’s in a bag on top.
You can dig through the
explorer kit later.
Assemble the Shield
Stack the wireless shield
on top of the Arduino.
Be careful not to bend any
pins!
Add the XBee
Don’t force it.
Make sure all the pins are
in.
Add Components to Breadboard
LED: Positive lead up

Positive Leads

TMP36: Flat side, right.
Put things in the F column
toward the center.

+

+

+
Add Components to Breadboard (optional view)
“Fritzing” Style illustration
Note the vertical bars on
right – polarity reversed!

Careful:
RED & BLUE
REVERSED
Add Resistors to Negative LED leads
Resistors connect
negative LED leads with
GROUND.
Remember Fritzing may
not match your board!
Connect Power
+/Red to 5V
-/Blue to Ground
Connect Positive LED leads to Arduino
Purple LED to Digital 2
Green LED to Digital 3
Red LED to Digital 4
Connect Piezo Speaker
Top pin to Arduino Digital 5
Bottom pin to to -/Blue
(Ground)
Connect TMP36 – PLEASE DOUBLE CHECK
Middle to A0
Top to - / Blue (Ground)
Bottom to + / Red
Polarity Matters here –
reversed wiring will result in a
VERY HOT TMP36.
Plug In The Battery!
Purple & Green Light = initializing.
Purple (flashing) = Xbee activity

Green = ready
Red = alarm
Disco Lights = DISCO
If you smell something burning your
TMP36 is wired wrong. Disconnect your
battery, wait for it to cool & try again.
Raspberry Pi in action
Connected to the network.
GPIO cable to breadboard
XBee to TTYAMA0
Org Configuration

Apex REST

Streaming API
Communication Protocol
To Arduino

To Raspberry Pi

^Address:Messagen

REST format (single line)

Address = 2 char

{

Message = 5 char

“addr”:”A1”,

Specific Unit Ex: ^A1:ALARMn

“msg”:”hello”,

All Units Ex: ^00:DISCOn

“detail”:”tmp36,alarm,disco”
}
System Flow
Lessons Learned
Prototype, not production.
Test with a meaningful # of devices.

Easy to set up race conditions.
Arduino is limited.
Simple communication protocols are better.
@ReidCarlberg(Link)
http://github.com/ReidCarlberg/DF13_WirelessSensorNetwork

More Related Content

Similar to IoT Projects - DIY Wireless Sensor Network at Dreamforce 2013 #DevZoneLab

IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...
IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...
IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...ReidCarlberg
 
#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platformSalesforce Developers
 
CodeLive with Cynthia Thomas - Refactoring data dependent code.
CodeLive with Cynthia Thomas - Refactoring data dependent code.CodeLive with Cynthia Thomas - Refactoring data dependent code.
CodeLive with Cynthia Thomas - Refactoring data dependent code.JackGuo20
 
Create Lightning from Salesforce Lightning & IoT
Create Lightning from Salesforce Lightning & IoTCreate Lightning from Salesforce Lightning & IoT
Create Lightning from Salesforce Lightning & IoTNetStronghold
 
Developer Preview Live – Release Readiness LIVE, Spring '18
Developer Preview Live – Release Readiness LIVE, Spring '18Developer Preview Live – Release Readiness LIVE, Spring '18
Developer Preview Live – Release Readiness LIVE, Spring '18Salesforce Developers
 
Create Lightning with Lightning & IoT
Create Lightning with Lightning & IoTCreate Lightning with Lightning & IoT
Create Lightning with Lightning & IoTSalesforce Developers
 
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1Salesforce Finland
 
Live Coding with Salesforce Developers: Adding CI to Your Salesforce Project
Live Coding with Salesforce Developers: Adding CI to Your Salesforce ProjectLive Coding with Salesforce Developers: Adding CI to Your Salesforce Project
Live Coding with Salesforce Developers: Adding CI to Your Salesforce ProjectDeveloper Force
 
Three Simple Steps to Create a Thriving Mobile Community
Three Simple Steps to Create a Thriving Mobile CommunityThree Simple Steps to Create a Thriving Mobile Community
Three Simple Steps to Create a Thriving Mobile Communityjohngifford
 
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例Takahiro Kawabata
 
Real-time Salesforce1 Dashboards with Raspberry-pi & Heroku
Real-time Salesforce1 Dashboards with Raspberry-pi & HerokuReal-time Salesforce1 Dashboards with Raspberry-pi & Heroku
Real-time Salesforce1 Dashboards with Raspberry-pi & HerokuSalesforce Developers
 
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...ReidCarlberg
 
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application Integration
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application IntegrationGuidewire Connections 2023 DE-4 Using AI to Accelerate Application Integration
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application IntegrationBrianPetrini
 
SAP Booth Showcase Overview at HMUSA - IMTS 2018
SAP Booth Showcase Overview at HMUSA - IMTS 2018SAP Booth Showcase Overview at HMUSA - IMTS 2018
SAP Booth Showcase Overview at HMUSA - IMTS 2018Miranda LaBate
 
Monitor your car from the cloud! DIY Telematics and the Internet of Things
Monitor your car from the cloud! DIY Telematics and the Internet of ThingsMonitor your car from the cloud! DIY Telematics and the Internet of Things
Monitor your car from the cloud! DIY Telematics and the Internet of ThingsTom Gersic
 
Gesture Controlled Interactions with Platform Events and IoT Explorer
Gesture Controlled Interactions with Platform Events and IoT ExplorerGesture Controlled Interactions with Platform Events and IoT Explorer
Gesture Controlled Interactions with Platform Events and IoT ExplorerSalesforce Developers
 

Similar to IoT Projects - DIY Wireless Sensor Network at Dreamforce 2013 #DevZoneLab (20)

IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...
IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...
IoT, M2M: Three Events, Three Takeaways, Three To-Dos (IoT & The Connected De...
 
#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform#DF17Recap series: Integrate apps easier with the Salesforce platform
#DF17Recap series: Integrate apps easier with the Salesforce platform
 
Dreamforce18 update platform
Dreamforce18 update platformDreamforce18 update platform
Dreamforce18 update platform
 
CodeLive with Cynthia Thomas - Refactoring data dependent code.
CodeLive with Cynthia Thomas - Refactoring data dependent code.CodeLive with Cynthia Thomas - Refactoring data dependent code.
CodeLive with Cynthia Thomas - Refactoring data dependent code.
 
Create Lightning from Salesforce Lightning & IoT
Create Lightning from Salesforce Lightning & IoTCreate Lightning from Salesforce Lightning & IoT
Create Lightning from Salesforce Lightning & IoT
 
Developer Preview Live – Release Readiness LIVE, Spring '18
Developer Preview Live – Release Readiness LIVE, Spring '18Developer Preview Live – Release Readiness LIVE, Spring '18
Developer Preview Live – Release Readiness LIVE, Spring '18
 
Create Lightning with Lightning & IoT
Create Lightning with Lightning & IoTCreate Lightning with Lightning & IoT
Create Lightning with Lightning & IoT
 
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1
Salesforce Essentials Helsinki 10.5.2017 ExtendCRM Track1
 
API Design for Your Packaged App
API Design for Your Packaged AppAPI Design for Your Packaged App
API Design for Your Packaged App
 
Live Coding with Salesforce Developers: Adding CI to Your Salesforce Project
Live Coding with Salesforce Developers: Adding CI to Your Salesforce ProjectLive Coding with Salesforce Developers: Adding CI to Your Salesforce Project
Live Coding with Salesforce Developers: Adding CI to Your Salesforce Project
 
Three Simple Steps to Create a Thriving Mobile Community
Three Simple Steps to Create a Thriving Mobile CommunityThree Simple Steps to Create a Thriving Mobile Community
Three Simple Steps to Create a Thriving Mobile Community
 
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例
パートナーオフィスアワー (Partner Office Hour) -Monthly- ALMとDX事例
 
Real-time Salesforce1 Dashboards with Raspberry-pi & Heroku
Real-time Salesforce1 Dashboards with Raspberry-pi & HerokuReal-time Salesforce1 Dashboards with Raspberry-pi & Heroku
Real-time Salesforce1 Dashboards with Raspberry-pi & Heroku
 
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...
ThingsExpo: Enterprise Internet of Things (IoT) Patterns, Opportunities and P...
 
API Design for Your Packaged App
API Design for Your Packaged AppAPI Design for Your Packaged App
API Design for Your Packaged App
 
Salesforce for Platform
Salesforce for PlatformSalesforce for Platform
Salesforce for Platform
 
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application Integration
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application IntegrationGuidewire Connections 2023 DE-4 Using AI to Accelerate Application Integration
Guidewire Connections 2023 DE-4 Using AI to Accelerate Application Integration
 
SAP Booth Showcase Overview at HMUSA - IMTS 2018
SAP Booth Showcase Overview at HMUSA - IMTS 2018SAP Booth Showcase Overview at HMUSA - IMTS 2018
SAP Booth Showcase Overview at HMUSA - IMTS 2018
 
Monitor your car from the cloud! DIY Telematics and the Internet of Things
Monitor your car from the cloud! DIY Telematics and the Internet of ThingsMonitor your car from the cloud! DIY Telematics and the Internet of Things
Monitor your car from the cloud! DIY Telematics and the Internet of Things
 
Gesture Controlled Interactions with Platform Events and IoT Explorer
Gesture Controlled Interactions with Platform Events and IoT ExplorerGesture Controlled Interactions with Platform Events and IoT Explorer
Gesture Controlled Interactions with Platform Events and IoT Explorer
 

Recently uploaded

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
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 challengesrafiqahmad00786416
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
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 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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 WoodJuan lago vázquez
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

Recently uploaded (20)

Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

IoT Projects - DIY Wireless Sensor Network at Dreamforce 2013 #DevZoneLab

  • 1. DIY Wireless Sensor Networks 18 Nov 2013, 9:00am, Dreamforce Reid Carlberg, Salesforce.com, Director - Evangelism @ReidCarlberg(Link) Update: 30 Jan 2014 (a)
  • 2. Safe harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 3. We’re Building a Wireless Sensor Network REST API XBee Streaming API Node JS http://github.com/ReidCarlberg/DF13_WirelessSensorNetwork
  • 4. Hands on making is the best way to learn connected device app development.
  • 5. Arduino – Open Source Prototyping Board. ATmega328 Controller 32k of RAM Easy to program (~C++) No SSL. Arduino Classes here Tues & Thurs
  • 6. XBee Cheap, easy Serial communication Self configuring Stop by the Etherios table to learn more!
  • 7. Raspberry Pi Single board computer Education focused Runs Linux/Python/Node Network Aware SSL Capable
  • 8. Salesforce Platform APIs make it dead easy Free developer edition We all know how to use it
  • 9. Bill Of Materials Arduino Experimenter’s Kit: $85 Arduino XBee Shield: $25 XBee Pro Series 1 (2): $76 Raspberry Pi Starter Pack: $105 Xbee Adapter Kit: $10 Salesforce Developer Edition: FREE 9V Battery: $2 Total: $303
  • 10. Breadboards +/- conduct up and down. #’s conduct side to side A,b,c,d,e, etc don’t matter Voltage goes to + (red) Ground goes to – (blue) Put component leads in different # rows – up and down, not side to side
  • 11. Wires Red or Orange – Positive Black or Green – Negative Otherwise doesn’t matter
  • 12. Polarity Sometimes Matters Positive is voltage in. Negative is voltage out. Matters on: LED, TMP36 Doesn’t matter on: RESISTORS, PIEZO On an LED, the long lead is POSITIVE.
  • 13. Know Your Voltage 3.3V or 5.0V Everything today is 5.0V safe. **Connect to 5V
  • 14. Get Everything Out It’s in a bag on top. You can dig through the explorer kit later.
  • 15. Assemble the Shield Stack the wireless shield on top of the Arduino. Be careful not to bend any pins!
  • 16. Add the XBee Don’t force it. Make sure all the pins are in.
  • 17. Add Components to Breadboard LED: Positive lead up Positive Leads TMP36: Flat side, right. Put things in the F column toward the center. + + +
  • 18. Add Components to Breadboard (optional view) “Fritzing” Style illustration Note the vertical bars on right – polarity reversed! Careful: RED & BLUE REVERSED
  • 19. Add Resistors to Negative LED leads Resistors connect negative LED leads with GROUND. Remember Fritzing may not match your board!
  • 20. Connect Power +/Red to 5V -/Blue to Ground
  • 21. Connect Positive LED leads to Arduino Purple LED to Digital 2 Green LED to Digital 3 Red LED to Digital 4
  • 22. Connect Piezo Speaker Top pin to Arduino Digital 5 Bottom pin to to -/Blue (Ground)
  • 23. Connect TMP36 – PLEASE DOUBLE CHECK Middle to A0 Top to - / Blue (Ground) Bottom to + / Red Polarity Matters here – reversed wiring will result in a VERY HOT TMP36.
  • 24. Plug In The Battery! Purple & Green Light = initializing. Purple (flashing) = Xbee activity Green = ready Red = alarm Disco Lights = DISCO If you smell something burning your TMP36 is wired wrong. Disconnect your battery, wait for it to cool & try again.
  • 25. Raspberry Pi in action Connected to the network. GPIO cable to breadboard XBee to TTYAMA0
  • 27. Communication Protocol To Arduino To Raspberry Pi ^Address:Messagen REST format (single line) Address = 2 char { Message = 5 char “addr”:”A1”, Specific Unit Ex: ^A1:ALARMn “msg”:”hello”, All Units Ex: ^00:DISCOn “detail”:”tmp36,alarm,disco” }
  • 29. Lessons Learned Prototype, not production. Test with a meaningful # of devices. Easy to set up race conditions. Arduino is limited. Simple communication protocols are better.