Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
IoT on AWS and NodeMCU
FOR LESS THAN 5 EUROS
June 2016
01
About Johann
• Tech Evangelist @Stylight
• 15+ years in tech
• In Germany for 2 years
• 7 years in San Francisco
doing sta...
Tweet me!
@romefort
@StylightTech
What are you going to learn?
4
• Discover ESP8266/NodeMCU
• Introduction to AWS IoT
• Hands-on
• Connecting a NodeMCU boar...
ESP8266
5
• Cheap: $2
• Very low power
consumption
• WIFI
• Deep-sleep mode
NodeMCU
• Micro-usb for flashing
and power
• 3v - 5v: Support Arduino
sensors
• Compatible Arduino/Lua
• CHEAP
6
You said CHEAP?
7
Why?
8
• Cheap is good in IoT because
it scales
• But no direct support of AWS
IoT because no TLS 1.2
module yet in ESP826...
If you just want to play around/prototype
9
Introduction to AWS IoT
10
• Serverless way to connect your IoT devices and start
processing data
• Supports MQTT, HTTP
• ...
AWS IoT Architecture
11source: http://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html
What’s a Thing?
12
• An IoT Device
• Sensors, actuators,
• In our case a NodeCMU board
What’s the Message Broker?
13
• Used to securely exchange messages following the publish-
subscribe pattern, between IoT a...
What’s the Rule Engine?
14
• Used to process messages and talk to other AWS
components like Lambda, DynamoDB, etc
• SQL-Ba...
What are Thing Shadows?
15
• Devices sometimes go offline
• A Thing Shadow provide a persistent
representation of a Thing
...
AWS IoT Console
16
Hands-on!
June 2016
01
We are going to:
18
• Create a Thing in AWS IoT
• Publish sensor data from our NodeMCU to
update our Thing Shadow
• Have a...
The Fritzing
19
Create a Thing
20
Open Serial Monitor
21
MQTT Client
22
Creating your Lambda
23
Configuring your Lambda
24
Write your Lambda
25
Questions?
Twitter: @romefort
tech.stylight.comRead our blog:
www.stylight.com
Upcoming SlideShare
Loading in …5
×

Getting started on IoT with AWS and NodeMCU for less than 5€

5,762 views

Published on

In this workshop we talk about how NodeMCU can be used to create a cost-effective solution to deploy your Internet of Things project, together with AWS IoT.

Published in: Software

Getting started on IoT with AWS and NodeMCU for less than 5€

  1. 1. IoT on AWS and NodeMCU FOR LESS THAN 5 EUROS June 2016 01
  2. 2. About Johann • Tech Evangelist @Stylight • 15+ years in tech • In Germany for 2 years • 7 years in San Francisco doing startups • Organizer of many meetups 2
  3. 3. Tweet me! @romefort @StylightTech
  4. 4. What are you going to learn? 4 • Discover ESP8266/NodeMCU • Introduction to AWS IoT • Hands-on • Connecting a NodeMCU board • Configuring Arduino environment for NodeMCU • Installing AWS SDK • Publishing sensor data to AWS IoT • Trigger rules to invoke Lambda function
  5. 5. ESP8266 5 • Cheap: $2 • Very low power consumption • WIFI • Deep-sleep mode
  6. 6. NodeMCU • Micro-usb for flashing and power • 3v - 5v: Support Arduino sensors • Compatible Arduino/Lua • CHEAP 6
  7. 7. You said CHEAP? 7
  8. 8. Why? 8 • Cheap is good in IoT because it scales • But no direct support of AWS IoT because no TLS 1.2 module yet in ESP8266 • Hackers always find workarounds
  9. 9. If you just want to play around/prototype 9
  10. 10. Introduction to AWS IoT 10 • Serverless way to connect your IoT devices and start processing data • Supports MQTT, HTTP • Secure - communication through use of X.509 Certificates • Can connect huge amount of sensors, store and process the data in real-time
  11. 11. AWS IoT Architecture 11source: http://docs.aws.amazon.com/iot/latest/developerguide/aws-iot-how-it-works.html
  12. 12. What’s a Thing? 12 • An IoT Device • Sensors, actuators, • In our case a NodeCMU board
  13. 13. What’s the Message Broker? 13 • Used to securely exchange messages following the publish- subscribe pattern, between IoT applications and Things. • MQTT to publish/subscribe • HTTP to publish • Note: MQTT uses TLS 1.2 which is not available in NodeMCU • Let’s use HTTP then!
  14. 14. What’s the Rule Engine? 14 • Used to process messages and talk to other AWS components like Lambda, DynamoDB, etc • SQL-Based language to select specific messages to be passed along.
  15. 15. What are Thing Shadows? 15 • Devices sometimes go offline • A Thing Shadow provide a persistent representation of a Thing • A Thing can sync its state to its Thing Shadow through the REST API
  16. 16. AWS IoT Console 16
  17. 17. Hands-on! June 2016 01
  18. 18. We are going to: 18 • Create a Thing in AWS IoT • Publish sensor data from our NodeMCU to update our Thing Shadow • Have a look at the MQTT Client • Create a Rule to trigger a lambda when humidity is > 50% • Publish the data to Slack
  19. 19. The Fritzing 19
  20. 20. Create a Thing 20
  21. 21. Open Serial Monitor 21
  22. 22. MQTT Client 22
  23. 23. Creating your Lambda 23
  24. 24. Configuring your Lambda 24
  25. 25. Write your Lambda 25
  26. 26. Questions? Twitter: @romefort tech.stylight.comRead our blog:
  27. 27. www.stylight.com

×