LED TV Remote Controller Using Cayenne

About This Project

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.

What’s Connected

Arduino MEGA 2560
Ethernet shiled W5100
IR receiver
IR transmitter

Triggers & Alerts

No triggers for now

Scheduling

No scheduling for now

Dashboard Screenshots

Photos of the Project

1 Like

Hi There,

Cool stuff! Are you able to post a video of this project working live?

-B

Sure, will post ASAP

1 Like

Video uploaded. Thank you.

2 Likes

That’s awesome! Can you post your code? I’d like to see how you sent the signals.

Here’s my code @adam

#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);
  }
}
3 Likes

Very cool. This is what I am going to do next.

1 Like

Did you have a chance to update your mobile dashboard with the new icons we made available? This should help you differentiate between the different buttons at a glance more easily :slight_smile: