If you are like me and hate to look for TV/projector/speakers remote, you will be happy to know that you can use your Raspberry Pi and your computer or phone to act as IR remote.
What you need?
- Raspberry Pi
- 940nm IR diode (preferable super bright)
- 200 Ohm resistor
- NPN transistor (BC547 or S9014 or similar)
- Some jumper cables
- Decoded remote configuration from my previous post Raspberry Pi as IR remote decoder (LIRC)
Transistor is needed to increase our remote effective range. You can connect diode directly to GPIO but it will be to weak to be useful. You can also use 5V to increase range.
Instalation is the same as in my IR decoder post Raspberry Pi as IR remote decoder (LIRC).
Now we can use irsend to send command to your device.
To send command once:
To send command many times:
To list all commands:
To list all install remotes:
For more detail: Raspberry Pi as IR Remote (LIRC)