×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    15

    Cool Light sensor reading from PyS60

    Hi there,

    I'm developing a Domotics Program for my mobile phone, using X-10 protocol, and I'd want to read the light sensor on my Nokia E65 with PyS60. Is that possible? How?

    Thanks!

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

    Re: Light sensor reading from PyS60

    Hi Xurde and welcome to the Python Discussion Board.

    As far as I know, it's currently impossible. The documentation doesn't say anything about it, and a search returned this thread where it is said that it's impossible.

    If you have experience in writing C++ applications, maybe you could write a module for PyS60 that does this.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Light sensor reading from PyS60

    Quote Originally Posted by Xurde View Post
    Hi there,

    I'm developing a Domotics Program for my mobile phone, using X-10 protocol, and I'd want to read the light sensor on my Nokia E65 with PyS60. Is that possible? How?

    Thanks!
    hi Xurde
    your question seems interesting and you seems to be a electronic aspirant. Bogdan has correctly told that it is impossible but impossible itself spells i m possible. so can you explain in detail what sort of light sensor you are using or can you explain your project in bit detail.
    waiting for your feedback

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    15

    Cool Re: Light sensor reading from PyS60

    Hi Gaba,

    I`ll explain my project. I guess you know or at least you have heard about X10 protocol for Domotics-Home Automation. Sendind electrical pulses throgh the Existing electrical wires you can control devices pluged into a socket anyware in your house, garden, etc. Control means on/off dim/bright, and some other extended functions.

    You can send signals from specific modules or, in the simplest/cheapest way from your computer, using a PC-X10 interface (I'm using the CM11). So, I´ve decided to make my own program (Python) to control the interface, and go farther developing a program (PyS60) for mobile wich lets you send commands to the computer via BlueTooth: switch on A1 (the receptor for the coffee machine, switch off A5 (the receptor for the garden lights), etc. The program in the computer receives this commands and sends the proper signal to the interface.

    I`ve already got it working. I even connect the main door (it opens electrically, pushing a button) so I can open it now from my Nokia E65.

    Now, the point: light sensor. Since you can dim/bright the lights, I've thought it´d be nice doing it depending on the light existing in the place you are, using the nokia light sensor for that. When it gets dark, the sensor detects it and sends a command to put the lights more bright. At this point I found a problem: How does the mobile know in wich room you are? There is no (easy) way, just telling "him".

    That´s all. Whoever who wants to participate in some way in this project, or wants to know more, just let me know.

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Light sensor reading from PyS60

    Maybe you could use camera as light sensor? Not too user friendly, though..

    Just an idea,

    --jouni

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    15

    Re: Light sensor reading from PyS60

    Yeah, the camera.... I think I could check the light with the camera... now you´ve said it, I remember I had read something about some people using the webcam as a light sensor.

    Great Jon. I'll try and tell you guys.

    Thanks

  7. #7
    Regular Contributor
    Join Date
    Sep 2005
    Location
    Finland, Helsinki
    Posts
    323

    Re: Light sensor reading from PyS60

    Quote Originally Posted by Xurde View Post
    I think I could check the light with the camera... now you´ve said it, I remember I had read something about some people using the webcam as a light sensor.
    A few notes:

    • camera.take_photo() continuously consumes a lot of energy
    • camera.start_finder() continuously consumes a lot of energy
    • camera.start_finder() can use only the 1st camera, so you probably can't use front camera at all (usually the 2nd camera?)

Similar Threads

  1. Light Api problems (part 2) N73
    By microsoft2 in forum Symbian
    Replies: 4
    Last Post: 2010-05-16, 22:54
  2. Raw/IrSIR in Symbian OS v9.1 solution anyone?
    By xeonfusion in forum Symbian Networking & Messaging (Closed)
    Replies: 42
    Last Post: 2008-03-06, 03:21
  3. Back light control issue
    By songoku83 in forum Symbian
    Replies: 1
    Last Post: 2007-12-11, 08:21
  4. how to distribute pys60 based apps?
    By chall3ng3r in forum Symbian
    Replies: 4
    Last Post: 2007-03-27, 14:13
  5. Replies: 0
    Last Post: 2006-03-06, 11:56

Posting Permissions

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