Today I will talk about how you can control any device using a remote control and your Arduino. First I really recommend you to go to this page and download the IR library. You just need to follow the read me file to install. I think that any IR remote control can do this, I’ll be using a Philips Universal one.
- 1x Arduino
- 1x Breadboard
- 1x Remote control
- 1x IR receiver ( I’ll be using TSOP4838)
- 4x LED’s
- 4x 220ohm resistors
- Jumper cables
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.
First I’ve started to wire my circuit like this
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. Then just need to change your remote control values from my arduino code (click here to download my code). And upload the code!
Here is the demonstration:
Thanks for reading, leave a comment or send me an email. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook page (you can find everything right column )