Skip to content

azharmgh/IoTHubPiHackathon

 
 

Repository files navigation

IoT Hub Pi Hands on Lab (HoL)

Overview

This Hands on Lab (HOL) demonstrates connecting a Raspberry Pi running Raspian to [Azure IoT Hub] (https://azure.microsoft.com/en-us/services/iot-hub/) and sending telemetry to Azure IoT Hub from either:

Completing this HOL will provide you with the basic skills needed to connect and securely send telemetry from a physical device (e.g. a field device or field gateway) to the Azure IoT Hub. This HOL does not demonstrate what can be done with the data after it arrives at the Azure IoT Hub. Having said that, you can do almost anything including complex event processing, stream processing, saving telemetry to blob storage or databases, analytics, training of Machine Learning models etc.

Why Sense HAT?

We didn't want you to mess around with breadboards, jumper cables, resistors etc. This just wastes time and adds nothing to the goal of connecting a sensor to Azure IoT Hub. The Sense HAT has all the necessary components installed on the circuit board, including a ready to use library, and a series of sensors to play with.

Why HTTPS and REST?

For simplicity and to avoid downloading/compiling SDKs during the HOL, we chose to send the Sense Hat telemetry to Azure IoT Hub using the IoT Hub REST API over HTTPS. Of course, you can use one of the many device SDKs available, which support sending messages over AMQP and MQTT. If you want to use the device SDKs, refer to the Using the .NET Device SDK section below.

Lab Requirements

  • Raspberry Pi 3 Model B (Pi 2 Model B with USB Wi-Fi dongle will probably work as well) with latest version of Raspian installed on the micro SD card. Using NOOBS works fine.
  • Sense HAT Emulator (which comes with the Raspian O/S)
  • Sense HAT (optional - for those that want to play with real hardware). You can order the Sense HAT from a variety of online sites such as adafruit.com, amazon.com etc. Please order yours 3-4 weeks in advance of the HOL so it will arrive in time.
  • Laptop (running whatever operating system you desire) but ideally running Windows so you can install/run Device Explorer.
  • [PuTTY] (http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) or another SSH client.
  • If you are using the Sense HAT Emulator (vs the physical device), you'll need to install VNC viewer on your laptop so that you can remotely view your Raspbian desktop. Download and install RealVNC from (https://www.realvnc.com/download/viewer/)
  • An Azure subscription. You can create a free trial Azure subscription, or you can use an MSDN Azure subscription or a subscription from your company.
  • A PowerBI account
  • A basic understanding of Python and Linux.
  • TBD

Advance Setup (Steps must be completed before the Hands On Lab Workshop)

Follow the instructions here before you arrive on-site for the hands-on-lab workshop.

Hands on Workshop Steps

Morning

Afternoon

About

Content for Azure IoT Hub + Raspberry Pi Hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.2%
  • JavaScript 5.8%