Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Send Adafruit 10DOF IMU Data from Raspberry Pi 2 to Azure Event Hubs with Windows 10 IoT Core

This tutorial walks you through connecting an Adafruit 10DOF IMU (L3GD20H, LSM303, BMP180) to a Raspberry Pi 2 running Windows 10 IoT Core, and streaming the sensor data to Azure Event Hubs and Stream Analytics using a Windows Universal app.

Pre‑requisites

Development Environment

Azure Event Hubs & Stream Analytics Setup

For a deeper dive, see the earlier Galileo Event Hubs blog.

Building the Universal App

  1. Create a Blank Universal App (C#) in Visual Studio 2015 RC.
  2. Add the Windows IoT Extension SDK reference to access I2C classes.
  3. Port the C++ wiring code for the 10DOF IMU to C# (see the GitHub links above).
  4. Include ConnectTheDotsHelper.cs and AppSettings.cs from the ConnectTheDots repository to handle Event Hub communication.
  5. In AppSettings.cs, replace the placeholder values with your Event Hub connection string, hub name, and other required parameters.
  6. Build the project and deploy it to the Pi via the remote debugger, or set it as the startup app (refer to the Hello World deployment guide).
  7. Use Service Bus Explorer to monitor incoming events.
  8. After Stream Analytics processes the data, view the resulting table in Azure Storage Explorer.

Visual Results

The following screenshots illustrate events captured in Service Bus Explorer and the processed table in Azure Storage.

Schematics

Source: Windows 10 IoT Core on Raspberry Pi 2 – Adafruit Sensor data

Manufacturing process

  1. How Industrial IoT Sensors Drive Modern Factory Efficiency
  2. Integrating Sensor Data into a Raspberry Pi: A Hands‑On Guide
  3. Read Heart Rate Pulses with Windows 10 IoT Core on Raspberry Pi – A Step‑by‑Step Guide
  4. Build a Raspberry Pi Home Temperature Monitor with MCP9808, InfluxDB & Grafana
  5. Connect Raspberry Pi 3 to DHT11 Sensor and Upload Data to ThingsIo.ai Cloud
  6. Accurate Temperature & Humidity Monitoring with SHT15 on Windows 10 IoT Core
  7. Installing Windows 10 IoT Core on Raspberry Pi 3 Model B+: A Step‑by‑Step Guide
  8. Build a Speech‑Controlled Robot with Windows 10 IoT Core on Raspberry Pi 2
  9. UnifiedWater v1 – Complete Arduino Water Quality Sensor Kit
  10. Raspberry Pi 2 Home Automation with Windows 10 IoT Core: A Complete Component Guide