Introduction: How to Decode the NEC Remote Value Using TSOP1838 and Arduino Uno
Hello Friends, I am Anto... In this tutorial we are going to learn how to decode the HEX value of the NEC Remote. At the end of the tutorial, we can able to decode the value.. so follow the steps and attached picture...
Supplies
Step 1: Gather the Required Components
You can use any kind of arduino devices like arduino uno, nano, promini.
You must use TSOP1838 to decode the HEX Value
Step 2: Add the IR Library
Initially you can't able to see any examples about the IR library. so we need to add the library.
To add the library select include libraries---> Manage libraries--> type IR library--> you can find IR Remote by sherrif--> select and then select the latest version and click install.
Step 3: Check the IR Libraries in the Examples
Now you can able to see the IR example codes added in the example...
Select the IRrecDEMO
Step 4: Edit the Program Code
Now you can make a suitable edit on your code. you can use any pins except 0 and 1. because these two pins are used for serial communication. You can able to see the variable which store the decoding result.
Download the code to the arduino.
Step 5: Construct the Hardware As Per the Circuit Diagram
Connect the out of the TSOP sensor to the 4 pin of the arduino board.
check your program weather you have mentioned the D4 at the above.
Step 6: Open Serial Monitor and Get the Decoded Values
This is the time to test the output.
open serial monitor.... press the button on the remote in front of the tsop sensor.. now you can able to receive the hex value of the pressed button.. enjoy.. for queries.. comment me...