PDA

View Full Version : IR Sensor for OUYA?



MyOpia
01-09-2013, 01:12 AM
Does anyone think there will be someone that makes an IR Sensor for the OUYA. I sure hope someone is reading this and tried to produce one for resale.

It would be great, and we wouldn't have to use our gamepad to control XBMC. That would be lame.

Left4Joker
01-09-2013, 10:12 AM
Man, I just had this idea where someone in the world (not me XD) made an USB adaptor to use the Wii Sensor on Ouya(it would be definetly awesome), mayb even Kinect >_<

... I'll keep on dreaming XD

Jawdy
01-09-2013, 11:20 AM
Man, I just had this idea where someone in the world (not me XD) made an USB adaptor to use the Wii Sensor on Ouya(it would be definetly awesome), mayb even Kinect >_<

... I'll keep on dreaming XD

The Wii Sensor bar is actually just an array of IR LEDs, the actual "sensing" goes on in the Wii-Mote controller, as it has a 1024x768 camera inside. So, one could take a couple of IR LEDs, pair the Wii-Mote with the OUYA and there you go :-)

If you take a look at the work done by Johnny Chung Lee (http://www.youtube.com/watch?v=Jd3-eiid-Uw), then you can see how it's pretty simple to do a hack like this. His libraries are written in C#... but I wonder if anyone has done a Wiimote library for Android?

OK, so a quick Google and I found this (https://play.google.com/store/apps/details?id=com.ccpcreations.android.WiiUseAndroid&hl=en).
There's also this (http://forum.xda-developers.com/showthread.php?t=2029981), which talks about problems with Android 4.2, but as OUYA is 4.1, this should be fine :-)

After that, you have the detecting of the IR blobs, then tracking and finally translating that to some usable depth information... still, this should get you the gyro information, buttons etc and will be a good start!

speedway
02-06-2013, 07:29 PM
Will/can this work?
http://mobile.logitech.com/en-us/product/5732
Since the sixaxis controller will be supported, this is possible?

d_brennen
02-06-2013, 08:54 PM
There's tons of Bluetooth keyboards with media features that are Android compatible, some include pointing devices as well

dr-nix
02-06-2013, 09:10 PM
I've been thinking about going the Bluetooth keyboard route myself

speedway
02-06-2013, 09:17 PM
I hope this device can translate my logitech Harmony commands (sent via infrared) over Bluetooth to Ouya.

dr-nix
02-06-2013, 09:20 PM
if you want to use your harmony remote i'm sure drivers will show up for various irda usb devices.

Sharshoor
02-15-2013, 07:50 PM
Im using MELE F10 3in1 Remote control and its work fine with my Android TV BOX , i think it should work with OUYA.

NitrousYA
04-04-2013, 12:00 AM
Flirc.tv is projected to work. It's a programable universal USB IR receiver. You will most likely need to program it on another system and bring it over.

pete123
04-04-2013, 12:31 AM
There's this doohicky.

http://www.irdroid.com/

You plug it into the headphone jack. Does the Ouya have one of those?


I think you'd be better off with something like this air mouse http://www.amazon.com/Wireless-Gyroscope-Mouse-Google-Player/dp/B00B23DUPG

Looks a bit like the Roku remote.

defyboy
04-05-2013, 08:36 AM
A nice hack to consider.

I'm thinking of a very small mod with a tiny micro (attiny anyone?) that is on always, even on standby so it can receive power on commands, and send keystrokes or HID commands via USB when on. Would this interest anyone?

Of course, it would likely involve some degree of soldering skills. But that being said, that's what we are meant to do with this console right? :)

Tiewrap
07-03-2013, 05:03 PM
The Ouya works like a charm with my VRC-1100 remote and USB Infrared Receiver. (I actually replaced it with my Logitech Harmony Touch)
The only downside so far is that I haven't found a way to emulate the buttons O U Y A buttons on the remote.
If those would have worked then using it as a media center with my regular remote would be awesome.

undeadbobop
07-03-2013, 06:07 PM
The Wii Sensor bar is actually just an array of IR LEDs, the actual "sensing" goes on in the Wii-Mote controller, as it has a 1024x768 camera inside. So, one could take a couple of IR LEDs, pair the Wii-Mote with the OUYA and there you go :-)

If you take a look at the work done by Johnny Chung Lee (http://www.youtube.com/watch?v=Jd3-eiid-Uw), then you can see how it's pretty simple to do a hack like this. His libraries are written in C#... but I wonder if anyone has done a Wiimote library for Android?

OK, so a quick Google and I found this (https://play.google.com/store/apps/details?id=com.ccpcreations.android.WiiUseAndroid&hl=en).
There's also this (http://forum.xda-developers.com/showthread.php?t=2029981), which talks about problems with Android 4.2, but as OUYA is 4.1, this should be fine :-)

After that, you have the detecting of the IR blobs, then tracking and finally translating that to some usable depth information... still, this should get you the gyro information, buttons etc and will be a good start!
When I got my nexus 7 it was running 4.0, it has had problems with that app every update. I tried using it and reinstalling it every update.

offroad
09-30-2013, 05:45 PM
Ordered a FLIRC and will be testing it out.

Scorpz
10-07-2013, 11:22 AM
Ordered a FLIRC and will be testing it out.

I have one, using it with a Harmony remote but the keymapping fails horribly and the Flirc itself is kinda crappy. Gives me all kind of errors. Havent been able to get it to work. If you do, can you post an update?

FYI: http://forum.flirc.tv/index.php?/topic/656-button-already-recorded-no-more-space-for-new-buttons-incorrect-keys-mapped/

offroad
10-23-2013, 11:18 AM
Yes have it working under XBMC exclusively. The FLIRC blog lists a link to the XBMC software. Installed it with XBMC. But could not program the FLIRC to recognize my remote, under XBMC and OUYA.

Instead plugged the FLIRC into my win7 machine and programmed it with my remote there. FLIRC will retain the IR programming. Then just moved FLIRC to my OUYA and everything was set.

UPDATE:
Still working.

Regardless have a tech call into FLIRC to get a way to reprogram the device. No response after three days. They must be swamped with issues from other users. So if you buy a FLIRC you may be on your own for support.

UPDATE 2:
FLIRC has stopped working for me. Now asking for a refund. Have had to fight its functions too much and am tired.

UPDATE 3:
Got the FLIRC working again. Was an extension cable for USB that would not allow OUYA to recognize the FLIRC was attached. Had to pull the cable at the OUYA end to cycle the connection.

UPDATE 4:
FLIRC still works but beware trying to reprogram it or to experiment. The programming software will have issues either erasing buttons or just resetting and starting from the beginning. Not for the easy frustrated. The CLEAR CONFIGURATION command and the ERASE command just seem to fail.

Ttt

thmoviestr
11-14-2013, 07:53 PM
I wonder if this would work http://www.amazon.com/Nextronics-Sensor-Bar-USB-Nintendo-Wii/dp/B001UAAX60

falkien
11-28-2013, 04:25 PM
Does anyone think there will be someone that makes an IR Sensor for the OUYA. I sure hope someone is reading this and tried to produce one for resale.

It would be great, and we wouldn't have to use our gamepad to control XBMC. That would be lame.

I made an account just to post this. This remote and USB dongle works great and practically works with everything that I have plugged it into.
http://www.amazon.com/SANOXY%C2%AE-Windows-Infrared-Receiver-Ultimate/dp/B00224ZDFY/ref=sr_1_cc_1?s=aps&ie=UTF8&qid=1385655726&sr=1-1-catcorr&keywords=windows+htpc+remote

Eldon.McGuinness
11-28-2013, 06:20 PM
Flirc.tv is projected to work. It's a programable universal USB IR receiver. You will most likely need to program it on another system and bring it over.
I have heard the same and look forward to getting one!

sth77
11-30-2013, 06:20 PM
Does anyone think there will be someone that makes an IR Sensor for the OUYA. I sure hope someone is reading this and tried to produce one for resale.

It would be great, and we wouldn't have to use our gamepad to control XBMC. That would be lame.
Some months ago we took an arduino leonardo, an IR-sensor like a TSOP1736 and the apple remote to build such an IR-remote-as-keyboard-converter. Okay, we did it for a PC but it also should work on the ouya. Later we took an digispark module with an attiny85, suddenly the tiny85 does not have external interrupts, so we had to change the code once again, but then it worked well.

average_male
12-18-2013, 10:59 PM
An IR sensor is totally doable (or should I say did-able). I made one for my NUC that can also be used for the OUYA. The solution uses an IR receiver and micro-controller (Teensy). You can read more about it in this post: http://forum.xbmc.org/showthread.php?tid=166886&page=8


I just bought an OUYA and this thing really does need an IR receiver to power it on/off and using any IR remote to control XMBC is a must. I plan to mod my OUYA to do just that using the same device noted above I used for my NUC.

offroad
12-20-2013, 08:11 AM
Average - way too expensive at $22. The sanoxy remote with IR USB sensor is only $15 on AMAZON and includes a mouse function.

average_male
12-20-2013, 08:21 PM
Average - way too expensive at $22. The sanoxy remote with IR USB sensor is only $15 on AMAZON and includes a mouse function.

How much more would you pay for a device that also turns On/Off your OUYA? If you leave your OUYA on all the time, then you are right, go with the Sanoxy. Also, if you want to lug and fiddle around with yet another remote, that too is fine, but for the $22 solution you get:

1) Turn On/Off your OUYA with any remote
2) Use any remote to operate it
3) Program any IR remote button to any keyboard key stroke (with CTRL, ALT, Windows Key, etc)

Cons is that you need DIY skills to solder. This solution is not for everyone.

offroad
12-21-2013, 07:48 PM
Great point average !!

Average - any chance you would do this service for a fee? Your solution seems much more elegant than most others. Send me a PM to respond. I know how to solder but am not confident in all the connections.

average_male
01-03-2014, 06:31 PM
Hi Offroad,

I am currently developing an even cheaper version for the OUYA. This version uses a AVR ATTiny85 and the total cost should be like ~$10 depending if you want to completely power ON/OFF the OUYA or just put it in sleep mode and wake up from sleep mode:

ATTiny85 => $2
IR Sensor => $1
2-Zener Diodes => $1
4-Capacitors => $2
Perf-PCB rem. => $1
12V-to-5V converter => $2 (optional: depending desired power down mode OFF vs Sleep)

The IR logic is giving me trouble on the ATTiny85 and I am doing this as a hobby, so who knows when this cheaper version will be done.

As far as the Teensy version goes. That is all done and I need to do more analysis of the OUYA to see if it has an "always on 5V supply" that can be tapped for powering the Teensy (and IR sensor). that is the only unknown for the Teensy to work. So in either case, a little more research/time is needed, but once that is done I can send you the .HEX file (if you go with the Teensy approach) or I can send you a programmed AVR ATTiny85 and you can solder the thing together.

offroad
01-04-2014, 07:24 PM
Is the USB port an always on 5v? Know you are looking at the internals of OUYA but my mind is set on not making changes myself. At least not yet.

average_male
01-07-2014, 01:16 AM
Is the USB port an always on 5v? Know you are looking at the internals of OUYA but my mind is set on not making changes myself. At least not yet.

Not sure. I am guessing not during full power down state but maybe so in Sleep Mode. I will take a look this evening and see what the status is on that. It would be nice if it was, obviously... but a 12V to 5V converter would solve that problem if not. Will post back with an update.

Well after a session with a multimeter, there is a always on 5V pin I could power the ATtiny85/Teensy with. Howerver, the USB is NOT always on. This is not a big issue as I could tap into the always on PIN located on the On/Off switch. So as it sits, there will be 5 soldering points on the OUYA that will need to be made and no need for a 12v-to-5v converter.

Another important point, which I haven't confirmed but have gathered from my research, is that if an attached ATtiny85/Teensy is made to the OUYA USB pins on the board, the external USB port will not be usable. However, the mini (or its it a micro) USB port should still be functional.

Still haven't had time to workout the ATtiny85 IR capture logic.

The adventure continues....

offroad
01-07-2014, 08:45 PM
That micro port is a usable USB data port? Did not realize that. Have to find an adapter for it now and take advantage.

average_male
01-07-2014, 08:54 PM
yea, per the OUYA specs, states that it is a standard micro USB port:

http://d3nevzfk7ii3be.cloudfront.net/igi/rOg3ceFiR1ERRAxv.medium

more details: http://www.ifixit.com/Teardown/Ouya+Teardown/14224

AZImmortal
01-08-2014, 08:56 AM
yea, per the OUYA specs, states that it is a standard micro USB port:

http://d3nevzfk7ii3be.cloudfront.net/igi/rOg3ceFiR1ERRAxv.medium

more details: http://www.ifixit.com/Teardown/Ouya+Teardown/14224

Are you sure that the micro USB port can be used as a host port? Everything that I've read has said that it's only for connecting the Ouya to a host, not for the Ouya to act as a host itself.

offroad
01-08-2014, 05:36 PM
Just ordered a $5 cable that I can plug a USB memory stick into. Will see soon enough.

Average. - opened up my box. A lot easier to work on than I thought.

FYI. Be extremely careful with the micro USB port. It is so fragile that after maybe five connect-disconnect cycles you will break it off the mother board. So be frugal with using it.

average_male
01-21-2014, 06:45 PM
Are you sure that the micro USB port can be used as a host port? Everything that I've read has said that it's only for connecting the Ouya to a host, not for the Ouya to act as a host itself.

Never said it was a host port. My understanding is that this is a standard USB port like the one would find on a desktop/laptop. I might be wrong. Are you saying I could connect this OUYA up to my Laptop/Desktop and use it as a USB hard drive? If that is the case, then the IR mod will consume the only free USB port on the OUYA.

After some long hours trying to get the ATTiny85 working as IR Receiver and USB keyboard, my path for the solution would not work (or is turning into a more complex animal due to VUSB timing requirements); However, I found another solution that looks promising; but more time will be needed to generalize the IR decoding logic for a variety of IR remotes (Sharp, Sony, NEC, etc.) http://nathan.chantrell.net/20121014/tinypcremote-an-attiny85-based-infrared-pc-remote-control/

Going to try to allocate some time to extend on the above project. All this to safe a couple of bucks (Teensy vs Attiny85), but in the process, the rewards come in the form of gained knowledge. And the adventure continues... again...

Posts merged. Please use the edit button and don't double post. Thanks. -Schiz

average_male
03-02-2014, 10:21 PM
Well... after more looking into using the ATtiny85 chip for IR sensing and VUSB keyboard for the OUYA, it definitely can be done, but the following issues like:

- limitations/constraints of the ATtiny85 like RAM/FLASH
- gpio pins 6 pins maxed out (D-, D+, IsOuyaOn input pin, TurnOnOuya output pin, PutAttiny85InRemoteProgramMode input pin, IR Sensor input pin)
- need a High Voltage programmer or similar for debugging/updating code
- amount of soldering and external components (capacitors, resistors, diodes and PCB board) needed
- amount of time it would take to design and code the decoding logic of multiple IR remotes (I had implemented logic just for my SHARP TV remote)

proved to be more trouble than it is worth. I have elected to purchase another Teensy 2.0 for the $16 and have all of the above issues removed as I have the code for the multiple IR remote decoding logic and the board comes pre-assembled. All I have to do is burn my existing code and solder the pins to the OUYA and call it day. Maybe some day I will revisit using the ATtiny85 but for now going to take the easy route.

Finally got around to installing the IR sensor on my OUYA. One remote can operate my OUYA (with XBMC installed) and TV.

https://lv2z3a.blu.livefilestore.com/y2pS3sXHYVnEhShaK_nDUufDd74A_dLqiOPixALetLj4NdcleR i4SVtV3n6FoP353FNH3DB7Ys4Rzq3JVdbo6MT3wZXA5PriDflZ 5QrILQjyhw/IR_Installed.jpg?psid=1

Michael Thompson
03-03-2014, 09:31 PM
Interesting project and a clean looking install.
Nice.