Arduino Weather System - Ep2: Arduino and AWS Cloud
Автор: Smart Things DIY
Загружено: 2022-04-06
Просмотров: 2850
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/ard...
→ ESP8266 ESP-01 code: https://github.com/SmartThingsDIY/esp...
→ 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-AT...
→ LCD Screen: https://www.amazon.ca/Arduino-Longrun...
→ Breadboard: https://www.amazon.ca/Breadboard-Sold...
→ Jumper Wires: https://www.amazon.ca/dp/B08151TQHG
→ Jumper Wires Male to Male + Tweezer: https://www.amazon.ca/gp/product/B07P...
→ 10k ohm Potentiometer: https://www.amazon.ca/TWTADE-Potentio...
→ 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
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: