Skip to content

LED TV Remote Controller Using Cayenne

LED TV Remote Controller Using Cayenne

george

Published April 02, 2019

Components

Hardware components

x 1


x 1


x 1


x 1

Software Apps and online services

x 1


Project description

We can use cayenne as remote controller for television or air conditioner.

Only one device can remote all TV/AC, more simple and can develop to other project by trigger. Example, if we enter the room then air conditioner can ON itself and if we out the room it's OFF automatically.

In my case I use Cayenne because it's simple for me.

Schematics

IR Transmit Circuit.JPG

Ir%20transmit%20circuit

Code

UniversalRemote.ino

C/C++
#include "CayenneEthernet.h"
#include <IRremote.h>

IRsend irsend;

char token[] = ""; //fill with your token

void setup()
{
  Serial.begin(115200);
  Cayenne.begin(token);
}

void loop()
{
  Cayenne.run();
}

CAYENNE_IN(V3) { // send volume -
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(0x20DFC03F, 32);
    delay(40);
  }
}

CAYENNE_IN(V4) { // send volume +
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(0x20DF40BF, 32);
    delay(40);
  }
}

CAYENNE_IN(V5) { // send program +
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(0x20DF00FF, 32);
    delay(40);
  }
}

CAYENNE_IN(V6) { // send program +
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(0x20DF807F, 32);
    delay(40);
  }
}

CAYENNE_IN(V7) { // send power on/off
  for (int i = 0; i < 3; i++) {
    irsend.sendNEC(0x20DF10EF, 32);
    delay(40);
  }
}

Documents

Comments

Comments