| Reply | « Previous Thread | Next Thread » |
|
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? |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 |
|
Quote:
JOM has made a nice Sensor analyzer example. |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
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 |
|
Quote:
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/ |
|
aapo, aaapo and aaaapo where not valid nicknames for some reason when I created my nokiaforum account 3 years ago. :-)
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 |
|
Quote:
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 |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 |
|
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.
|
|
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? |
|
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.
|
|
Quote:
![]() 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/ |
|
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).
|
|
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 |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |