In this blog post, we’ll post a very simple tutorial about gathering some simple data from a Sense Hat on a Raspberry Pi, post this data to Azure IoT Hub, parse them though Azure Stream Analytics and insert them into a simple Azure SQL Database table. This blog post helps as a tutorial for Azure IoT Hackathon we organized in Athens, on 18/3/2016.
- On the hardware side, we’ll use a Raspberry Pi 2 and a Sense Hat
- Creating a new Universal Windows Platform application
- Write some code to get the temperature reading from the Sense Hat
- Post the temperature/pressure/humidity reading from Sense Hat to Azure IoT Hub
- A Stream Analytics job will store the temperatures on an Azure SQL Database
We’ll start by creating a new Azure IoT Hub, so we can connect our Raspberry to it.