Join Now

A software engineer living in Vancouver, Canada - http://www.antonypranata.com/

Using Accelerometer on Nokia N95

antonypr | 01 November, 2007 22:58

The blogosphere has been hot since yesterday about accelerometer on Nokia N95. Apparently, Nokia 95 has a built-in accelerometer. You can find discussion about this on:

In the latest firmware, we can even get the raw data from the accelerometer using Sensor Plug-in for S60 3rd Edition. You can download the plug-in and start experimenting with accelerometer on Nokia N95

The usage of the API is very straightforward. You just need to create an instance of CRDAccelerometer and then receives the accelerometer data from its observer, MRDAccelerometerObserver. Note that the API still has "RD" prefix in the class name and file name; so it is still an R&D version.

Having access to accelerometer raw data gives us many possibilities. For example, we can use it as control for games. Arto Holopainen has shown similar idea; but he is using human muscle to control games.

As developers, the first question that you may have is, how to process raw data from the accelerometer. You need to know about "g" unit, which is a standard unit of acceleration. There are several papers that discuss "g" unit in accelerometer, for example:

Comments

Re: Using Accelerometer on Nokia N95

cabezonxdg | 02/11/2007, 02:31

Awesome if we think about the use of this on games.

Good post.

Re: Using Accelerometer on Nokia N95

louischua | 02/11/2007, 03:22

Does this mean we have to upgrade to the latest firmware in order to use the accelerometer? Is this for N95 + N95 8GB?

Good one

vvsnaresh | 02/11/2007, 11:25

I tried this MovingExample on my phone and its great.I would like to use this concept very soon. Thanks for the info.

Re: Using Accelerometer on Nokia N95

antonypr | 02/11/2007, 17:31

@louischua: I tried the API on latest N95 firmware. Not sure whether it works on older device. According to NRC web site, it works on latest firmware. Better try it. If not working, then use NSU to update your device. I am not sure either for N95 8GB -> haven't tried it there.

More Toys?

turnabull1 | 05/11/2007, 19:41

At the present time seems to me, that phone manufacturers do not know what to do with these small devices. By installing accelerometer sensors onto the phone is not very hard job to do. Now i am waiting when phone is integrated into shaving machine or vice versa.

Re: Using Accelerometer on Nokia N95

Paul Coulton | 07/11/2007, 13:15

I cant beleive they kept this secret i can now port all my 5500 apps

Re: Using Accelerometer on Nokia N95

cyke64 | 11/11/2007, 15:10

Hello , RD plugin works on my N95 V 10.0.018 (very old firmware version) so it should work with any N95. I saw also that it should work with N93i (not N93 !) I'm wondering why Nokia has kept this hidden this feature ! I-Phone has this feature and only the 5500 had this feature now we can make the light saber for N95 like the WiiSaber !

Re: Using Accelerometer on Nokia N95

Nick | 11/11/2007, 22:28

Will these apps going to be compatible with the 5500?

Re: Using Accelerometer on Nokia N95

antonypr | 11/11/2007, 22:39

antonypr

@cyke64: There is one light sabre already for N95. Check this out, http://www.symbian-guru.com/welcome/2007/11/lightsaber-app-.html

Re: Using Accelerometer on Nokia N95

antonypr | 11/11/2007, 22:40

@Nick: I don't know about compatibility with 5500 -> don't have this device yet.

undefined symbol problem

kulvijay | 13/02/2008, 11:42

Hi i'm developing a small accelerometer based app for N95. I downloaded the RDAccelerometer plugin. I could not build the Moving ball app on carbide. Its throwing an error "Undefined symbol: 'class CRDAccelerometer * CRDAccelerometer::NewL(class MRDAccelerometerObserver &) (?NewL@CRDAccelerometer@@SAPAV1@AAVMRDAccelerometerObserver@@@Z)"...

i hv checked the mmp file..I did add the RDAccelerometer.lib.. i dnt hv any clue why its not working.. Plz help..
wat do i do????

Undefined symbol: 'class CRDAccelerometer * CRDAccelerometer::NewL

kulvijay | 14/02/2008, 06:55

i am building it in udeb mode.. (abld build winscw udeb)

UNDEFINED SYMBOL

cjayant | 26/02/2008, 05:47

i am having the exact same problem trying to get the Moving Ball app (or my own) to build on Carbide. Did you ever figure this out?

Undefined symbol: 'class CRDAccelerometer * CRDAccelerometer::NewL

kulvijay | 06/03/2008, 12:51

yes i did.. just compile it using gcce in urel mode...

You must login to post comments. Login
 
 
Powered by LifeType