Adding a IR receiver on XU4

Post Reply
User avatar
mad_ady
Posts: 6888
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 248 times
Been thanked: 181 times
Contact:

Adding a IR receiver on XU4

Unread post by mad_ady » Thu Feb 14, 2019 4:37 am

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: 911
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 20 times
Been thanked: 52 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by joy » Fri Mar 08, 2019 2:09 pm

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 553 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

User avatar
mad_ady
Posts: 6888
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 248 times
Been thanked: 181 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by mad_ady » 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 :)

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

Unread post by hbieganowski » Wed Nov 27, 2019 7:05 pm

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

User avatar
mad_ady
Posts: 6888
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 248 times
Been thanked: 181 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by mad_ady » Wed Nov 27, 2019 7:41 pm

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: 4265
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 59 times
Been thanked: 235 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by tobetter » Thu Nov 28, 2019 2:15 am

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 129 times
These users thanked the author tobetter for the post:
mad_ady (Thu Nov 28, 2019 2:42 am)

User avatar
mad_ady
Posts: 6888
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 248 times
Been thanked: 181 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by mad_ady » Thu Nov 28, 2019 2:42 am

What does the red led do?

User avatar
tobetter
Posts: 4265
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 59 times
Been thanked: 235 times
Contact:

Re: Adding a IR receiver on XU4

Unread post by tobetter » Thu Nov 28, 2019 2:45 am

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.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests