Skip to content

maylim17/connectthethings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this project about?

(coming soon)

Resources needed

  • Windows PC
  • Visual Studio IDE (2013 onwards)
  • Microsoft Azure account (free trial or DreamSpark subscription will do)

Hardware components:

  • Raspberry Pi 2 (Model B)
  • Micro-USB power cable
  • LAN cable or RasPi Wifi dongle
  • Breadboard and wires
  • Temperature sensor (TMP36)
  • ADC converter (MCP3208)
  • Monitor screen and HDMI cable (for RasPi)

Steps

  1. Set up your local working space
  2. Set up Raspberry Pi component (TemperatureMeasurement)
  3. Set up SignalR web API on Microsoft Azure (SimpleIoTSignalR)
  4. Set up User Device Client (TemperatureClient)

Step 1: Set up your local working space

  • Download project folder to your local PC
  • Either "Clone in Desktop" (if you have the GitHub desktop app), or "Download ZIP" (and extract the content manually) Download Project

Step 2: Set up SignalR web API on Microsoft Azure

  • Create a basic web app on your Azure portal. Log-in here Create Web App Create Web App

  • If successful, you should see the web page below when you navigate to the URL you specified Preview Web App

  • Open the project solution /SimpleIoTSignalR/SimpleIoTSignalR.sln in Visual Studio

  • Right-click on the project name SimpleIoTSignalR and select Publish.. Publish Web API

  • Select Profile on the left panel and then Microsoft Azure Web Apps Publish Web API

  • You should be prompted to log-in to your Azure account

  • After successful log-in, select the web app you created earlier Publish Web API

  • Select Publish without changing any settings on the dialog Publish Web API

  • If successful, you should see the new web page below when you navigate to the URL you specified Preview Web App

Step 3a: Set up Raspberry Pi component (hardware)

  • Connect the hardware components as per pictured below Hardware Overview Hardware Detailed

Step 3b: Set up Raspberry Pi component (software)

  • Download and set-up Windows 10 IoT Core on your Raspberry Pi 2, instructions here

  • Connect your RasPi to the Internet, either via LAN cable (wired) or Wifi dongle (wireless)

    • Ensure that your RasPi and development PC are on the same network
    • To check the IP address of your RasPi, you need to connect it to a monitor screen
  • Open the project solution /TemperatureMeasurement/TemperatureMeasurement.sln in Visual Studio

  • Open the file SignalRClient.cs for edit

  • Change the SignalR web API URL to the one you created earlier in Step 2, as per pictured below Change API URL

  • Build the solution via the Remote Machine option, as per pictured below

  • Enter the IP address of your Raspberry Pi, select None for Authentication Mode Build Project

  • To check if the app is working correctly on your RasPi, connect it to the monitor and it should appear like this below RasPi Preview

Step 4: Set up User Device Client

  • Open the project solution /TemperatureClient/TemperatureClient.sln in Visual Studio

  • Open the file SignalRClient.cs for edit

  • Change the SignalR web API URL to the one you created earlier in Step 2, as per pictured below Change API URL

  • Build the solution via the Local Machine option, as per pictured below Build Project

  • A desktop app should run like this below

  • This Windows Universal App client can run on any Windows 10 devices (e.g. Windows PC, mobile, Xbox) Preview Device Client

Credits

A big thank you to:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published