Control an LED with the Remote Control

Receive the signal and control an LED.

Sep 4, 2017

62841 views

26 respects

Components and supplies

1

LED (generic)

1

Arduino UNO

1

Infrared Receiver

Apps and platforms

1

Arduino IDE

Project description

Code

Project code

arduino

Infrared Receiver Code

arduino

Project code

arduino

Downloadable files

circuit diagram

circuit diagram

circuit diagram

circuit diagram

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

we could do this project without arduino code

Anonymous user

2 years ago

Wow! This projekt works and it is very cool. I can change the cases. It is very cool and easy.

Anonymous user

2 years ago

Hello AM37, it seems you have downloaded the wrong library. IRremote is the correct library. To download it go to the IDE 1.8.13 or install the IDE from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install.

Anonymous user

2 years ago

Want to play https://geometrydash-full.com? It's in HTML5, no need to install it. Start playing now!

Anonymous user

2 years ago

Please can u explain the code.Really admired ur work.

Anonymous user

2 years ago

TWD2 error occur in the Arduino program can anyone say

arunav1

2 years ago

hallo! i had the same problem, but i solved it!! for that you have to go to the ir remote library first for going there , you can open file location of the arduino app and go into library folder there search for "ir remote" there you remove all the notepad files except ir remote.cpp and the irremote . H(the header file) restart arduino done!!!

Anonymous user

2 years ago

I did the IR remote on Arduino UNO clone - -The parts were from INLAND in a V2 starter kit pack - Parts worked but code provided was flawed. I had no trouble with code i got from the HUB on this site, Since i am beginner i should use the WEB editor and get away from all of the version/library hassles and use code examples from thjis sit not INLAND.keystudio examples, although the starter pack was cheap and it works well Richard

Anonymous user

2 years ago

i cant get it to work i get this error every time Arduino: 1.8.2 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:\\Program Files (x86)\\Arduino\\libraries\\RobotIRremote\\src\\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope int RECV_PIN = TKD2; // the pin the IR receiver is connected to ^ exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

arunav1

2 years ago

hallo! i had the same problem, but i solved it!! for that you have to go to the ir remote library first for going there , you can open file location of the arduino app and go into library folder there search for "ir remote" there you remove all the notepad files except ir remote.cpp and the irremote . H(the header file) restart arduino done!!!

waynesparky

2 years ago

Works well, Excellent Thank you..

Anonymous user

2 years ago

I HAVE A Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno" C:\\Users\\Faaz\\Documents\\Arduino\\sketch_nov28a\\sketch_nov28a.ino: In function 'void loop()': sketch_nov28a:20:2: error: 'If' was not declared in this scope (If)(ir_receiver.decode(&results)) ^~ sketch_nov28a:20:34: error: expected '}' at end of input (If)(ir_receiver.decode(&results)) ^ Multiple libraries were found for "IRremote.h" Used: C:\\Users\\Faaz\\Documents\\Arduino\\libraries\\Robot_IR_Remote exit status 1 'If' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. ERROR

strujaa553

2 years ago

is this working with remote control for tv

Anonymous user

2 years ago

I MADE EXACTLY THE SAME SCHEMATIC AND CODE, I HAVE CHANGED THE CASES FOR MY REMOTE CONTROL. THE ARDUINO LIGHT IS BLINKING WHEN I PUSH THE REMOTE CONTROL BUTTON, BUT THE LED DOESN'T LIGHT UP OR BLINK. I HAVE CHANGED THE LED ,BUT STILL NO RESULTS. THE SERIAL MONITOR IS PRINTING THE DATA AND THE ON OR OFF,BUT NO BLINK .

Anonymous user

2 years ago

Hello MCHV, it seems you have not downloaded the library IRremote.h. To download it go to the IDE 1.8.13 or install it from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install. Well, you've downloaded a library !

Anonymous user

2 years ago

faazuddin24, you have the same problem as the others I helped but you have additional problems in your code. Send me your code in the comments For the instructions on how to install the library see below. Go to the IDE 1.8.13 or install it from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install.

Anonymous user

4 years ago

we could do this project without arduino code

Anonymous user

4 years ago

Wow! This projekt works and it is very cool. I can change the cases. It is very cool and easy.

rgordner

4 years ago

I did the IR remote on Arduino UNO clone - -The parts were from INLAND in a V2 starter kit pack - Parts worked but code provided was flawed. I had no trouble with code i got from the HUB on this site, Since i am beginner i should use the WEB editor and get away from all of the version/library hassles and use code examples from thjis sit not INLAND.keystudio examples, although the starter pack was cheap and it works well Richard

Anonymous user

4 years ago

faazuddin24, you have the same problem as the others I helped but you have additional problems in your code. Send me your code in the comments For the instructions on how to install the library see below. Go to the IDE 1.8.13 or install it from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install.

Anonymous user

4 years ago

Hello AM37, it seems you have downloaded the wrong library. IRremote is the correct library. To download it go to the IDE 1.8.13 or install the IDE from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install.

Anonymous user

4 years ago

Hello MCHV, it seems you have not downloaded the library IRremote.h. To download it go to the IDE 1.8.13 or install it from https://www.arduino.cc/en/Main/Software and on top use the buttons and follow this : Sketch > Include Library > Manage Libraries... You will find yourself in the Arduino Library Manager. In the top-right there is a search bar. Type in IRremote and then tap Version 2.2.3. Select Install. Well, you've downloaded a library !

waynesparky

5 years ago

Works well, Excellent Thank you..

strujaa553

5 years ago

is this working with remote control for tv

Anonymous user

5 years ago

I HAVE A Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno" C:\\Users\\Faaz\\Documents\\Arduino\\sketch_nov28a\\sketch_nov28a.ino: In function 'void loop()': sketch_nov28a:20:2: error: 'If' was not declared in this scope (If)(ir_receiver.decode(&results)) ^~ sketch_nov28a:20:34: error: expected '}' at end of input (If)(ir_receiver.decode(&results)) ^ Multiple libraries were found for "IRremote.h" Used: C:\\Users\\Faaz\\Documents\\Arduino\\libraries\\Robot_IR_Remote exit status 1 'If' was not declared in this scope This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. ERROR

Anonymous user

5 years ago

hei I am new to this but i did get this message when I tried to install: Arduino:1.8.10 (Mac OS X), Kort"Arduino/Genuino Uno" testing:1:11: error: IRremote.h: No such file or directory # include <IRremote.h> ^~~~~~~~~~~~ compilation terminated. exit status 1 IRremote.h: No such file or directory What can I do?

arunav1

2 years ago

add ir remote library in your libraries file

sayandas

6 years ago

Please can u explain the code.Really admired ur work.

Anonymous user

2 years ago

TWD2 error occur in the Arduino program can anyone say

arunav1

2 years ago

hallo! i had the same problem, but i solved it!! for that you have to go to the ir remote library first for going there , you can open file location of the arduino app and go into library folder there search for "ir remote" there you remove all the notepad files except ir remote.cpp and the irremote . H(the header file) restart arduino done!!!

Anonymous user

6 years ago

I MADE EXACTLY THE SAME SCHEMATIC AND CODE, I HAVE CHANGED THE CASES FOR MY REMOTE CONTROL. THE ARDUINO LIGHT IS BLINKING WHEN I PUSH THE REMOTE CONTROL BUTTON, BUT THE LED DOESN'T LIGHT UP OR BLINK. I HAVE CHANGED THE LED ,BUT STILL NO RESULTS. THE SERIAL MONITOR IS PRINTING THE DATA AND THE ON OR OFF,BUT NO BLINK .

Anonymous user

7 years ago

i cant get it to work i get this error every time Arduino: 1.8.2 (Windows 8.1), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)" C:\\Program Files (x86)\\Arduino\\libraries\\RobotIRremote\\src\\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope int RECV_PIN = TKD2; // the pin the IR receiver is connected to ^ exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

arunav1

2 years ago

hallo! i had the same problem, but i solved it!! for that you have to go to the ir remote library first for going there , you can open file location of the arduino app and go into library folder there search for "ir remote" there you remove all the notepad files except ir remote.cpp and the irremote . H(the header file) restart arduino done!!!