You Are Here:

Community: Developer Discussion Boards

#1 Old Cool Light sensor reading from PyS60 - 2008-05-06, 18:04

Join Date: May 2008
Posts: 15
Xurde
Offline
Registered User
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!
Reply With Quote

#2 Old Re: Light sensor reading from PyS60 - 2008-05-06, 18:45

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
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.
Reply With Quote

#3 Old Re: Light sensor reading from PyS60 - 2008-05-07, 09:46

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
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


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

Forum Nokia Python Wiki


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

#4 Old Cool Re: Light sensor reading from PyS60 - 2008-05-08, 21:29

Join Date: May 2008
Posts: 15
Xurde
Offline
Registered User
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.
Reply With Quote

#5 Old Re: Light sensor reading from PyS60 - 2008-05-09, 00:16

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Maybe you could use camera as light sensor? Not too user friendly, though..

Just an idea,

--jouni
Reply With Quote

#6 Old Re: Light sensor reading from PyS60 - 2008-05-09, 11:59

Join Date: May 2008
Posts: 15
Xurde
Offline
Registered User
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
Reply With Quote

#7 Old Re: Light sensor reading from PyS60 - 2008-05-09, 14:18

Join Date: Sep 2005
Posts: 314
Location: Finland, Helsinki
aaaaapo
Offline
Regular Contributor
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?)
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
Raw/IrSIR in Symbian OS v9.1 solution anyone? xeonfusion Symbian Networking & Messaging 42 2008-03-06 04:21
Back light control issue songoku83 General Symbian C++ 1 2007-12-11 09:21
how to distribute pys60 based apps? chall3ng3r Python 4 2007-03-27 15:13
Light Api problems (part 2) N73 microsoft2 General Symbian C++ 1 2007-01-20 17:59
Tip: Versioning and distribution issues in PyS60 otsov Python 0 2006-03-06 12:56

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