View: 6854|Reply: 4

External IR sensor

[Copy link]

1

threads

3

posts

300

credits

Intermediate member

Rank: 3Rank: 3

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

300

credits

Intermediate member

Rank: 3Rank: 3

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

9187

credits

Moderator

Rank: 7Rank: 7Rank: 7

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

300

credits

Intermediate member

Rank: 3Rank: 3

credits
300
 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.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list