---
title: "LED TV Remote Controller Using Cayenne"
url: "https://maker.wiznet.io/george/projects/LED-TV-Remote-Controller-Using-Cayenne/"
markdown_url: "https://maker.wiznet.io/george/projects/LED-TV-Remote-Controller-Using-Cayenne/md"
type: "UCC: User Created Content"
author: "george"
author_url: "https://maker.wiznet.io/george/"
original_author: "george"
original_url: "https://www.hackster.io/sinchan0009/led-tv-remote-controller-using-cayenne-ef4435?ref=explore&ref_id=trending___&offset=71"
published: "2019-04-02"
language: "en"
hardware: ["Arduino Mega 2560 & Genuino Mega 2560", "WIZnet W5100 ethernet shield", "IR receiver (generic)", "IR transmitter (generic)", "Resistor 100 ohm"]
likes: 0
views: 516
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# LED TV Remote Controller Using Cayenne

> LED TV Remote Controller Using Cayenne

Original author: george (source: https://www.hackster.io/sinchan0009/led-tv-remote-controller-using-cayenne-ef4435?ref=explore&ref_id=trending___&offset=71)

## Components

- **Arduino Mega 2560 & Genuino Mega 2560** x 1
- **WIZnet W5100 ethernet shield** x 1 ([docs](https://www.wiznet.hk/en/open-source-hardware/102-w5100s-ethernetshield.html?search_query=W5100+ethernet+shield&results=84))
- **IR receiver (generic)** x 1
- **IR transmitter (generic)** x 1
- **Resistor 100 ohm** x 1
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))
- Software: **myDevices Cayenne**

## Documents and links

- [UniversalRemote.ino](https://www.hackster.io/sinchan0009/led-tv-remote-controller-using-cayenne-ef4435?ref=explore&ref_id=trending___&offset=71&f=1#code) (code)

## Article

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](https://hackster.imgix.net/uploads/attachments/208544/IR%20Transmit%20Circuit.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);
  }
}
```

---

Source: https://maker.wiznet.io/george/projects/LED-TV-Remote-Controller-Using-Cayenne/
