Sunday, September 29, 2013

No need to hide from HID - End-to-end Windows Runtime HID Motion-Sensor

Today's Hardware Friday post is one that I thought had a number of cool and fun possibilities. Plus, anything that combines Windows 8.1, Netduino, C# and the chance to say "HID" can't be all that bad, can it?

Sample motion-sensor, firmware and Windows Runtime app for HID

This end-to-end solution includes a tutorial for building a simple passive-infrared sensor that supports the HID protocol

This end-to-end solution includes a tutorial for building a simple passive-infrared sensor that supports the HID protocol. The tutorial is provided as a whitepaper titled Building a motion sensor.docx. Included with this tutorial is a Visual Studio C# project, with source code, for creating the sensor firmware.

In addition to the tutorial for creating a device, this solution includes a sample Store App
that monitors the sensor for motion and captures a short five-second video each time motion is detected. (The app is described in a second tutorial titled Developing
a Human Interface Device (HID) app.)

Note: This end-to-end solution uses firmware produced under the the Creative Commons Attribution-ShareAlike 3.0 Unported License. For license terms see: http://creativecommons.org/licenses/by-sa/3.0/

Operating system requirements

Client

Windows 8.1

Server

N/A

Installing Your Development Environment for the firmware

Before you can download the firmware onto your Netduino Plus board, you'll need to complete the following steps:

  • Install Microsoft Visual C# Express 2010 on a development machine
  • Install .NET Micro Framework SDK v4.2
  • Install the Netduino Beta firmware v4.1.1 on your Netduino Plus board
  • Download the device firmware project and open in Visual C# Express
  • Note that the video here provides a great explanation for installing the Beta firmware on your Netduino board. (See the accompanying tutorial for more details about building the device and installing the firmware.)

Building the HID-based motion sensor

The motion sensor consists of a Netduino Plus development board with an attached passive-infrared (PIR) sensor. You'll find details for building this sensor in the whitepaper titled Building a motion sensor.docx. Once you build this sensor, you can attach it to your Windows 8.1 laptop or tablet and start the sample app.

Read more: Channel9
QR: Inline image 1