×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Question using accelrometer in 5800

    i have a python program which uses sensor module but its not present in python 1.9.4 so how to access accelerometer in python for 5800

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: using accelrometer in 5800

    It is present in PyS60 1.9.4. import sensor works just fine. The documentation has a table of devices and available sensors and the 5800 is there. There's also an example. Check section 3.9 of the documentation.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    21

    Re: using accelrometer in 5800

    Hi,do anyone have a clear idea in handling shake in 5800 with the help of accelerometer sensor?i am developing the application on Symbian.i went through some discussion threads.but what i got is not working properly.if anyone can help me,please do respond.

    thanks in advance.

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,538

    Re: using accelrometer in 5800

    Quote Originally Posted by maymaria View Post
    Hi,do anyone have a clear idea in handling shake in 5800 with the help of accelerometer sensor?i am developing the application on Symbian.i went through some discussion threads.but what i got is not working properly.if anyone can help me,please do respond.

    thanks in advance.
    You are developing in Symbian and trying to search for answers in Python

    Maybe you should narrow your search for Symbian Forums or wait for somebody to answer your queries that you already posted in the Symbian section.

    Good Luck!

  5. #5
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: using accelrometer in 5800

    bogdan bro i donno what u mean as documentation can u link me bro

  6. #6
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: using accelrometer in 5800

    sensors = sensor.sensors()


    this dont works

  7. #7
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Smile Re: using accelrometer in 5800

    Quote Originally Posted by apacheking View Post
    sensors = sensor.sensors()


    this dont works
    Quote Originally Posted by apacheking View Post
    bogdan bro i donno what u mean as documentation can u link me bro
    Download and install this file, https://garage.maemo.org/frs/downloa....9.4_Setup.exe

    Go to Start->Program files->Python for S60->PyS60 Documentation.
    Pankaj Nathani
    www.croozeus.com

  8. #8
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: using accelrometer in 5800

    Also I had recommend this literature as reference for using the sensor module.

    http://croozeus.googlepages.com/Sensor_Sample_20.pdf
    Pankaj Nathani
    www.croozeus.com

  9. #9
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: using accelrometer in 5800

    pankaj bro still sensors = sensor.sensors()is giving error

  10. #10
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: using accelrometer in 5800

    Quote Originally Posted by apacheking View Post
    pankaj bro still sensors = sensor.sensors()is giving error
    What does the error say?

  11. #11
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: using accelrometer in 5800

    there is no module object called sensor

  12. #12
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: using accelrometer in 5800

    Quote Originally Posted by apacheking View Post
    there is no module object called sensor
    I tried to import sensor on a 5800 and it worked. So you're saying that
    Code:
    import sensor
    sensors = sensor.sensors()
    gives a "No module named sensor" error?

  13. #13
    Regular Contributor
    Join Date
    Nov 2008
    Location
    India
    Posts
    91

    Re: using accelrometer in 5800

    bro the error i got after ur example was attribute error:"module object has no attribute sensors

  14. #14
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: using accelrometer in 5800

    Quote Originally Posted by apacheking View Post
    bro the error i got after ur example was attribute error:"module object has no attribute sensors
    PyS60 1.9.x sensor module is new and does have the function sensors.

    Use the dir(sensor) command to get a list of all available functions/attributes.

    FYI, the sensor module compatibility in the 1.9.x releases and 2.0 release is not guaranteed.
    Pankaj Nathani
    www.croozeus.com

  15. #15
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: using accelrometer in 5800

    You can download the Sensor Module Specifications documentation provided by the PyS60 team. It explains how to use each sensor available in the 5800 XM.



    Hope it helps,

    Rafael.
    Last edited by Rafael T.; 2009-05-04 at 17:24. Reason: corrected link

Similar Threads

  1. Replies: 0
    Last Post: 2009-03-03, 22:51
  2. Capturing and Streaming Video / Audio on 5800 in S60 Application
    By MBFonz in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-02-24, 16:11
  3. Capturing and Streaming Video / Audio on 5800 for S60
    By MBFonz in forum Streaming and Video
    Replies: 1
    Last Post: 2009-02-13, 00:10
  4. Capturing Video / Audio on 5800 in S60 Application
    By MBFonz in forum General Development Questions
    Replies: 1
    Last Post: 2009-02-13, 00:08

Posting Permissions

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