This document discusses using serverless architectures with AWS services like AWS IoT, Lambda, DynamoDB, and S3 to build IoT applications without having to manage servers. It provides examples of how to connect devices to AWS IoT and trigger AWS Lambda functions in response to device events. These functions can then interact with other AWS services like DynamoDB, S3, and external APIs to implement applications like counting item usage from an IoT button and storing the data in DynamoDB, or starting a device when the button is pressed by invoking an external API via Lambda. The document also provides guidance on setting up a Raspberry Pi with sensors for local IoT development and connecting devices to AWS IoT.
32. Push a button to get directions
to the right meal within your
budget. (Integrate time of day,
weather, Google Directions,
Yelp, and Stripe)
Source: https://medium.com/@_adeel/nerding-out-with-the-amazon-iot-
button-84a6e14b6b28#.ekd5hsnez
33. How does it work?
Invoke a Lambda function
Put object in an S3 bucket
Insert, Update, Read from a
DynamoDB table
Publish to an SNS Topic
or Endpoint
Publish to a Kinesis stream
Kinesis Firehose > Redshift
Republish to AWS IoT
AWS IoT
35. But wait, I live in the UK and I
want to do this. Right now!
36. HARDWAREYOU WILL(& MIGHT) NEED
• A Raspberry Pi
• Electronics Kit
• Try the SunFounder 37 modules Sensor Kit v2.0 for
Raspberry Pi 3, 2, Model B+ with 40-Pin GPIO Extension
Board & Jump Wires
• http://www.amazon.co.uk/dp/B014PF05ZA
• Example tutorial
• Raspberry Pi Sense Hat (optional fun)
• https://www.raspberrypi.org/products/sense-hat/
37. SETTING UPFOR GPIO/SENSE HAT
Your own electronics/sensor build
C (for embedded C)
http://wiringpi.com
Python Wrapper Module for WiringPI
https://github.com/WiringPi/WiringPi-Python
For the Sense Hat
Python Module
https://github.com/RPi-Distro/python-sense-hat
38. SETTING UPFORAWS IOT
Use the AWS Console to create your device
Download the required crypto materials & save the C header file contents with
your endpoint, cert, and key details
Download & set up your chosen AWS IoT SDK
Get them at : https://aws.amazon.com/iot/sdk/
Building the C SDK on the Raspberry Pi requires the CppUTest library from:
https://github.com/cpputest/cpputest/releases/tag/v3.6
Get started with the sample applications that come with the AWS SDKs
39. EXAMPLES & DEMOS
Emulating the AWS IoT Button (C++)
https://github.com/ianmas-aws/iot-button-emulator
Controlling the Sense Hat via AWS IoT Device Shadow (Python)
https://github.com/ianmas-aws/PiPyIoT
40.
41. Go Build, Have Fun
Ian Massingham
Technology Evangelist, AWS
IanMmmm