LBRY Block Explorer

LBRY Claims • arduino-ir-experiment

04d81afca049d08c3f006223871b1f0a631db281

Published By
Created On
25 Jul 2021 23:34:26 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
Arduino IR Experiment
This video is about using a television remote control with your Arduino. #arduino #arduinouno #robotics #programming.
Here is the code: (remember to put the first line of the library from the video link)
You can Visit us at: www.wizardofwestla.com
Facebook: @wizardofwestla

int receiver = 11;

IRrecv irrecv(receiver);
decode_results results;

void translateIR() // get the IR data

{

switch(results.value)
{
case 0xFFA25D: Serial.println("POWER"); break;
case 0xFFE21D: Serial.println("FUNC/STOP"); break;
case 0xFF629D: Serial.println("VOL+"); break;
case 0xFF22DD: Serial.println("FAST BACK"); break;
case 0xFF02FD: Serial.println("PAUSE"); break;
case 0xFFC23D: Serial.println("FAST FORWARD"); break;
case 0xFFE01F: Serial.println("DOWN"); break;
case 0xFFA857: Serial.println("VOL-"); break;
case 0xFF906F: Serial.println("UP"); break;
case 0xFF9867: Serial.println("EQ"); break;
case 0xFFB04F: Serial.println("ST/REPT"); break;
case 0xFF6897: Serial.println("0"); break;
case 0xFF30CF: Serial.println("1"); break;
case 0xFF18E7: Serial.println("2"); break;
case 0xFF7A85: Serial.println("3"); break;
case 0xFF10EF: Serial.println("4"); break;
case 0xFF38C7: Serial.println("5"); break;
case 0xFF5AA5: Serial.println("6"); break;
case 0xFF42BD: Serial.println("7"); break;
case 0xFF4AB5: Serial.println("8"); break;
case 0xFF52AD: Serial.println("9"); break;
case 0xFFFFFFFF: Serial.println(" REPEAT");break;
case 0xE0E020DF: Serial.println("1 button pressed"); break;

default:
Serial.println(" other button : ");
Serial.println(results.value);

}// the end of case

delay(500);

} // end of translate void

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("IR Receiver Button Decode");
irrecv.enableIRIn(); // start or read receiver
}
void loop() {
// put your main code here, to run repeatedly:
if (irrecv.decode(&results)) // have we received an IR signal?
{
translateIR();
irrecv.resume(); // now get the next data value
}

}
...
https://www.youtube.com/watch?v=htsENoIPn9s
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
INTRO
Controlling
VIDEO
RASPI
Controlling
VIDEO
INSTA
Controlling
VIDEO
WELCO
Controlling
VIDEO
LET'S
Controlling
VIDEO
USING
Controlling
VIDEO
VIDEO
Controlling
VIDEO
IOS 1
Controlling
VIDEO
HOW T