maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Request] Sunrise alarm clock (dawn simulator) for N900? (https://talk.maemo.org/showthread.php?t=92923)

nokiabot 2014-04-06 18:33

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 :(

Copernicus 2014-04-06 18:42

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by nokiabot (Post 1420131)
@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 :(

Well, yeah, I've gotta admit that it does sound odd. (And, as I mentioned before, it would turn on the LEDs every time you put it in your pocket!) But I'll take a look... :)

nokiabot 2014-04-06 19:02

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 :)

Estel 2014-04-07 05:49

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Copernicus (Post 1420125)
Well, yes, I guess I probably could. ;) But just to reiterate my position from last year, after having studied the documentation on the N900's flash hardware, I'm just not comfortable with driving the white LEDs constantly at high power, as that can potentially burn them out. Lanterne's torch runs the LEDs at the only power level that has been explicitly labeled as safe for continuous use, so I'm just going to stick with that... :)

No, no, I just mean *lower* levels at start, then, gradually, increasing output to a max of same wattage that LEDs have in torch mode. Not over-driving them, of course :)

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

Copernicus 2014-04-07 08:53

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Estel (Post 1420194)
No, no, I just mean *lower* levels at start, then, gradually, increasing output to a max of same wattage that LEDs have in torch mode. Not over-driving them, of course :)

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.

Whoa, second mode? I don't remember a second mode... Hmm, sounds interesting!

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 = {
    .power            = rx51_adp1653_power,
    /* Must be limited to 500 ms in RX-51 */
    .max_flash_timeout    = 500000,        /* us */
    /* Must be limited to 320 mA in RX-51 B3 and newer hardware */
    .max_flash_intensity    = 19,
    /* Must be limited to 50 mA in RX-51 */
    .max_torch_intensity    = 1,

    .max_indicator_intensity = ADP1653_REG_OUT_SEL_ILED_MAX,
};

So only the low value of 50 mA is supported. I'm still not seeing any way to go lower than 50 mA here...

pichlo 2014-04-07 11:53

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Copernicus (Post 1420220)
I'm still not seeing any way to go lower than 50 mA here...

What is the fastest the LED can flash in the strobe mode? If fast enough (say 25 times per second or more), then lower values could be achieved by varying the duty cycle.

Edit: Found it. If I get it right, timing is in multiples of ~54ms, totally unsuitable for emulating steady light with very fast strobing.

Estel 2014-04-08 11:44

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Copernicus (Post 1420220)
Whoa, second mode? I don't remember a second mode... Hmm, sounds interesting!

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.

(...)

So only the low value of 50 mA is supported. I'm still not seeing any way to go lower than 50 mA here...

Ah, bummer, so lower than 50 mA isn't possible :/ Sorry, I screwed it in memory with the flash (strobo) mode (the thing I called 2nd mode), which is used for much more powerful, but blinking, outputs. I stand corrected.

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:

Originally Posted by pichlo (Post 1420243)
What is the fastest the LED can flash in the strobe mode? If fast enough (say 25 times per second or more), then lower values could be achieved by varying the duty cycle.

(...)

If I get it right, timing is in multiples of ~54ms, totally unsuitable for emulating steady light with very fast strobing

Indeed unsuitable for sun emulation I think, but quite useful for very bright flashlight (if one can get used to still-visible, little strobing). I have been using, without incidents, a rip-off Lanterne code, that - in torch mode - strobed LEDs with absolute max power on maximum duty cycle (lowest interval between strobes) - for so long time, that I actually forget its custom, and yesterday overwritten it with new version from "mainstream", resulting in me needing to rip it off, again ;)

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

Selene 2014-04-08 22:42

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 ;))

Estel 2014-04-09 02:08

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Selene (Post 1420448)
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.

You could script enabling of red led, then, after selected period of time, white one, why not. I just guess that red LED would have 0 effect on your sleep phase, even inside pitch dark room - well, you would have to test it yourself.

And of course, I know where Selene/Luna/etc comes from, thats why I wasn't sure about gender :)

/Estel

Selene 2014-04-14 18:22

Re: [Request] Sunrise alarm clock (dawn simulator) for N900?
 
Quote:

Originally Posted by Estel (Post 1420459)
You could script enabling of red led, then, after selected period of time, white one, why not. I just guess that red LED would have 0 effect on your sleep phase, even inside pitch dark room - well, you would have to test it yourself.

And of course, I know where Selene/Luna/etc comes from, thats why I wasn't sure about gender :)

/Estel

The red led is indeed not very bright, but still I can easily tell if it's on or off with my eyes closed. Also, if you wake up and see the red led on you would know it's almost time to get up.


All times are GMT. The time now is 15:54.

vBulletin® Version 3.8.8