How to build IoT solutions using Azure IoT with Raspberry Pi - full course. Azure IoT Hub ft R-pi
Вставка
- Опубліковано 28 чер 2024
- A detailed video on Azure IoT with Raspberry Pi. Learn how to create IoT resources in Azure Cloud, IoT hub, Resource Group, Stream analytics job, a storage container, Querying real-time data stream, programming raspberry pi, and be able to visualize real-time data in CLI.
This video introduces you to programming raspberry pi and live coding. It is a full semi-course with much more details step wise on how to connect your Raspberry pi on Azure cloud with whatever sensor you may be having.
Can't wait to create another video utilizing more IoT Azure resources.
The code and everything else are in the video.
Do not limit yourself, you can learn a specific subject in the video by hovering through the table of content.
-Content -
0:00 Intro
4:01 Creating an Azure account
4:48 Creating IoT Hub, IoT device, and resource group
12:00 Creating a storage Container
14:32 Creating Stream Analytics
15:47 Setting up Raspberry Pi and Installing relevant library packages
24:20 Writing code to send humidity and temperature to Azure IOT hub
30:12 Circuit diagram, Raspberry Pi Pinout
30:54 Running code on Raspberry Pi
34:30 Azure CLI installing dependent packages and command to visualize data
37:28 Stream data from IoT Hub Trough Stream Analytics
41:40 Ingesting data through stream analytics
46:46 Query generation in Stream analytics
50:15 Streaming and streamed data on the storage container
Github Repo: github.com/AronAyub/Azure-IoT...
@MicrosoftAzure @raspberrypi@AronAyub
Hey, Welcome this course, learn, apply and build solutions. Please ensure during your development you have copied your devices' authentication details, do not copy what I used. Some few debugs, In azure cloud, to visualize your data, you have to install Azure add-on's using the command, az extension add --name azure-cli-iot-ext. Enjoy, if you have any queries you can as well use GitHub repo (link in comment section) to raise an issue and will respond ASAP. ☁
Great series. I only had WeMos D1 mini with DHT11 shield available (which seems to be suited better for such a small project anyway), so the coding part is different, but with your help I was able to set up IoT hub and all the rest of Azure services. Thanks Aaron!!
Hey , happy you followed it and it helped you.
Fantastic response! Really motivates me to create more. Please share and subscribe.
Hello,
I have to say that is incredibely interesting project. is it possible to easily extract data from cosmos db to a mobile application, e.g. in React.js?
Hello, among the methods to export data from Cossmos DB are : using document db and can use various sources such as JSON, however there are more ways to manipulate your output from cosmos db.
Would recommend the two links below:
learn.microsoft.com/en-us/samples/azure-samples/react-cosmosdb/react-cosmosdb/
learn.microsoft.com/en-us/azure/cosmos-db/nosql/quickstart-nodejs?tabs=azure-portal%2Cpasswordless%2Cwindows%2Csign-in-azure-cli
Hello and thank you for this interesting project. I was able to understand and implement this, but I see a problem: If the Python script is started, the temperature and humidity are measured and then transmitted at the defined intervals. But the exact same reading is transmitted over and over again, even if the sensor was placed in the sun and the temperature would have to change. Only when the script has been stopped and restarted is the temperature measured and then the new value is transmitted over and over again. This can also be seen in your script (43:01 in the video).
Do you have an idea how this can be solved so that it is really remeasured every time at the specified interval?
Hello
@tobiaswinter7617, happy you followed and worked for you. Please check your DHT sensor, change it to be sure it works fine. Otherwise another way of troubleshooting, is to only measure the temp & hum without transmitting on IoT hub and exposing the sensor to varying environment for testing. Let me know how it goes.