You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Smile inclinometer 5500 - 2008-08-20, 21:38

Join Date: Dec 2004
Posts: 5
Location: netherlands
jantje
Offline
Registered User
Hello,
I want to write a code for a Nokia 5500 with help of its accelerometer, to read out the angle (in degrees) of the phone with the horizon. When the phone is laying on a table it should give out “0 degrees”. And when it is laying on its side it should give out “90 degrees”
Should I use the pyextaccel or the axyz module ? Or another method?
And is there source code available for this?
Reply With Quote

#2 Old Re: inclinometer 5500 - 2008-08-21, 05:20

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by jantje View Post
Hello,
I want to write a code for a Nokia 5500 with help of its accelerometer, to read out the angle (in degrees) of the phone with the horizon. When the phone is laying on a table it should give out “0 degrees”. And when it is laying on its side it should give out “90 degrees”
Should I use the pyextaccel or the axyz module ? Or another method?
And is there source code available for this?
hello jantje
welcome to the forum nokia python discussion boards.
i Think you can do that sort of a thing for that you can use axyz module and here is an example which can help you.

Hope this helps
Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: inclinometer 5500 - 2008-08-21, 06:51

Join Date: Sep 2005
Posts: 314
Location: Finland, Helsinki
aaaaapo
Offline
Regular Contributor
Quote:
Originally Posted by gaba88 View Post
i Think you can do that sort of a thing for that you can use axyz module
Wouldn't it be better to use built-in sensor-module? Check the friendly documentation PythonForS60_1_4_4_doc.pdf chapter 5.9 sensor — Module to access the device sensors

JOM has made a nice Sensor analyzer example.
Reply With Quote

#4 Old Re: inclinometer 5500 - 2008-08-21, 06:57

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hi aaaaapo
its pity on me how can i forget that.
Sorry for that and yes the application by Jouni(JOM) is a great example on sensors.

Enjoy Pythoning
Gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#5 Old Re: inclinometer 5500 - 2008-08-21, 09:05

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by aaaaapo View Post
Wouldn't it be better to use built-in sensor-module? Check the friendly documentation PythonForS60_1_4_4_doc.pdf chapter 5.9 sensor — Module to access the device sensors

JOM has made a nice Sensor analyzer example.
Hello ,

aaaaapo (what a name :-D is right !
Don't use AXYZ with Nokia 5500 because AXYZ has been created for device with no sensor API but with sensor chip like old N95-1 with old firmware ...
AXYZ is less sensitive than official sensor module.
5500 has an excellent accelerometer chip (more or less 5G !)

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#6 Old Re: inclinometer 5500 - 2008-08-21, 09:59

Join Date: Sep 2005
Posts: 314
Location: Finland, Helsinki
aaaaapo
Offline
Regular Contributor
Quote:
Originally Posted by cyke64 View Post
aaaaapo (what a name :-D is right !
aapo, aaapo and aaaapo where not valid nicknames for some reason when I created my nokiaforum account 3 years ago. :-)

Quote:
Originally Posted by cyke64 View Post
5500 has an excellent accelerometer chip (more or less 5G !)
I tried same sensor test script (JOM's Sensor analyser if I remember correctly) in N82 and 5500 sport.

N82's chip seemed to be more sensitive and less noisy. (But I didn't make any real testing or analysing of sensor data.)

--
Aapo Rista
Reply With Quote

#7 Old Re: inclinometer 5500 - 2008-08-21, 19:59

Join Date: Dec 2004
Posts: 5
Location: netherlands
jantje
Offline
Registered User
Quote:
Originally Posted by cyke64 View Post
Hello ,

Don't use AXYZ with Nokia 5500 because AXYZ has been created for device with no sensor API but with sensor chip like old N95-1 with old firmware ...
AXYZ is less sensitive than official sensor module.
5500 has an excellent accelerometer chip (more or less 5G !)

BR
Cyke64
@ Cyke64,
I'm new in this but, what are the differences between "no sensor API and sensor chip"? What is this? I think both phones have a accelerometer!?? Maybe you can tell me more.
Jantje
Reply With Quote

#8 Old Re: inclinometer 5500 - 2008-08-21, 20:06

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by jantje View Post
@ Cyke64,
I'm new in this but, what are the differences between "no sensor API and sensor chip"? What is this? I think both phones have a accelerometer!?? Maybe you can tell me more.
Jantje
hi jantje
actually the older firmware for example N95 had a accelerometre hardware i.e. the chip but it didnt had the sensor api. Which was launched later.

Hope you got it
gaba88


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#9 Old Question Re: inclinometer 5500 - 2008-08-21, 20:37

Join Date: Dec 2004
Posts: 5
Location: netherlands
jantje
Offline
Registered User
Hi gaba88,

So:
5500 use build in sensor
N95 older use AXYZ
N95 newer use build in sensor
N95 8G use build in sensor
N82 use ??
Nokia ?? use ??
Are there more?
I’m right?

Jantje
Last edited by jantje : 2008-08-23 at 21:06. Reason: I’d better had first a look in wiki, there are the answers. How stupid form me.
Reply With Quote

#10 Old Re: inclinometer 5500 - 2008-08-21, 20:41

Join Date: Dec 2004
Posts: 5
Location: netherlands
jantje
Offline
Registered User
Thanks for all your reply.

So I should use the build in sensor module. With help of this sensor I want to build a inclinometer. You guys handed out a few examples of code. This gives out sensor values (even in graphs) But this are(more or less) G- forces. These values are dynamic. I’m looking for static values in degrees (f.i. 0०, 37° , 46° ect.) the refreshing time every 0.1 sec and steps in 0.5° is more than enough. Has someone a example of code?
Reply With Quote

#11 Old Re: inclinometer 5500 - 2008-08-29, 03:47

Join Date: Mar 2003
Posts: 16,949
Location: Bangkok
symbianyucca's Avatar
symbianyucca
Offline
Forum Nokia Expert
just use the normal example. Add 3 labels etc. into it to see the different values, and then turn the device around, observe the values, and you'll get it working just fine.
Reply With Quote

#12 Old Re: inclinometer 5500 - 2008-08-29, 09:05

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by jantje View Post
Hi gaba88,

So:
5500 use build in sensor
N95 older use AXYZ
N95 newer use build in sensor
N95 8G use build in sensor
N82 use ??
Nokia ?? use ??
Are there more?
I’m right?

Jantje
You are not stupid only ignore this
ALWAYS search in wiki and in PyS60 dibo before ask for a Question

Your answer is HERE

BR
Cyke64


pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#13 Old Re: inclinometer 5500 - 2008-08-29, 09:55

Join Date: Mar 2003
Posts: 16,949
Location: Bangkok
symbianyucca's Avatar
symbianyucca
Offline
Forum Nokia Expert
Yep, should actually go and update that page one of these days. AFAIK, The Sensor Framework will be ready for 5.0, but quite many FP2 devices do support it already (though the API is non-public at this point of time), as well as E66 has a slightly modified version of the FP2 implementation (non public at the moment as well).
Reply With Quote

#14 Old Re: inclinometer 5500 - 2008-09-09, 12:07

Join Date: Sep 2008
Posts: 1
spallared
Offline
Registered User
Hi, i link to this thread because i own a nokia e66 and i'd like to develop a new app using accelerometer but i understand that, as now, the framework has no support for the api of my device.

Did i understood well? Any plan on when it will be supported?

Thanks in advance
Luca
Reply With Quote

#15 Old Re: inclinometer 5500 - 2008-09-09, 15:16

Join Date: Mar 2003
Posts: 16,949
Location: Bangkok
symbianyucca's Avatar
symbianyucca
Offline
Forum Nokia Expert
There is API for E66, though it is very different than the API for other FP1 devices, and also differs from the API that is available for FP2 devices, and the API for E66 would not work with other devices, also it is non-public, thus if you would need access to it, you would need to open a API partnering request.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug? Nokia 5500, non-english locale, TextField.DECIMAL ngeht Mobile Java General 1 2007-03-02 04:01
Use 5500 to control game consoles shpe11 News, Announcements and Job Listings 1 2007-02-15 17:48
nokia 5500 to control your PC games shpe11 General Symbian C++ 14 2007-01-29 16:36
nokia 5500 to control your PC games... shpe11 PC Suite API and PC Connectivity SDK 0 2007-01-23 00:00
Wireless connection on 5500 ?? qiozas Mobile Java Networking & Messaging & Security 1 2006-12-29 20:30

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia