Arduino Weather System - Ep2: Arduino and AWS Cloud

2 years ago
185

This video is the second episode in the "Arduino Weather System" series. It builds on the previous one and continues forward by pushing the temperature & humidity data received through the DHT11 sensor, onto an AWS IoT account.

I start by showing the WiFi module used to allow our weather station to go online: it's a programmable module called "ESP8266 ESP01". I then create a new project on VSCode using the PlatformIO extension and dive right away into writing the code that does the following steps:
→ Connect to WiFi
→ Establish a connection to AWS IoT's MQTT topic
→ Send data through the topic

I then connect the WiFi module to the Arduino board and test that it sends the data over. Once that is confirmed, I create a Lambda function that handles the received data by saving it into a DynamoDB table.

I will add more sensors as we progress.

For libraries, code walkthrough, and line-by-line explanation, check out the Github repo:
→ Arduino Uno code: https://github.com/SmartThingsDIY/arduino-uno-aws-weather-station
→ ESP8266 ESP-01 code: https://github.com/SmartThingsDIY/esp8266-01-aws-mqtt

→ Index
00:00 intro
0:20 New VSCode project and code to connect to WiFi
2:16 Compiling and uploading code to the ESP8266
2:46 Wiring the ESP8266 to the Arduino Uno board
3:07 Wiring schema
4:10 Moving passwords and other sensitive information to "secrets.h" file
5:28 Sending data through an MQTT topic
7:20 Lambda function that persists data into a DynamoDB table
10:16 AWS IOT Rule that invokes the Lambda function
12:32 Taking the build outside for the last test

Items I used in this video:
→ Arduino Uno: https://www.amazon.ca/Elegoo-Board-ATmega328P-ATMA16U2-Arduino
→ LCD Screen: https://www.amazon.ca/Arduino-Longruner-Expansion-Included-LK51/dp/B071FGZX8G
→ Breadboard: https://www.amazon.ca/Breadboard-Solderless-Prototype-Distribution-Connecting/dp/B01EV6LJ7G
→ Jumper Wires: https://www.amazon.ca/dp/B08151TQHG
→ Jumper Wires Male to Male + Tweezer: https://www.amazon.ca/gp/product/B07PTYBFDT
→ 10k ohm Potentiometer: https://www.amazon.ca/TWTADE-Potentiometer-Single-Variable-Aluminum/dp/B07DHGV6LB
→ Hardware and Craft Storage Cabinet Drawer Organizer: https://amzn.to/36ehDpB
→ ESP8266 ESP-01 WiFi Module: https://amzn.to/30fUWNS
→ ESP8266 ESP-01 programmable USB: https://amzn.to/345egi6
→ ESP8266 ESP-01 Breakout Board Breadboard Adapter: https://amzn.to/3kSFVcP

#homeAutomation #DIY #Arduino

Loading comments...