please choosego to mobile | Continue to access the PC version
View: 8091|Reply: 5

Replacing IR Reciver with IR Transmitter

[Copy link]

2

threads

16

posts

203

credits

Intermediate member

Rank: 3Rank: 3

credits
203
Published in 2016-3-19 00:01:29 | Show all floors |Read mode
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.

9

threads

641

posts

4382

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4382
Published in 2016-3-19 00:58:24 | Show all floors
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/

12

threads

99

posts

375

credits

Intermediate member

Rank: 3Rank: 3

credits
375
Published in 2016-3-21 15:07:23 | Show all floors
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.

2

threads

16

posts

203

credits

Intermediate member

Rank: 3Rank: 3

credits
203
 Author| Published in 2016-3-21 18:29:11 | Show all floors
@cbm80 Thanks for info. I'll will take a look into arduino also.

0

threads

2

posts

66

credits

Registered member

Rank: 2

credits
66
Published in 2016-3-24 05:50:52 | Show all floors
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/ ... ng-up-the-Software/

And finally stuck on enabling module lirc_rpi, original command is
  1. lirc_rpi gpio_in_pin=23 gpio_out_pin=22
Copy code

but what can We use in orange pi, is there any thing ?

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

2

threads

16

posts

203

credits

Intermediate member

Rank: 3Rank: 3

credits
203
 Author| Published in 2016-3-24 18:22:17 | Show all floors
AFAIK ir reciver is connected to PL11 pin, according to fex file:
  1. [s_cir0]
  2. ir_used = 1
  3. ir_rx = port:PL11<2><1><default><default>
  4. ir_power_key_code0 = 87
  5. ir_addr_code0 = 40704
  6. ir_power_key_code1 = 26
  7. ir_addr_code1 = 64260
  8. ir_power_key_code2 = 20
  9. ir_addr_code2 = 32640
  10. ir_power_key_code3 = 21
  11. ir_addr_code3 = 32640
  12. ir_power_key_code4 = 11
  13. ir_addr_code4 = 63240
  14. ir_power_key_code5 = 3
  15. ir_addr_code5 = 239
  16. ir_power_key_code6 = 159
  17. ir_addr_code6 = 19635
  18. ir_power_key_code7 = 10
  19. ir_addr_code7 = 30536
  20. ir_power_key_code8 = 69
  21. ir_addr_code8 = 48386
  22. ir_power_key_code9 = 77
  23. ir_addr_code9 = 56865
  24. ir_power_key_code10 = 24
  25. ir_addr_code10 = 65025
  26. ir_power_key_code11 = 87
  27. ir_addr_code11 = 65280
  28. ir_power_key_code12 = 77
  29. ir_addr_code12 = 65344
Copy code
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list