rufik post at 2016-3-19 00:01:29

Replacing IR Reciver with IR Transmitter

Quick question - can ir reciver (LBST0038A) be easily replaced by any ir transmitter? I'd like to make my OPI 2 a remote conroller for AC.

igorpec post at 2016-3-19 00:58:24

You can drive IR transmitter via GPIO. You need a driver, which is not a part of the kernel. Next problem is encrypted protocol ... Check this website for all about IR hacks: https://www.analysir.com/blog/

cbm80 post at 2016-3-21 15:07:23

In Arduino world it is much easier. There are very good IR libraries and example programs where you can read IR remote codes and than use them in your program sending them via IR LED to the device. Probably you could adapt it here without pure Linux way via kernel module, just using bitbanging of GPIO pin.

rufik post at 2016-3-21 18:29:11

@cbm80 Thanks for info. I'll will take a look into arduino also.

dofer post at 2016-3-24 05:50:52

Hi, I'm also interested in this question.

I've installed bunch of stuff to enable gpio and lirc, mostly followed
http://www.instructables.com/id/Raspberry-Pi-Universal-Remote/step2/Setting-up-the-Software/

And finally stuck on enabling module lirc_rpi, original command is
lirc_rpi gpio_in_pin=23 gpio_out_pin=22
but what can We use in orange pi, is there any thing ?

There seems to be a fork oflirc_rpi called lirc-gpioblaster
https://wiki.openwrt.org/doc/howto/lirc-gpioblaster
but it's for OpenWRT

rufik post at 2016-3-24 18:22:17

AFAIK ir reciver is connected to PL11 pin, according to fex file:

ir_used = 1
ir_rx = port:PL11<2><1><default><default>
ir_power_key_code0 = 87
ir_addr_code0 = 40704
ir_power_key_code1 = 26
ir_addr_code1 = 64260
ir_power_key_code2 = 20
ir_addr_code2 = 32640
ir_power_key_code3 = 21
ir_addr_code3 = 32640
ir_power_key_code4 = 11
ir_addr_code4 = 63240
ir_power_key_code5 = 3
ir_addr_code5 = 239
ir_power_key_code6 = 159
ir_addr_code6 = 19635
ir_power_key_code7 = 10
ir_addr_code7 = 30536
ir_power_key_code8 = 69
ir_addr_code8 = 48386
ir_power_key_code9 = 77
ir_addr_code9 = 56865
ir_power_key_code10 = 24
ir_addr_code10 = 65025
ir_power_key_code11 = 87
ir_addr_code11 = 65280
ir_power_key_code12 = 77
ir_addr_code12 = 65344
page: [1]
View full version: Replacing IR Reciver with IR Transmitter