LED TV Remote Controller Using Cayenne

We can use Cayenne as remote controller for television or air conditioner.
ORIGINAL POST
By Sinchan0009
components
Hardware Components
W5100 ethernet shield
X 1
IR transmitter (generic)
X 1
Software Apps and online services
Arduino IDE
myDevices Cayenne
details

IMG_1111.jpg

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
Code
UniversalRemote.ino

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
TAGS