Tv Remote button

A simple button to turn of/on TV.

Automatically mute off when cell phone rings.

Easy, with an Infra LED. I have planned something like that, but I’m not sure how I will implement te ringing, lol. You need to have IR for that.

I use “Automate” to automate (sounds funny) some of my smartphone stuff like turn on Bluetooth when I leave my house. If it could communicate with Blynk that ringing part would be easy as hell.

I usually use IFTTT for that. Yes i wish this widget get’s included. It would be very cool

You would still need a way to communicate with your TV in the form is something Infrared.

Yes i will make a hardware for switching off/on tv and then connect it to the maker channel. After that IFTTT will do the job :slight_smile:

I already had that for my TV and it’s a Sony, so all the IR codes are known, same with my Amp. I was planning on making a general “TV” button on Blynk that would close the curtains, dim the lights and turn the whole stuff on at the flick of a switch :slight_smile:

As per request, a code snippet to use with an infra red emitter:

#include <IRLib.h>                        // Infrared for audio/video

IRsend irsend;

// Do audio/video stuff when pressing button to vPin 1
BLYNK_WRITE(1)
{
  for(int i=0;i<4;i++)
  {
    irsend.send(RC5,0x140F, 13); // AMP off
    irsend.send(SONY,0xA90, 12); // TV off
  }
}

// Do audio/video stuff when pressing button to vPin 2
BLYNK_WRITE(2)
{
  for(int i=0;i<4;i++)
  {
    irsend.send(RC5,0x1C0E, 13); // AMP on
    irsend.send(SONY,0xA90, 12); // TV on
  }
}

This is what I have. The RC5 is very generic set of IR commands. There are loads of examples and codes available on the Internet. If you have main stream equipment like Sony, Philips, LG and Samsung there is more then enough information available to setup all the functions you want via Blynk and emulated IR commands.

Btw I think default pin for IR led with this lib is pin 9.

1 Like