Sinchan0009
Published © GPL3+

LED TV Remote Controller Using Cayenne

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

BeginnerShowcase (no instructions)1 hour1,163
LED TV Remote Controller Using Cayenne

Things used in this project

Hardware components

Arduino Mega 2560
Arduino Mega 2560
×1
W5100 ethernet shield
×1
IR receiver (generic)
×1
IR transmitter (generic)
×1
Resistor 100 ohm
Resistor 100 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE
Cayenne
myDevices Cayenne

Story

Read more

Schematics

IR Transmit Circuit.JPG

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);
  }
}

Credits

Sinchan0009

Sinchan0009

5 projects • 5 followers

Comments