maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   (Request) Learning IR remote control (https://talk.maemo.org/showthread.php?t=48453)

Crust 2010-03-27 15:09

(Request) Learning IR remote control
 
Hello everyone,

I wanted to get an idea out there.

None of my electronics work with QtIrecco.
I know the IR port of the n900 doesn't support input, but the n900 has two cameras. These cameras can easily pick up IR.

How difficult would it be to read a remote's IR signal using a camera built in the n900 and perhaps making a config file for QtIrreco?

I would envision that there would be crosshairs overlaid on the camera's view and that it would read the brightness from that point so that you could center the remote on that point. A threshold algorithm could be used to convert the brightness into a digital signal. It may work better in dark places, but it would be super useful to me.

I do not have the ability to code the above, but was hoping that someone else might be able to do it.

Patola 2010-03-27 15:21

Re: (Request) Learning IR remote control
 
It seems possible. I just tested the camera with the IR Remote Control of my TV set and it showed a bright white light when I pressed the button. We'd just have to know if the camera is fast enough to get the frequence emitted by the IR Control to "train" it for our purposes.

This would be of great use since I have a handful of Remote Controls which are not registered in lircdb.

Crust 2010-03-27 15:36

Re: (Request) Learning IR remote control
 
The cameras pick up the signals from all my remotes as well.
The remotes don't seem to be blinking that fast, so I think it can be done, but it may be an optical illusion.

torres76 2010-03-27 16:42

Re: (Request) Learning IR remote control
 
This would be very good as none of my controls are supported either

geneven 2010-03-27 16:49

Re: (Request) Learning IR remote control
 
Wow, great idea. Now all we need is someone who can actually do it.

t7g 2010-03-27 16:51

Re: (Request) Learning IR remote control
 
Someone has mentioned before that at 30fps there is no way the camera can read the data fast enough for such purposes.

Lets put it this way, 30fps = about 30Hz, 1Hz = 1 cycle per second so 30 frames would be thirty cycles per second.

Standard consumer IR devices however have modulation speeds of 35-38kilohertz, or about what, a thousand times faster than the camera is capable of seeing.

jesuska 2010-03-27 16:54

Re: (Request) Learning IR remote control
 
guess what ?
none of my controlers are supported either....

i'd really like this learning codes feature !

Crust 2010-03-28 00:23

Re: (Request) Learning IR remote control
 
The camera may be 30 fps, but I believe that the pixels are updated at different times. If you pull the data from the pixel level instead of the frame level, won't you have enough temporal resolution? For example, if you aim a remote control at the camera, you'll have millions of pixels updating at different times, won't you?

magnuslu 2010-03-28 00:44

Re: (Request) Learning IR remote control
 
None of my remotes is supported either, but I have a USB IR receiver/transmitter for my PC. What's the easy path to capture the signals and get the configuration onto N900 qtirreco? I tried looking at lirc, but couldn't figure it out, besides, I'd rather do it on Windows...

~phoenix~ 2010-03-28 09:30

Re: (Request) Learning IR remote control
 
wtf?? ir port dont support input?? so i am not able to send pics from an old phone with ir only to my n900?!? sry but how stupid is that??


All times are GMT. The time now is 09:07.

vBulletin® Version 3.8.8