A software engineer living in Vancouver, Canada - http://www.antonypranata.com/
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:
louischua | 02/11/2007, 03:22
vvsnaresh | 02/11/2007, 11:25
antonypr | 02/11/2007, 17:31
turnabull1 | 05/11/2007, 19:41
Paul Coulton | 07/11/2007, 13:15
I cant beleive they kept this secret i can now port all my 5500 apps
cyke64 | 11/11/2007, 15:10
Nick | 11/11/2007, 22:28
Will these apps going to be compatible with the 5500?
antonypr | 11/11/2007, 22:39
@cyke64: There is one light sabre already for N95. Check this out, http://www.symbian-guru.com/welcome/2007/11/lightsaber-app-.html
antonypr | 11/11/2007, 22:40
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????
kulvijay | 14/02/2008, 06:55
i am building it in udeb mode.. (abld build winscw udeb)
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?
kulvijay | 06/03/2008, 12:51
yes i did.. just compile it using gcce in urel mode...
A software engineer living in Vancouver, Canada - http://www.antonypranata.com/
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.