View: 7667|Reply: 11

External IR sensor

[Copy link]

1

threads

3

posts

314

credits

Intermediate member

Rank: 3Rank: 3

credits
314
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

314

credits

Intermediate member

Rank: 3Rank: 3

credits
314
 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

9503

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9503
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

314

credits

Intermediate member

Rank: 3Rank: 3

credits
314
 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 2024-11-16 21:56:02 | Show all floors
I just astounded aided by the test most people made to choose this specified share wonderful. Marvelous recreation!        Bijoux faits à la main au Québec
Published in 7 daybefore | Show all floors
It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post.        what is myip

16

threads

1025

posts

2616

credits

Gold member

Rank: 6Rank: 6

credits
2616
Published in 7 daybefore | Show all floors
Any movies is normally outstanding. You've gotten a lot of particularly as good writers and singers. Document prefer you will the best quality about financial success.        Iptv

16

threads

1025

posts

2616

credits

Gold member

Rank: 6Rank: 6

credits
2616
Published in 6 daybefore | Show all floors
Many thanks for that publish as well as excellent ideas.. actually We additionally believe that effort is actually the most crucial ingredient of obtaining achievement.        iptv smarters pro
Published in 6 daybefore | Show all floors
This post was finally edited by HUNAINKHAN32 at 2024-11-18 21:26

It is a great website.. The Design looks very good.. Keep working like that!.        restroom rental las vegas
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list