This Arduino project that allows to turn ON and OFF LEDs using a cheap IR remote Arduino uno with USB cable - 1 Breadboard 400 points - 1Remote control - 1IR receiver - 1LEDs (red ) 2 pieces LEDs (green ) 2 piecesLEDs (yellow) 2 piecesLEDs ( blue) 2 pieces
Security Policy (Protecting Your Data, Ensuring Your Safety)
Delivery Policy (Free shipping on orders over $30)
Return Policy (60 day easy Return)This Arduino project that allows to turn ON and OFF LEDs using a cheap IR remote
Arduino IDE 1.8.5 (programmable platform for Arduino)
Click To Download: https://www.arduino.cc/en/Main/Software
First, go to this page given below as link
https://github.com/RuiSantosdotme/Arduino-IRremote
and download this Library.
After downloading it, Extract the downloaded file in the Arduinos library folder wherever you install the Arduino Software.
First, you need to check the Set the Remote to get the hexadecimal code.
For this we make the Receivers Connections as follows:
Open the Arduino IDE Software. Making these Connections,
Follow the instructions As given in the picture given below:
Click on IRrecvDumpV2 ,you will get a code and Upload the Code.
After Uploading the code , Just open the serial Monitor(ctrl+shift+m).
About Hex code :First we must find the hex codes of the buttons of remote controller.
Now press the buttons which you want to use in your project,here we are using 1,2,3 and OK button.
PRess the button(1,2,3&OK) you will get the hexadecimal Code(in red mark)
Then just need to change your remote control values from my arduino code.now convert the hexadecimal to decimal and change value in the code.
Values Are:
case your value decimal after conversion change all the four cases in the Code given below and upload the code.
The Shorter leg is cathode(Negative) and the Longer leg is anode (positive)
In the bulb ,bigger flag is negative and shorter flag is positive
On the bulb surface , the flat surface is negative and rounded surface is positive
1. Arduino ground goes to breadboard negative.
2. Arduino 5v goes to infrared sensor supply pin.
3. infrared sensor 2pin goes ground of bread board.
4. infrared sensor 3pin goes to the digital pin no3 of Arduino Uno.
5. led green positive connect to digital pin 5 of Arduino Uno.
6. led yellow positive connectto digital pin 6 of Arduino Uno.
7. led red positive connectto digital pin 9 of Arduino Uno.
8. led white positive connectto digital pin 10 of Arduino Uno.
all negative pin of led connect with 220 ohm resistance on bread board.
https://docs.google.com/document/d/e/2PACX-1vQ4cUnZtXiHdIJJE4c7Zu3inTfRTjMtHQHoGWHy44mo3qg9sULZmtwQTE3tVEGepPRQt4cXNdEm7K7Y/pub
If you want to decode code of a remote controller, you must first know how it’s coded. The coding method we use here is NEC protocol. Below is a brief introduction. NEC protocol:
Features
Protocol is as below:
The picture above shows a typical pulse train of the NEC protocol. With this protocol the LSB is transmitted first. In this case Address $59 and Command $16 is transmitted. A message is started by a 9ms AGC burst, which was used to set the gain of the earlier IR receivers. This AGC burst is then followed by a 4.5ms space, which is then followed by the address and command. Address and Command are transmitted twice. The second time all bits are inverted and can be used for verification of the received message. The total transmission time is constant because every bit is repeated with its inverted length. If you are not interested in this reliability, you can ignore the inverted values, or you can expend the Address and Command to 16 bits each!
A command is transmitted only once, even when key on the remote
Control remains pressed. Every 110ms a repeat code is transmitted
for as long as the key remains down. This repeat code is simply a 9ms AGC pulse followed by a 2.25ms space and a 560s burst.
Note: when the pulse enters the integrated receiver, there will be decoding, the signal amplifying and wave shaping process. So you need to make sure the level of the output is just the opposite from that of the signal sending end. That is when there is no infrared signal, the output end is at high level; when there is an infrared signal, and output end is in low level.
You can see the pulse of the receiving end in the oscilloscope. Decode the coded pulse signal emitted by the remote controller; execute corresponding action according to the results of the decoding. In this way, you will be able to control your device with a remote controller.
Reviews
There are no reviews yet.