Adding a IR receiver on XU4

Post Reply
mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Adding a IR receiver on XU4

Post by mad_ady »

I'll be using an xu4 with an ir blaster to control an AC unit (and also act as a light pc/media player/game console), but i need to track a non-smart TV as well.
I was thinking of having an IR receiver hooked up to a gpio and using lirc to detect what is pressed on the tv remote (and taking appropriate action via irexec).

Question is - how does an ir receiver circuit look like? And #2 which kernel module can I use to receive codes?

Thanks

joy
Posts: 1464
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 160 times
Been thanked: 182 times
Contact:

Re: Adding a IR receiver on XU4

Post by joy »

Hi @mad_ady,

On XU4, you can use GPIO IR receiver using LIRC as following wiki page.
And for XU4 cloudshell, gpio ir method is already used.
It's same way with C1/C2 or N2.
(I found your post just now. Sorry for late response. :cry: )

1. Hardware
The basic reference is here.
https://wiki.odroid.com/odroid-c2/appli ... re_example
The supply voltage described in the wiki page is 3.3V.
I don't have the exact datasheet of the IR part (I will search it and check supply voltage range spec.),
but as I checked the function with XU4 connecting one gpio of extension connector and cloudshell schematics,
it works with the IR receiver module part.
So I think there is no problem to work 1.8V io port of XU4.
https://dn.odroid.com/cloudshell/cloudshell_rev0.2.pdf
xu4_cloudshell_ir_receiver.png
xu4_cloudshell_ir_receiver.png (22.28 KiB) Viewed 2340 times
http://www.gaiatech.co.kr/pdf/irsensor/ ... TM2(N).pdf

2. Kernel modules
Also please refer to this wiki page for sw guide.
XU4 kernel already contains related modules.
https://wiki.odroid.com/odroid-c2/appli ... buntu18.04
https://github.com/hardkernel/linux/blo ... -ir-recv.c
https://github.com/hardkernel/linux/blo ... -ir-recv.c

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: Adding a IR receiver on XU4

Post by mad_ady »

Many thanks! I hadn't given up on it, but didn't have time to play with it either. I'll see what I can scavenge from some broken set-top box I have around :)

hbieganowski
Posts: 23
Joined: Thu May 28, 2015 3:06 am
languages_spoken: english
ODROIDs: XU3-lite
Has thanked: 0
Been thanked: 0
Contact:

Re: Adding a IR receiver on XU4

Post by hbieganowski »

mad_ady wrote:
Fri Mar 08, 2019 5:25 pm
Many thanks! I hadn't given up on it, but didn't have time to play with it either. I'll see what I can scavenge from some broken set-top box I have around :)
Hi, @mad_ady!
Did you manage to run IR Receiver on XU4 board?
I checked IR part datasheet and it seems that you can't power it directly from XU4 pins (1V8 DC) because of its specification requirements: 2.7VDC minimal power supply voltage.

I checked also the source of 3V3 power supply and there is USB_5V0 to VCC_3V3 power supply converter on cloudshell project and a couple of R11/R14 resistors as voltage divider fitting IR output for XU4 required voltage level.

Do you know ir receiver for lower power supply voltage?
---
XU4/cloudshell/32GB eMMC/1TB HDD
C2/VU7+/16GB eMMC/Wifi 4/BT
XU3-lite - with broken PMIC - anybody could help? :D

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: Adding a IR receiver on XU4

Post by mad_ady »

Sadly I haven't played with the idea anymore because of a chronical lack of time :(
I haven't checked the IR diode specs, but I think you can draw power from a 5V line in series with a resistor and the diode and use a voltage divider on the ir output pin to reduce the output below 1.8V.
But I haven't tried it...

User avatar
tobetter
Posts: 6629
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Adding a IR receiver on XU4

Post by tobetter »

I've made a sample circuit like below with ODROID-XU3 many years ago to play with LIRC, I've tied 5.0V to IR power and it worked. I've found it in my old stuff box a couple of days ago. :)
IMG_20191128_0208026.jpg
IMG_20191128_0208026.jpg (493.27 KiB) Viewed 1916 times
These users thanked the author tobetter for the post:
mad_ady (Thu Nov 28, 2019 2:42 am)

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: Adding a IR receiver on XU4

Post by mad_ady »

What does the red led do?

User avatar
tobetter
Posts: 6629
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 330 times
Been thanked: 924 times
Contact:

Re: Adding a IR receiver on XU4

Post by tobetter »

mad_ady wrote:
Thu Nov 28, 2019 2:42 am
What does the red led do?
decoration...it's not relevant to IR receiver at all.

jkvb
Posts: 4
Joined: Fri Jun 19, 2020 2:13 pm
languages_spoken: english
ODROIDs: Odroid XU4 & Cloudshell 1
Odorid Xu4 & Cloudshell 2
Odroid Xu4 & OGST
Has thanked: 0
Been thanked: 0
Contact:

Re: Adding a IR receiver on XU4

Post by jkvb »

Hi All,

Looking at adding an IR Receiver to my Odroid XU4 in the OGST case so that I can utilize an IR Remote and turn it into Android TV/Media Center Hub. This is going to replace my cloudshell 1 (the OGST will look nicer next to the TV).

Looking at the Odroid XU4 data the GPIO is only capable of providing 1.8v.

The IR Receiver I am looking at requires 3v to 5v. (https://core-electronics.com.au/ir-sens ... 38238.html)

Am I correct in assuming that I need something like the Logic Level Converter Bi-Directional (https://core-electronics.com.au/logic-l ... ional.html) to step up the voltage from the XU4 GPIO to the IR Receiver? Is there something else I require?

joy
Posts: 1464
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 160 times
Been thanked: 182 times
Contact:

Re: Adding a IR receiver on XU4

Post by joy »

jkvb wrote:
Fri Jun 19, 2020 2:19 pm
Hi All,

Looking at adding an IR Receiver to my Odroid XU4 in the OGST case so that I can utilize an IR Remote and turn it into Android TV/Media Center Hub. This is going to replace my cloudshell 1 (the OGST will look nicer next to the TV).

Looking at the Odroid XU4 data the GPIO is only capable of providing 1.8v.

The IR Receiver I am looking at requires 3v to 5v. (https://core-electronics.com.au/ir-sens ... 38238.html)

Am I correct in assuming that I need something like the Logic Level Converter Bi-Directional (https://core-electronics.com.au/logic-l ... ional.html) to step up the voltage from the XU4 GPIO to the IR Receiver? Is there something else I require?
Hi @jkvb,
I don't have much knowledge about HW logic,
but I think IR receiver part of Cloudshell2 can be a good reference for your target.

https://wiki.odroid.com/accessory/add-o ... 2#hardware
https://wiki.odroid.com/_media/en/acc/c ... shell2.pdf
Please check the IR receiver part of the 1st page. (bottom right part)

Supply voltage range of the IR receiver module is 2.7V to 6V.
https://www.hardkernel.com/shop/ir-sensor-rom-wt138ln/

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests