Using an Accelerometer to Build a Game Controller

The XNA team created their XNA Game Studio to simplify the creation of games for: Windows, the Xbox 360, the Zune, and the Windows Phone 7 Series. The Game Studio includes the XNA Framework–a set of managed libraries that are designed for game development. Version 3.1 allows you to create games for the PC, the…


Making Sense of Sensor Permissions

In this, my first Sensor and Location Team Blog post, I will discuss sensor permissions. I’ll cover: · Clearing up some confusion around sensors and devices · What are sensor permissions · What permissions permits · How the sensor platform uses permissions The players in this post are shown in the following diagram: A Point…


Understanding Access Denied when working with ISensor::GetState() and ISensor::GetProperty()

In last week’s blog post we provided best practice guidance for Sensor State management in Location Sensors. At the bottom of that post we mention that SENSOR_STATE_ACCESS_DENIED is reserved and should only be used by the Platform. As a follow-on post we wanted to briefly dig into an issue that some customers have reported related…


State Transition in Location Drivers : Best practices

This post will be talking about best practices for handling state to get the best behaviors from the Location API. Before reviewing our best practice guidance we recommend you read up on “Writing a Location Sensor Driver”. With information above in mind, let’s now talk about best practices for handling state transition in a location…


Developing Your First Sensor Driver – Part 2

In the last blog post we investigated the fundamental characteristics of a sensor driver (properties and data fields) and how the Sensor Class Extension interacts with them. Here we will expand the basic driver template to include raising events and managing clients. A client is an application that has requested a connection to the driver…


Developing Your First Sensor Driver – Part 1

The Windows Driver Kit (WDK) is a great place to get started when writing your first sensor driver. In this post we will take a look at the Sensor Driver Skeleton Sample, which provides a basic sensor driver template. A future post will investigate the Time Sensor Sample to learn about incorporating events. If you…


Overview of Adaptive Brightness in Windows 7

So you just got yourself a new laptop. Congratulations! Did you notice that it has an Ambient Light Sensor (ALS)? With Windows 7, we’re seeing more and more laptops coming to market with built in ALS. How does Windows 7 take advantage of this sensor? How can you tap into it? How do I see…


The Parallax Introduction to Sensors Kit

Accelerometers, motion-sensors, distance-sensors, and compasses. What do these sensors have in common? They compose the Introduction to Sensors Kit that the Parallax Corporation sells for $79.99. Purchase this kit, a programmable microcontroller like the Parallax BS2, a kit board, and a serial cable and you’re ready to explore the Sensor platform for Windows 7. Below…


Introducing Location in .NET 4.0

The .NET Framework 4.0 RC, which is integrated with Visual Studio 2010, is now available for download. This release of the .NET Framework 4 provides a managed location API in the System.Device.Location namespace that allow .NET developers to access location data from the Windows 7 Sensors & Location platform.  If you are familiar with the…


The Sensor and Location Drill Down – Part 3: The Location API

Over the last few weeks we have been providing an introduction to the Sensor and Location Platform by examining each component in the platform in greater detail. We started first with an overview of the Sensor and Location Platform. This was followed up with a drill down in the Sensor DDI or Device Driver Interface….