Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Motion adjuster application – using Ultrabook Sensors

0.00/5 (No votes)
26 May 2013 1  
Using sensors, we can get the change in X and Y direction (i.e. movement), using which we can adjust laptop screen to make it very stable although having jerking motion.

Introduction 

On launch of the 3rd Generation Intel Core Processor, Intel has introduced collection of sensors in Ultrabook. Collection of sensors includes Global Positioning System (GPS) sensor, Gyroscope, Accelerometer, Ambient Light Sensor, Compass, etc. There are many sources which helps developer community to make usage of these sensors. These sensors are presenting various useful input values, based on which creative applications may add changes in our life style. Using that we can find some solution for traditional issues. Here, I am trying to show possible solution for following problem.

Problem: 

Laptop users are facing problem to use it while traveling in Car, Train, Bus, etc. because of jerking motion. To read the content on screen our eyes need to set the focus frequently. Frequently changing the focus is making our eyes tired. Sometimes it causes motion sickness, too. And hence it is sensible to not to read anything while traveling.

Background

Before some days I have seen one person playing game on phone which is having sensors to detect the motion. That fellow in that game, was controlling the car by moving phone in X and Y directions. Here, our solution may be available, using sensors if we can get the change in X and Y direction then we can adjust our screen to make it very stable although having jerking motion. I have created one demo application in Visual Studio 2012 on Windows 8 OS, and tried to generate same situation with solution. Right now I have used Storyboard based animation in XAML to show moving object in X and Y direction.

Following animation shows that while having motion we could not read text properly.

 

Following animation shows stable text content also having motion of its container.

Here, in example what I have done is, if container moves in -ve X direction then text content moves with same value in +ve X direction. Similar to that, if container moves –ve in Y direction then text content moves with same value in +ve Y direction, and vice versa. So that user feels stable text content in front of his/her eyes. This should resolve our problem. 


Points of Interest 

Using sensors, we can get the change in X and Y direction (i.e. movement), using which we can adjust laptop screen to make it very stable although having jerking motion.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here