View: 41455|Reply: 20

External IR sensor

[Copy link]

1

threads

3

posts

422

credits

Intermediate member

Rank: 3Rank: 3

credits
422
Published in 2017-1-4 16:37:19 | Show all floors |Read mode
Edited by tomek1 at 2017-1-4 16:38

Hi,

I finally configured embeded IR sensor on my Orange PI PC and I'm able to sleep/wake up OpenELEC it from remote control.
Unfortunately OPI case will be hidden behind screen so I need to expose IR sensor to be still visible for RC - I guess it's a common use case.
I connected common TSOP receiver (that before was working on Raspberry) to GPIO pins (I tried PA18 and PA19)  and changed script.bin respectively:

  1. [s_cir0]
  2. ir_used = 1
  3. ir_rx = port:PA19<1><0><default><default>
Copy code
according to http://linux-sunxi.org/Fex_Guide#Port_Definitions.

I doesn't work

I also tried to find lirc module to set gpio pin address like we do that on RPI but it seems to not be compiled as a module.

Is there any other way to use external IR sensor?

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
Published in 2017-1-4 17:13:25 | Show all floors
Cannot you just unsolder built-in sensor add longer wires and solder it again to the PCB?

1

threads

3

posts

422

credits

Intermediate member

Rank: 3Rank: 3

credits
422
 Author| Published in 2017-1-4 18:29:01 | Show all floors
cbm80 replied at 2017-1-4 17:13
Cannot you just unsolder built-in sensor add longer wires and solder it again to the PCB?

That's too easy. There are 40 unused pins for that purpose and I would like to use few of them.Anyway you're right - that is a solution. Thanks.


4

threads

1118

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10230
Published in 2017-1-6 00:34:08 | Show all floors
ir_rx is not used anymore. I'm not sure if it ever was. The point is, HW IR support is on one pin only and that is already connected to IR sensor. You have two options, as already suggested, unsolder IR receiver and insert cables between, or put IR sensor on GPIOs and load another driver (I guess gpio-ir-recv.ko). But here you on your own. You would also lose ability to wake up board from sleep.

1

threads

3

posts

422

credits

Intermediate member

Rank: 3Rank: 3

credits
422
 Author| Published in 2017-1-7 04:04:56 | Show all floors
jernej replied at 2017-1-6 00:34
ir_rx is not used anymore. I'm not sure if it ever was. The point is, HW IR support is on one pin on ...

Thanks @jernej, @cbm80 and you are right - de-soldering was the best solution (already did it).
I spent some time and found much more complicated solution here http://www.orangepi.org/orangepi ... amp;fromuid=1185139
It seems that using GPIO IR receiver is not such simple like on RPI.

Published in 2025-2-4 20:35:52 | Show all floors
It proved to be Very helpful to me and I am sure to all the commentators here!        除甲醛價格
Published in 2025-2-5 15:12:12 | Show all floors
I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here.        qamis
Published in 2025-2-6 17:03:10 | Show all floors
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends.        slot
Published in 2025-2-6 17:11:57 | Show all floors
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.        https://ythewait.com/
Published in 2025-2-25 16:30:13 | Show all floors
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!.        togel online
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list