Reply
Thread Tools
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#1
I'm planning to use N900 as light beacon for infrared-camera (e.g. as wiimote's sensor bar replacement). So I'm looking way to just turn infrared led on. Not transmitting any IR-codes.

I made first test with lirc and it's irsend, but it is targeted for IR-signaling, so it is not very suitable as it (maybe with very special config-file).
 

The Following 2 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 617 | Thanked: 338 times | Joined on Mar 2011
#2
That little tx led is not enough to illuminate something in the dark . You better try a case mod on your N900 with a separated circuit for an ir torch . Just like that guy modded n900 case with bigger lens for camera .
__________________
N9 and N900 , the beauty and the beast
 

The Following 2 Users Say Thank You to Dragoss91 For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#3
Originally Posted by Dragoss91 View Post
That little tx led is not enough to illuminate something in the dark
It is enough if infrared-camera can see it.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 470 | Thanked: 399 times | Joined on Jul 2011 @ Croatia
#4
Originally Posted by Dragoss91 View Post
That little tx led is not enough to illuminate something in the dark . You better try a case mod on your N900 with a separated circuit for an ir torch . Just like that guy modded n900 case with bigger lens for camera .
it is probably much stronger than any of those cheap wii wireless sensor bars
althou two candles still give the best results
 

The Following 3 Users Say Thank You to GrimyHR For This Useful Post:
Posts: 617 | Thanked: 338 times | Joined on Mar 2011
#5
Originally Posted by AapoRantalainen View Post
It is enough if infrared-camera can see it.
That camera sees it because is oriented face to face and at few meters distance it will see it like a white dot . You better think about making a torchlight that could illuminate your whole room with infrared light so you will be able to record anything with your camera .
__________________
N9 and N900 , the beauty and the beast
 

The Following 3 Users Say Thank You to Dragoss91 For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#6
I agree, the IRED is not going to illuminate much.
It is not designed for this purpose.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#7
My opening post was too vague and general. I'm planning to use N900 as Wiimote's sensor bar. (Sensor bar is bold name for 12 infrared leds). I have used two candles, but they emits too much visible light when playing/surfing/watching on dark room. And they are not safe when there are children and animals running on the same room. Self made battery+IR-led would work but I'm not handy to make it nice looking. (I almost bought wii wireless sensor bar, but seller didn't know how often battery must be changed).

And I'm Maemo-hacker so I'm looking software solution

-----
With lirc and endless bash loop I can blink IR-led forever. With one N900 this is enough for wiimote to work (under Ubuntu and open source driver it needs only one led), but it lags/jitters (I think it is because of blinking).

I also test with two N900's side by side, but they are not blinking in same sync, so mouse cursor is continously waving/jumping left to rigth (=not usable).
 

The Following User Says Thank You to AapoRantalainen For This Useful Post:
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#8
The dev of Pierogi is the man to ask about this.
Not seen him about for a while tho.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#9
Originally Posted by sixwheeledbeast View Post
Pierogi
Thanks, documentation of Pierogi: Light led for 999ms: echo 999 > /dev/lirc0
999 is biggest it accepts. Next step would be tuning driver: http://svn.jacekowski.org/host_mode/...rc/lirc_rx51.c

So far this is my best:
Code:
#!/bin/bash 
while [  0 -lt 1 ]; do
        echo 999 > /dev/lirc0
done
(And then it uses continuously 4-5% CPU)

When looking trough another N900's camera there aren't blinking at all.

[EDIT]
Simple modification to the driver:
Code:
drivers/input/lirc/lirc_rx51.c
        -counter += (u32)(lirc_rx51->fclk_khz * usec / (1000)); 
        +counter += (u32)(lirc_rx51->fclk_khz * INT_MAX);
So the value is totally skipped (it must still be in range[100,999]). Led will be then ON ~3.5 minutes (which is not INT_MAX), wrap it inside bash-loop.

If echo is stopped (ctrl+c) led is dimmed OFF.

When infrared is in use, device can't go deep sleep states, so bash loop is not heavy addition.
[/EDIT]

Last edited by AapoRantalainen; 2013-01-15 at 06:30.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post:
nokiabot's Avatar
Posts: 1,974 | Thanked: 1,834 times | Joined on Mar 2013 @ india
#10
Can i record lightless with infrared with n900 camera ? Are infrared torches available what about a tiny infrared module on back of n900?
If this can happen then lets sue estel to put one on his mod
 

The Following User Says Thank You to nokiabot For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:10.