External IR sensor 看全部

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>
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?
  • Sofa cbm80
  • 2017-1-4 17:13:25
Cannot you just unsolder built-in sensor add longer wires and solder it again to the PCB?
  • Bench tomek1
  • 2017-1-4 18:29:01
quote: 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.


  • Floor jernej
  • 2017-1-6 00:34:08
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.
quote: 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.

1234.. 20NextPage