IR Blaster to on and off TV

  • Hi. I'm new here. I have setup latest libreelec on a Raspberry pi4. I would like to add a IR blaster to the pi 4 to control my tv.


    Thinking of getting this Infrared IR Wireless Remote Control Kits for Arduino & Raspberry | Online Shopping Lazada .


    However i cant find a recent guide on how to do it.


    Infrared Remotes [LibreELEC.wiki] this link says nothing about transmitting at all.


    https://openelec.tv/documentat…guide-to-lirc-ir-blasting this is exactly what i want to do. Wondering if it will work in libreelec. And any specific instructions available?

  • To me, this device will only control the Pi, not the TV.


    I do not know for sure, but something like


    MX3 2.4G Wireless Remote Control Keyboard Air Mouse for MXQ Android XBMC TV Box | eBay might work


    There are buttons on this, that can learn tv controls.


    Hopefully someone with more knowledge will offer some input.

    Samsung RU7400 Onkyo HTX22HDX Nvidia Shield HD Homerun Duo (Living Room)

    Samsung UE40ES5500 H96 Pro, X96+, Fire TV 4K Stick (Bedroom)

    Synology DS414 Plex Pass

    :)

  • Hi. Sorry i forgot to mention. My tv is not a smart tv. Its a older hd tv. So that remote wouldnt work.

    Does your TV have an IR remote? If it does, it should be able to be "LEARNT" You don't need a smart TV


    Just to clarify, the IR blaster for the Pi will not be able to control the TV, particularly if it's not a network tv. You can however get remotes, that can learn various TV functions, like TV volume control

    Samsung RU7400 Onkyo HTX22HDX Nvidia Shield HD Homerun Duo (Living Room)

    Samsung UE40ES5500 H96 Pro, X96+, Fire TV 4K Stick (Bedroom)

    Synology DS414 Plex Pass

    :)

    Edited once, last by bubblegum57 ().

  • Does your TV have an IR remote? If it does, it should be able to be "LEARNT" You don't need a smart TV


    Just to clarify, the IR blaster for the Pi will not be able to control the TV, particularly if it's not a network tv. You can however get remotes, that can learn various TV functions, like TV volume control

    Not sure if im missing out on something. The remote you suggested doesn't have an ir blaster right? How could it control my tv?


    I apologize again. I have lost focus from what i originally intended to do. The ultimate goal would be :-


    When libreelec is idle (when the black screen saver comes up) i want rpi to send a turn off signal to the tv via ir. (my tv doesnt have a cec). When i try to watch something in kodi, press any key / wake up - i want the pi to send a turn on signal.


    Am i too ambitious?

    Edited once, last by anand0412: More information ().

  • IF the remote with 2.4 dongle works, & I don't know if it will on a Pi, it has buttons on it, that can be learnt from your tv remote.


    Samsung RU7400 Onkyo HTX22HDX Nvidia Shield HD Homerun Duo (Living Room)

    Samsung UE40ES5500 H96 Pro, X96+, Fire TV 4K Stick (Bedroom)

    Synology DS414 Plex Pass

    :)

  • The kit you linked isn't quite ideal as it only seems to contain an IR transmitter LED, without a transistor/FET and current limiting resistor to drive it.


    Hooking up the IR LED directly to the GPIO isn't a good idea as the current output of the GPIO is too low so the range (distance to the TV/IR receiver) will be rather limited.


    See also this thread on the RPi forum for background info on how to hook up IR LEDs Extend IR Led Range - Raspberry Pi Forums


    If you are not into soldering/electronics stuff search for breakout boards with IR LED and driving transistor - I've seen several of those in various shops but don't have any links or recommendations.


    The configuration / software side isn't too hard, ideally use the pwm-ir-tx dtoverlay with the IR-LED/driving circuit connected to GPIO 18 (pin 12 on the header) or, if you need to use another GPIO, use the gpio-ir-tx dtoverlay. To transmit IR signals use the ir-ctl command.


    Just search this forum for ir-ctl, I posted info on how to use it in several threads.


    so long,


    Hias