In this series of post we will see how we can connect a NodeMCU to AWS IoT service. We will see the settings needed to be done in AWS as well as the steps for the NodeMCU.
The benefit with using AWS IoT is that we can trigger many other functionalities such as Lambda, etc, or store data for further analysis. Machine Learning can then be applied on the data for use cases like Business Intelligence.
While it might seem daunting, it is actually very simple and easy. Once you have successfully connected NodeMCU, you can replace it with ESP8266 of your choice.
This tutorial is categorized into three parts:
- Create a “Thing” in AWS IoT
- Convert Certificates from .pem to .der format
- Connect NodeMCU to AWS IoT Service
Our flow will be as shown in this image –
You will need the following:
- An AWS account or access to an account as a user with the following permissions:
- IAM Roles and Policy creation
- IoT Core Services
- A NodeMCU or any ESP8266 based board
- The Arduino IDE with ESP8266 board installed
Let’s get started with the first part – Create a “Thing” in AWS IoT
Vivek is a Senior Embedded Innovation Specialist. He has been working on Embedded Systems for the past 10 years. He loves to share his knowledge and train those who are interested. Nerdyelectronics.com was started out of this interest.