If I connect an IR transmitter (like the one in the picture below) to the GPIO of my VIM3 then how do I make it visible as a device under Linux so I can actually send IR signals with it? Is a kernel module needed for this and is it available?
From what I gathered ir-ctl seems to be the most robust solution in modern kernels with a simple command too (e.g. ir-ctl -S rc5:0x1234) but I guess LIRC (with irsend command) could be an option too.
IR transmitter (is this suitable to connect to GPIO?)
you could, what kind of pin does it use? Regular GPIO ? It only says dat on the data pin, maybe its regular digital pin. what do you plan on doing, I could try to help you.
Those just repeat incoming IR signals (only useful when your devices are hidden in your TV cabinet), the USB is just for power. It’s not possible to send IR commands from USB. So that makes it useless for me, unfortunately.
@Electr1 what I’m trying to do is control my sound system at certain events (e.g. turn it on when my VIM3 turns on). So I want to run a script at boot that sends an IR signal to turn my sound system on. I’m running CoreELEC on my VIM3.
Whoa !, that’s way too much data bandwidth
That’s like stuffing a 6 lane highway through a crooked street !
Massive bottleneck if connected to a USB 2.0 port, but would fare better on the USB 3.0 port
@jant90,
Here is a baseplan of what needs to be done,
1. Identify whether the module exists, if not it needs to be added,
2. create a script which runs at startup to send a turn on data packet
also a turn off data packet when shutting down
3. Test it and debug any errors in it
I have no Idea about working with CoreElec but I could learn about it in the process, If it was ubuntu it might have been a bit easier, but not a problem
Well at least for the Raspberry Pi there are modules available (gpio-ir-recv, gpio-ir, pwm-ir-tx). And on LibreELEC they can be activated through dtoverlay configuration option (https://wiki.libreelec.tv/infrared_remotes#gpio_ir_receiver_on_rpi). I can’t find those modules in my CoreELEC install though.
We will definitely have to rebuild the image with the module installed as in raspi you could do dtoverlay, but here you have to physically change it for a new image.