I'm sharing with you a project I've recently done. I'ts about how you can control some LED's with a remote control and your Arduino. But you can apply this to any electronic device such as motors , lights for example.
you can visit my website for more electronic projects, interesting news and tips:
Step 1: IR library
Step 2: Parts required
1x Remote control
1x IR receiver ( I’ll be using TSOP4838)
4x 220ohm resistors
The infrared receiver has 3 pins:
First pin: Vout, outputs HIGH when no signal is present and LOW when a mark is received.
Second pin: GND.
Third pin: Vcc.
Step 3: Circuit diagram
And then I went to the arduino IDE > file>examples>IRremote> IRrecvDemo. You need to upload the sketch to your arduino, open the serial monitor and start using your remote control and see which values the arduino is receiving.
After a while I’ve wrote down which values appear in the serial monitor when you press the volume up key or any other key, and write it down for all the keys you want to use. And they were:
You will need to convert these hexadecimal numbers to decimal, you can use this tool for that.