Windows Phone 7 Accelerometer Test App

Tags: EN, Windows Phone

imageAww, what a title. It’s quite simple, actually. The first thing I’ve done when I got my first WP7 device was testing it’s accelerometer. As you may know, accelerometer cannot be used in emulator (actually, there is a way, but that’s not it – I want to move some hardware around the air and rotating monitor does not work).

So, I’ve put up a small application that reads the sensor and shows the data on the screen. Using it, you can get a feeling how sensor works and what does that x, y and z values mean. User interface is divided into three parts – first line shows actual sensor values, second line shows sensor values every second and the rest of the screen is for logging, There are three logging modes (select one using application bar) – onchange prints a new row only when a change bigger than 0.2 occurs, ontime prints values every second and onnone doesn’t log values, it only shows real-time values in first two rows.

Application is not on the marketplace, but if you are developer and have unlocked device, you can download it from here and put on your phone. If any of you need a source, let me know (I should warn you - it’s dirty and ugly). Have fun!

1 Comment

  • Patrick Payet said

    Hi there,

    There's a piece of code realized by Pierre Cauchois and Mitsu (here http://blogs.msdn.com/b/pierreca/archive/2010/12/16/windows-phone-7-comprendre-metro-et-en-connaitre-les-ressources.aspx)

    They have used RX to smooth the accelerometer's signal. I suggested you this link because you seems to be interested about accelerometer.

    And to unlock our windows phone 7 we have a tool created by Chris Walsh, Long Zheng and Rafael Rivera (but at this time I don't know if this tool has been blocked or not)

    Here the link about Chevron : http://www.chevronwp7.com/post/1679668269/windows-phone-7-unlocker-released

    See you there,

Add a Comment