[Request] Sunrise alarm clock (dawn simulator) for N900?
Dawn simulation is a technique that involves timing lights in the bedroom to come on gradually, over a period of 30 minutes to 2 hours, before awakening.
http://en.wikipedia.org/wiki/Dawn_simulation There are likewise apps for iphone/android: http://appcrawlr.com/app/search?go=g...=ipad%2Ciphone I was thinking it would be nice to have such an app for maemo, using the camera leds. Would anyone like to try this? |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
is it the N900's camera led dimmable( increase/decrease light intensity)?
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
There is a long discussion over in the Lanterne thread about what the N900 flash LED can do. In a nutshell, yes, it is dimmable (in steps; 8 or 32 depending on mode).
There is also a long discussion in the same thread whether it is a good idea to leave the LED on for any extended period of time. I personally would not risk leaving my LED on for "30 minutes to 2 hours", although the idea is not as crazy as it souds. I've just tried it: it is dark here as I type this and the LED seems bright enough to be actually useul for the purpose. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
I am not a programmer or a technical expert so I can't answer those questions.
If you take a photo with the camera app the leds seem less bright when focusing compared to the "photo flash". If dimming is not a good idea, there are still possibilities. For example, turn on the screen 30 minutes before the alarm, fullscreen red->orange->yellow->white with increasing brightness, and 10 minutes before the alarm turn on the camera leds. Of course, for this you would have to place your N900 on the backstand on a white surface. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
In a nutshell, indeed, there are two modes. The "basic" one, as used for all torch applications, got lesser maximum brightness value (due to lesser current), but is able to perform 100% duty cycle (aka "just be turned on"). The "flash" mode is much more powerful, but available only in duty cycles (with maximum one around 75% IIRC, but don't quote me on that - details in the already mentioned Lanterne link provided by pichlo), and rightly so, as using it on 100% would damage leds pretty quickly. Now, for the purpose of program proposedd here, only the "torch" mode is approriate, as I don't think that stroboscopic effect is good for a healthy sleep/awakening ;) (unless someone want to simulate dawn in a hurricane-hit forest, with light passing through shaking branches/leaves). Quote:
Here I disagree, BTW - my trusty N900 is helping me with various conservation tasks in not-so-easily-accessible places for years already, and I regularly leave flash diodes at maximum "torch" mode brightness for a hour or so, as it's lighting up my /Estel // Edit In fact, what you would like to achieve could be done with a rather simple script (written with help of Lanterne discussion and its documentation), executed by any alarm app that can trigger custom command on alarm. Executing command on alarm would be, probably, a few lines of code in CSSU'ish alarm replacement (or update, I don't remember if it was open thing in vanilla). IIRC, freemangordon was the author of CSSU'ish latest version - it could be good idea to post a feature request in CSSU's bugzilla. If that part is done, you have 99% of work done. /Estel Otherwise, there should be, already available, "eggtimer" programs that can trigger custom commands, but setting them up for alarm clock job is more tedious (and less "clean") job than using Maemo's integrated alarm would be. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Quote:
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
I agree integration with the CSSU Alarm clock would be a good option. Quote:
Are there any known cases of failed camera leds on the N900? If someone is willing to write the code for this feature I'm willing to risk my leds and will report if they still work in a few months:rolleyes:. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
/Estel |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
The main flaw in this is having to have the Lens cover open and the device screen down.
This could help you, step by step instructions on setting up a Internet Radio Alarm Clock that slowly increases volume. http://talk.maemo.org/showpost.php?p...7&postcount=10 |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
You could also put it on the backstand or make some kind of docking station, aiming the flashlight at at white wall. Quote:
I just made this thread to see if there are more N900 owners with trouble getting up in the morning;) (and hopefully someone capable of making such an app) |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Well you could use my instructions to control the the flashlight instead of the volume, however, if you can't do this you will have to wait for a developer to need it enough to create it. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Since no one has mentioned it yet, SleepAnalyzer (http://wiki.maemo.org/SleepAnalyser) has a sleep cycle alarm (and music I believe - for lucid dreaming) that wakes you up with a "slow" alarm. No lighting integration, but personally I doubt it would be pleasant to wake up to the N900's LED lights anyways.
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
The secret really was to just have classical music come slowly up & play for 15 minutes before the regular alarm goes off. Apparently the fade-in slowly wakes you up enough to not need to abruptly just hit snooze when the alarm goes off. I would have put it together as an app, but was never able to set up a successful programming environment. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Quote:
Quote:
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Sleepanalyser is a nice app, I like it!
But to stay ontopic: To experiment a bit I thought I could use Alarmed to simply start the Flashlight or Lanterne App x minutes before the alarm. This should be possible, right? Unfortunately I can't get it to work. In fact, I can't start any App from Alarmed or x-terminal. Any help? |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
/opt/lanterne/bin/lanterne |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
I'll try it a few nights to see if it works for me.. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
/Estel |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Why not create an app that sounds user selected alarm gradually increases the brightnes (flashing every 6 seconds for 3 minuts only when the phone is upside down with lens cover open) maybe like a plugin for lalterne.
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
@Copernicus please make a fork of lalterne excliptly with the feature that can turn on the leds with the aid of light sensor (configurable values for light sensor sensivty and leds) it might sound dumb or awkard but it will be a killer feature for me as its time for heavy loadshedding ,you know its summer time... i requested it long ago but you turned it down :(
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Thanx i need nothin fancy all i need is a gui that does it :) and as a preacaution you can set a timer that disables leds after 3 minuts unless the user has popped up the values :)
|
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Sure, it would require using the second mode, but as long as you keep with not exceeding power equivalent to the "safe" torch mode, you're doing the same thing, with just low power level at start. /Estel |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Yeah, looking again at the ADP1653 data sheet, it only seems to support integer values between 1 and 11 for "torch mode" usage, 1 representing the low value of 50 mA and 11 being the high of 200 mA. And, from the rx51 camera code, Code:
static struct adp1653_platform_data rx51_adp1653_platform_data = { |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
Edit: Found it. If I get it right, timing is in multiples of ~54ms, totally unsuitable for emulating steady light with very fast strobing. |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
As a side, note, it's good news for Selene - apart from regular torch light intesity that she/he knows (which is quite weak, but barely usable for her/his purposes), she/he can also use a up 4x more powerful current for driving leds, which roughly correspond to 4x more powerful sunrise emulation! As far as she/he isn't afraid of frying own LEDs, of course. Quote:
Anyway, the point is that I was using the "unsafe" mode for many months, with torch enable for long periods of time - 30 minites, hour, two hours (was too lazy to remove timelimit, so I just re-enabled it when hit the clock), etc. while working. As said, no adverse effects, except for LEDs getting *a little* more warm, when active for a long time. /Estel |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Too bad indeed that 50 mA is the minimum. Using the red led a few minutes beforehand to simulate a red sun rising - and maybe shock your eyes a little less - would be nice :p.
Or, as I mentioned before, you could use the screen.. I've tried the Alarmed/Lanterne thing yesterday, and I must say I'm not disappointed; if your eyes are fully adjusted to the dark by sleeping in a pitch black room for 7 hours 50mA is already pretty bright. I'm going to experiment a bit more to see if I would want more than 50 mA. I tried the 320 mA strobe flash btw, quite a difference indeed! P.S.: I'm a dude. (Selene is the greek goddess of the moon - I guess Helios would have been a better pick regarding this thread ;)) |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
And of course, I know where Selene/Luna/etc comes from, thats why I wasn't sure about gender :) /Estel |
Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
Quote:
|
| All times are GMT. The time now is 10:11. |
vBulletin® Version 3.8.8