LED TV Remote Controller Using Cayenne


#1

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


Submit Your Cayenne Projects! [contest ended]
#2

Hi There,

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

-B


#3

Sure, will post ASAP


#4

Video uploaded. Thank you.


#5

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


#6

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

#7

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


#8

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: