SlideShare a Scribd company logo
Getting Started with IoTon
16th April 2020
Albert Suwandhi
Online Talk
Albert Suwandhi
IT Infrastructure – Sinarmas Group
IT Lecturer
• STMIK IBBI – Medan
• Universitas Pelita Harapan - Medan
Bachelor Degree – Electrical Engineering - USU
Master Degree – Information Technology – Binus
Certifications :
• Cisco CCNA and CCNP - Enterprise
• Mikrotik MTCRE and MTCTCE
• AWS Certified Solution Architect – Associate
• Azure Fundamentals
GitHub : https://github.com/albertsuwandhi
LinkedIn : https://id.linkedin.com/in/albertsuwandhi
SlideShare : https://www.slideshare.net/albertsuwandhi
Telegram : @albertsuwandhi
ABCDI : AI, Blockchain, Cloud, Data, IoT
Agenda
• IoT Concepts and Architecture
• IoT Services on AWS
• Demo :
• Create and Connect Things to AWS Cloud
• Ingest Sensor Data to Cloud
• Trigger actions based on telemetry data
• Visualization
• Device Shadow (Tentative)
IoT Concepts and Architecture
AWS UG Indonesia Meetup - AWS IoT Core
AWS UG Indonesia Meetup - AWS IoT Core
IoT Definition
• “The Internet of Things (IoT) is the network of physical objects that
contain embedded technology to communicate and sense or interact
with their internal states or the external environment” - Gartner
• “The Internet of things (IoT) is the inter-networking of physical
devices, vehicles (also referred to as "connected devices" and "smart
devices"), buildings, and other items embedded with electronics,
software, sensors, actuators, and network connectivity which enable
these objects to collect and exchange data” - Wikipedia
AWS UG Indonesia Meetup - AWS IoT Core
AWS UG Indonesia Meetup - AWS IoT Core
Smart Devices
20B IoT Devices
Smart City
250 PB per day
Connected Factory
1 PB per day
Stadium
200 TB per game
People
1.5 GB per day
Smart Home
50 GB per day
Autonomous
Vehicle
5 TB per day
Smart Office
150 GB per day
1 million/hour
new devices coming online by 2020
AWS UG Indonesia Meetup - AWS IoT Core
IoT Use Case - SmarTernak
Product by : DycodeX – Indonesia
IoT Use Case – Predictive Maintenance
• Industrial IoT - Predictive Maintenance
• Measure Vibration, Temperature,
RPM, etc on machine
• Detect Anomalies and Trigger Alert
• Powered by Machine Learning - Edge
AI
• Energy Harvesting - Heat
Product by : Yokogawa - Japan
AWS UG Indonesia Meetup - AWS IoT Core
Nobody just buys IoT technology… They seek for
business outcomes!!
What Businesses are asking for??
IoT Architecture
* Microsoft’s Definition of IoT
AWS UG Indonesia Meetup - AWS IoT Core
Illustration by Andri Yadi
ML at Edge: Train in the cloud, infer at the edge
Illustration by Andri Yadi
IoT projects can be quite complex
How can help to simplify IoT
Let See
AWS IoT Architecture
AWS IoT Architecture
AWS UG Indonesia Meetup - AWS IoT Core
AWS IoT Core
AWS IoT Core is a managed service that lets connected devices easily and securely
interact with cloud applications and other devices
Why AWS IoT Core?
• AWS ecosystem with easy access to services like Kinesis, S3,
ML,Lambda, DynamoDB, CloudWatch, CloudTrail, Elasticsearch, etc.
• Serverless: Scalable to massive amount of devices without having to
manage any infrastructure
• Security: End-to-end encryption. You can't authenticate unless you
have the right certificate. Policies are used for authorization. In Transit
data uses TLS 1.2
How AWS IoT Core Works
AWS IoT Core acts as Message Broker
MQTT
• OASIS standard protocol (v3.1.1)
• Lightweight, Pub/Sub protocol
for connected devices
• Used on oil rigs, connected
trucks, health care.
• Suitable for Low Bandwidth and
High Latency condition
• Needs a broker
MQTT vs HTTPS
• 93x faster throughput
• 11.89x less battery to send
• 170.9x less battery to receive
• 50% less power to keep connected
• 8x less network overhead
Source: http://stephendnicholas.com/archives/1217
Pub/Sub Illustration
AWS IoT Core Protocol Support
Authentication and Encryption
Authorization
In Summary : Authentication and Authorization
Every IoT Device needs “certificates” and “policies” in order to give
them the right accesses and permissions. Certificates protect the
transmission of data between your devices and AWS
IoT. Policies enable devices or users to access specific resources and
actions. This is to prevent any connections that are unnecessary, as well
as improve security all around.
Demo
Creating Thing and Connect to AWS IoT Core
Ingest Sensor Data to Cloud
Amazon S3 output bucket
IoT Action
Certificate + Policy
AWS SNS
AWS Lambda
AWS Lambda
IoT Rule
AWS EC2
Amazon CloudWatch Metric
AWS CLOUD
MQTT over TLS
SELECT * FROM '$aws/things/ESP32-IoT/Sensor'
SELECT * FROM '$aws/things/ESP32-IoT/Sensor'
SELECT * FROM '$aws/things/ESP32-IoT/Sensor'
SELECT ADC FROM '$aws/things/ESP32-IoT/Sensor' WHERE ADC>3600
Device Shadow
AWS IoT Core
DEMO ARCHITECTURE
Telegram Bot
Users
$aws/things/ESP32-IoT/Sensor
$aws/things/ESP32-IoT/shadow/update/delta
$aws/things/ESP32-IoT/shadow/update
$aws/things/ESP32-IoT/Output
NODE – ESP32
Illustration by Albert Suwandhi
Acting on Data – Anything Wrong?
AWS IoT Rule Engine
Available Actions
AWS IoT Rule Engine
• Connect IoT to other services
• Transform message content : SELECT
• Enrich message with contextual data : FROM
• Filter erroneous or unnecessary messages : WHERE
• Route based on content : ACTION
• Decouples device software and cloud applications
Example – Sending Events to AWS Services
AWS UG Indonesia Meetup - AWS IoT Core
Demo
Trigger actions based on telemetry data
Visualization
Additional Slides
AWS Device Shadow
Problem - Devices with Unreliable Networks
Digital Twins Concepts
• Applications can interact with the digital counterpart of the device
which is always in sync with the state of the physical device. When an
application sends the command, it flows via the digital twin, which
tracks the delta between the desired state set by the application and
the last reported state of the device.
• The IoT platform will ensure that the state of the physical device
matches its corresponding digital twin. Even if the device is offline
when the command is sent from the application, the platform will
sync the state when the device connects the next time. This
functionality reduces the burden on the developers by providing an
intelligent state machine for all the connected devices.
Digital Twins Concepts
AWS Digital Twins - AWS IoT Device Shadow
AWS IoT Device Shadow
• Device Shadow is the virtual representation of our physical Device. As per AWS IoT
Platform is concerned, we create a Thing in AWS IoT Console. Things are nothing
but the Devices, those are connected to AWS IoT Platform.
• It is a JSON document that is used to store and access current state information for
a device. This service maintains a shadow (virtual Device State) for each and every
device you connect to AWS IoT Platform. We can use the shadow document to get
the current state of the device and based on that state, we can take action on the
device, we can also monitor and control our Devices based on our needs over
(MQTT or HTTP) protocols, regardless of whether the device is connected to the
Internet. Each device’s shadow is uniquely identified by the name of the
corresponding Thing(Device associated with).
• Device Shadow service acts as a communication medium between your device and
application. As this service provides different MQTT topics (or) RESTful API to
interact with device. Using these MQTT topics (or) RESTful API we can also get,
update and delete Shadow Document.
• Use the AWS IoT Shadow in situations where a command persists for later use, even
if the device is currently offline.
AWS Device Shadow Flows
AWS IoT Shadow MQTT Topics
AWS Shadow Delta - Example
AWS Shadow Delta - Example
AWS Shadow Delta - Example
What’s Next?
• Explore edge computing : AWS Greengrass
• Add Analytics and Machine Learning
• etc
Discussion Time
https://t.me/AWSUserGroupID

More Related Content

PPTX
Do You Really Need to Evolve From Monitoring to Observability?
PPTX
Major Container Platform Comparison
PDF
Practical DevSecOps Course - Part 1
PDF
"Platform Engineering in practice — Why and How to start", Serg Hospodarets
PDF
More Than Monitoring: How Observability Takes You From Firefighting to Fire P...
PDF
Introduction to GitHub Actions
PDF
Api observability
Do You Really Need to Evolve From Monitoring to Observability?
Major Container Platform Comparison
Practical DevSecOps Course - Part 1
"Platform Engineering in practice — Why and How to start", Serg Hospodarets
More Than Monitoring: How Observability Takes You From Firefighting to Fire P...
Introduction to GitHub Actions
Api observability

What's hot (20)

PPTX
DevOps Monitoring and Alerting
PDF
Observability, Distributed Tracing, and Open Source: The Missing Primer
PPTX
Platform engineering 101
PPTX
Azure dev ops
PPTX
ABN AMRO DevSecOps Journey
PDF
Red Hat Openshift on Microsoft Azure
PPTX
How to Move from Monitoring to Observability, On-Premises and in a Multi-Clou...
PDF
Elastic Observability keynote
PDF
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
PDF
OpenTelemetry Introduction
PDF
2019-02-20-ddd taiwan-community-iddd-studygroup-1st
PDF
Improve Monitoring and Observability for Kubernetes with OSS tools
PDF
Continuous Integration
PDF
Gitlab, GitOps & ArgoCD
PPTX
Draft: building secure applications with keycloak (oidc/jwt)
PPTX
Azure Pipelines
PPTX
Getting Started in Web3 with MetaMask.pptx
PDF
DevSecOps: What Why and How : Blackhat 2019
PPTX
Rtf v2 ingress muleSoft meetup self managed kubernetes
PDF
Observability
DevOps Monitoring and Alerting
Observability, Distributed Tracing, and Open Source: The Missing Primer
Platform engineering 101
Azure dev ops
ABN AMRO DevSecOps Journey
Red Hat Openshift on Microsoft Azure
How to Move from Monitoring to Observability, On-Premises and in a Multi-Clou...
Elastic Observability keynote
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
OpenTelemetry Introduction
2019-02-20-ddd taiwan-community-iddd-studygroup-1st
Improve Monitoring and Observability for Kubernetes with OSS tools
Continuous Integration
Gitlab, GitOps & ArgoCD
Draft: building secure applications with keycloak (oidc/jwt)
Azure Pipelines
Getting Started in Web3 with MetaMask.pptx
DevSecOps: What Why and How : Blackhat 2019
Rtf v2 ingress muleSoft meetup self managed kubernetes
Observability
Ad

Similar to AWS UG Indonesia Meetup - AWS IoT Core (20)

PDF
AWS IoT 및 Mobile Hub 서비스 소개 (김일호) :: re:Invent re:Cap Webinar 2015
PDF
Connecting the Unconnected: IoT Made Simple
PDF
An Introduction to AWS IoT - Web Summit Lisbon
PDF
AWS NYC Meetup - May 2017 - "AWS IoT and Greengrass"
PDF
Intro to AWS IoT - Pop-up Loft London
PDF
PPTX
Iot aws-introduction
PDF
AWS IoT & ML Recap - 20180423
PPTX
Reply Webinar Online - Mastering AWS - IoT Foundations
PPTX
How to design AWS Serverless Architecture for IOT
PDF
AWS IoT 핸즈온 워크샵 - AWS IoT 소개 및  AWS 서비스 연동 방법 (김무현 솔루션즈 아키텍트)
PPTX
Derive Insight from IoT data in minute with AWS
PDF
An Intro to AWS IoT
PDF
Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT W...
PDF
Hands-on with AWS IoT
PPTX
AWS IoT
PDF
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
PPTX
AWS IoT and Serverless
PPTX
Plant monitoring System- AWS Community day Bengaluru 2019
PPTX
Derive Insight from IoT data in minute with AWS
AWS IoT 및 Mobile Hub 서비스 소개 (김일호) :: re:Invent re:Cap Webinar 2015
Connecting the Unconnected: IoT Made Simple
An Introduction to AWS IoT - Web Summit Lisbon
AWS NYC Meetup - May 2017 - "AWS IoT and Greengrass"
Intro to AWS IoT - Pop-up Loft London
Iot aws-introduction
AWS IoT & ML Recap - 20180423
Reply Webinar Online - Mastering AWS - IoT Foundations
How to design AWS Serverless Architecture for IOT
AWS IoT 핸즈온 워크샵 - AWS IoT 소개 및  AWS 서비스 연동 방법 (김무현 솔루션즈 아키텍트)
Derive Insight from IoT data in minute with AWS
An Intro to AWS IoT
Internet der Ingenieure - reale und virtuelle Welten verschmelzen - AWS IoT W...
Hands-on with AWS IoT
AWS IoT
IoT and Serverless - AWS - Serverless Summit - Madhusudan Shekar
AWS IoT and Serverless
Plant monitoring System- AWS Community day Bengaluru 2019
Derive Insight from IoT data in minute with AWS
Ad

More from Albert Suwandhi (13)

PDF
Introduction to AWS (Amazon Web Services)
PDF
Infrastructure as Code
PDF
Intro - Cloud Native
PDF
IoT Intro and Demo
PDF
Introduction to AWS (Amazon Web Services)
PDF
Intro to Network Automation
PDF
Lab - AWS Cross Account Access
PDF
Lab - AWS Lambda Resize Image
PDF
Lab - AWS Lambda Rekognition
PDF
Lab - Automatic Deployment Using AWS CodePipeline to EC2
PDF
Cloud Study Jam - 2019
PDF
Road to RIoT 2017 Medan
PDF
Docker Mentor Week 2016 - Medan
Introduction to AWS (Amazon Web Services)
Infrastructure as Code
Intro - Cloud Native
IoT Intro and Demo
Introduction to AWS (Amazon Web Services)
Intro to Network Automation
Lab - AWS Cross Account Access
Lab - AWS Lambda Resize Image
Lab - AWS Lambda Rekognition
Lab - Automatic Deployment Using AWS CodePipeline to EC2
Cloud Study Jam - 2019
Road to RIoT 2017 Medan
Docker Mentor Week 2016 - Medan

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
KodekX | Application Modernization Development
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Modernizing your data center with Dell and AMD
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
CIFDAQ's Market Insight: SEC Turns Pro Crypto
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
KodekX | Application Modernization Development
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Monthly Chronicles - July 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
Modernizing your data center with Dell and AMD
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

AWS UG Indonesia Meetup - AWS IoT Core

  • 1. Getting Started with IoTon 16th April 2020 Albert Suwandhi Online Talk
  • 2. Albert Suwandhi IT Infrastructure – Sinarmas Group IT Lecturer • STMIK IBBI – Medan • Universitas Pelita Harapan - Medan Bachelor Degree – Electrical Engineering - USU Master Degree – Information Technology – Binus Certifications : • Cisco CCNA and CCNP - Enterprise • Mikrotik MTCRE and MTCTCE • AWS Certified Solution Architect – Associate • Azure Fundamentals GitHub : https://github.com/albertsuwandhi LinkedIn : https://id.linkedin.com/in/albertsuwandhi SlideShare : https://www.slideshare.net/albertsuwandhi Telegram : @albertsuwandhi
  • 3. ABCDI : AI, Blockchain, Cloud, Data, IoT
  • 4. Agenda • IoT Concepts and Architecture • IoT Services on AWS • Demo : • Create and Connect Things to AWS Cloud • Ingest Sensor Data to Cloud • Trigger actions based on telemetry data • Visualization • Device Shadow (Tentative)
  • 5. IoT Concepts and Architecture
  • 8. IoT Definition • “The Internet of Things (IoT) is the network of physical objects that contain embedded technology to communicate and sense or interact with their internal states or the external environment” - Gartner • “The Internet of things (IoT) is the inter-networking of physical devices, vehicles (also referred to as "connected devices" and "smart devices"), buildings, and other items embedded with electronics, software, sensors, actuators, and network connectivity which enable these objects to collect and exchange data” - Wikipedia
  • 11. Smart Devices 20B IoT Devices Smart City 250 PB per day Connected Factory 1 PB per day Stadium 200 TB per game People 1.5 GB per day Smart Home 50 GB per day Autonomous Vehicle 5 TB per day Smart Office 150 GB per day 1 million/hour new devices coming online by 2020
  • 13. IoT Use Case - SmarTernak Product by : DycodeX – Indonesia
  • 14. IoT Use Case – Predictive Maintenance • Industrial IoT - Predictive Maintenance • Measure Vibration, Temperature, RPM, etc on machine • Detect Anomalies and Trigger Alert • Powered by Machine Learning - Edge AI • Energy Harvesting - Heat Product by : Yokogawa - Japan
  • 16. Nobody just buys IoT technology… They seek for business outcomes!!
  • 17. What Businesses are asking for??
  • 18. IoT Architecture * Microsoft’s Definition of IoT
  • 21. ML at Edge: Train in the cloud, infer at the edge Illustration by Andri Yadi
  • 22. IoT projects can be quite complex
  • 23. How can help to simplify IoT Let See
  • 27. AWS IoT Core AWS IoT Core is a managed service that lets connected devices easily and securely interact with cloud applications and other devices
  • 28. Why AWS IoT Core? • AWS ecosystem with easy access to services like Kinesis, S3, ML,Lambda, DynamoDB, CloudWatch, CloudTrail, Elasticsearch, etc. • Serverless: Scalable to massive amount of devices without having to manage any infrastructure • Security: End-to-end encryption. You can't authenticate unless you have the right certificate. Policies are used for authorization. In Transit data uses TLS 1.2
  • 29. How AWS IoT Core Works
  • 30. AWS IoT Core acts as Message Broker MQTT • OASIS standard protocol (v3.1.1) • Lightweight, Pub/Sub protocol for connected devices • Used on oil rigs, connected trucks, health care. • Suitable for Low Bandwidth and High Latency condition • Needs a broker MQTT vs HTTPS • 93x faster throughput • 11.89x less battery to send • 170.9x less battery to receive • 50% less power to keep connected • 8x less network overhead Source: http://stephendnicholas.com/archives/1217
  • 32. AWS IoT Core Protocol Support
  • 35. In Summary : Authentication and Authorization Every IoT Device needs “certificates” and “policies” in order to give them the right accesses and permissions. Certificates protect the transmission of data between your devices and AWS IoT. Policies enable devices or users to access specific resources and actions. This is to prevent any connections that are unnecessary, as well as improve security all around.
  • 36. Demo Creating Thing and Connect to AWS IoT Core Ingest Sensor Data to Cloud
  • 37. Amazon S3 output bucket IoT Action Certificate + Policy AWS SNS AWS Lambda AWS Lambda IoT Rule AWS EC2 Amazon CloudWatch Metric AWS CLOUD MQTT over TLS SELECT * FROM '$aws/things/ESP32-IoT/Sensor' SELECT * FROM '$aws/things/ESP32-IoT/Sensor' SELECT * FROM '$aws/things/ESP32-IoT/Sensor' SELECT ADC FROM '$aws/things/ESP32-IoT/Sensor' WHERE ADC>3600 Device Shadow AWS IoT Core DEMO ARCHITECTURE Telegram Bot Users $aws/things/ESP32-IoT/Sensor $aws/things/ESP32-IoT/shadow/update/delta $aws/things/ESP32-IoT/shadow/update $aws/things/ESP32-IoT/Output NODE – ESP32 Illustration by Albert Suwandhi
  • 38. Acting on Data – Anything Wrong?
  • 39. AWS IoT Rule Engine
  • 41. AWS IoT Rule Engine • Connect IoT to other services • Transform message content : SELECT • Enrich message with contextual data : FROM • Filter erroneous or unnecessary messages : WHERE • Route based on content : ACTION • Decouples device software and cloud applications
  • 42. Example – Sending Events to AWS Services
  • 44. Demo Trigger actions based on telemetry data Visualization
  • 46. Problem - Devices with Unreliable Networks
  • 47. Digital Twins Concepts • Applications can interact with the digital counterpart of the device which is always in sync with the state of the physical device. When an application sends the command, it flows via the digital twin, which tracks the delta between the desired state set by the application and the last reported state of the device. • The IoT platform will ensure that the state of the physical device matches its corresponding digital twin. Even if the device is offline when the command is sent from the application, the platform will sync the state when the device connects the next time. This functionality reduces the burden on the developers by providing an intelligent state machine for all the connected devices.
  • 49. AWS Digital Twins - AWS IoT Device Shadow
  • 50. AWS IoT Device Shadow • Device Shadow is the virtual representation of our physical Device. As per AWS IoT Platform is concerned, we create a Thing in AWS IoT Console. Things are nothing but the Devices, those are connected to AWS IoT Platform. • It is a JSON document that is used to store and access current state information for a device. This service maintains a shadow (virtual Device State) for each and every device you connect to AWS IoT Platform. We can use the shadow document to get the current state of the device and based on that state, we can take action on the device, we can also monitor and control our Devices based on our needs over (MQTT or HTTP) protocols, regardless of whether the device is connected to the Internet. Each device’s shadow is uniquely identified by the name of the corresponding Thing(Device associated with). • Device Shadow service acts as a communication medium between your device and application. As this service provides different MQTT topics (or) RESTful API to interact with device. Using these MQTT topics (or) RESTful API we can also get, update and delete Shadow Document. • Use the AWS IoT Shadow in situations where a command persists for later use, even if the device is currently offline.
  • 52. AWS IoT Shadow MQTT Topics
  • 53. AWS Shadow Delta - Example
  • 54. AWS Shadow Delta - Example
  • 55. AWS Shadow Delta - Example
  • 56. What’s Next? • Explore edge computing : AWS Greengrass • Add Analytics and Machine Learning • etc