LED TV Remote Controller Using Cayenne
LED TV Remote Controller Using Cayenne
0
Components
Hardware componentsArduino Mega 2560 & Genuino Mega 2560
x 1
IR receiver (generic)
x 1
IR transmitter (generic)
x 1
Resistor 100 ohm
x 1
myDevices Cayenne
x 1
Project description
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
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); } }

